Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

A couple basic questions about Strategy vs Indicator

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    A couple basic questions about Strategy vs Indicator

    I have programmed a number of Indicators in NT8, but this will be my first Strategy. I want to make sure I start in the right direction.

    I have an Indicator that gives me a trade signal that I want to automate into an order. I assume this is best done by a Strategy calling the Indicator for the signal, Correct?

    I also will be placing manual trades. I want to make sure that if I am in a trade, the Strategy doesn't open a new trade. Can a Strategy look at my account for open orders if a trade was placed manually?

    thanks




    #2
    Hello cre8able,

    Thank you for your post.

    Yes, you can call your indicator within your strategy for the signal.

    PositionAccount.MarketPosition can be used to check what the market position is for the account the strategy is running on. You can use this check in your condition for entry.

    PositionAccount - https://ninjatrader.com/support/help...ionaccount.htm


    Position.MarketPosition can be used to check the market position of the strategy.

    MarketPosition - https://ninjatrader.com/support/help...etposition.htm


    Note: Strategy positions are separate from actual Account positions. Please see the Help Guide link below which explains this in detail:
    https://ninjatrader.com/support/help..._account_p.htm

    Please let me know if you have any other questions.
    Gaby V.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by RDTrader16, Today, 10:19 PM
    0 responses
    5 views
    0 likes
    Last Post RDTrader16  
    Started by gemify, 03-08-2023, 08:02 AM
    9 responses
    148 views
    0 likes
    Last Post culpepper  
    Started by elirion, Today, 10:03 PM
    0 responses
    1 view
    0 likes
    Last Post elirion
    by elirion
     
    Started by RaddiFX, Today, 09:55 PM
    0 responses
    9 views
    0 likes
    Last Post RaddiFX
    by RaddiFX
     
    Started by Trader146, 03-29-2024, 01:22 PM
    4 responses
    27 views
    0 likes
    Last Post Trader146  
    Working...
    X