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

strategy activation nt7

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

    strategy activation nt7

    hello
    I work with multiple strategies at one time on the same product. long and short.
    How do I set up a specific long strategy not to activate and take trades if another long strategy is in a position
    I would like that specific strategy to automatically activate and take trades only if there are no active positions.
    is it possible to do that? if yes could anyone help me with the code?
    thanks

    #2
    Hello bizzz10,

    Thanks for writing in.

    Many simple strategies can be made in the Strategy Wizard of NinjaTrader 7. You will not be able to use the Strategy Wizard to check the account position across multiple strategies or manual trades, but it can manage the strategy position for itself and manage several positions within that strategy.

    I have created a video that demonstrates how to create enter long into the market using a specific signalName when the current market position for that strategy is flat.

    See video here: https://www.screencast.com/t/eT5OAJ1w9

    Documentation on these components can be found in the help guide if you are curious about how the code produced by the Strategy Wizard works. For example, I will provide a snippet from the EnterLong() order method that explains what the arguments mean.

    signalName - User defined signal name identifying the order generated. Max 50 characters.
    quantity - Entry order quantity.
    barsInProgressIndex - The index of the Bars object the order is to be submitted against. See the BarsInProgress property. This determines what instrument the order is submitted for.


    You can create additional conditions with logic to enter with multiple positions, and you can use logic to control entry orders from being submitted when another entry has been submitted.

    Please take some time to view the recorded Strategy Wizard webinar below. You may also wish to attend a Strategy Builder webinar if you would like to investigate the features of the NinjaTrader 8 Strategy Builder and ask the presenter any questions you may have on it.

    Strategy Wizard 301 (NinjaTrader 7) — https://www.youtube.com/watch?v=FmBiNYsf1e8
    Strategy Builder 301 (NinjaTrader 8) — https://www.youtube.com/watch?v=HCyt90GAs9k
    Strategy Builder 301 Live Webinar — http://ninjatrader.com/Webinar/Strategy-Builder-301

    If you do not have a programming background and would like someone to program the strategy for you, I could have a member of our Business Development team pass over a list of NinjaScript Consultants who would be happy to write this code for you. If that is the case, please write in to platformsupport[at]ninjatrader[dot]com with the text "Attn Jim." and a link to this forum thread. http://www.ninjatrader.com/support/f...ad.php?t=98249

    Please let me know if I may be of further assistance.
    JimNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Perr0Grande, Today, 08:16 PM
    0 responses
    2 views
    0 likes
    Last Post Perr0Grande  
    Started by elderan, Today, 08:03 PM
    0 responses
    5 views
    0 likes
    Last Post elderan
    by elderan
     
    Started by algospoke, Today, 06:40 PM
    0 responses
    10 views
    0 likes
    Last Post algospoke  
    Started by maybeimnotrader, Today, 05:46 PM
    0 responses
    11 views
    0 likes
    Last Post maybeimnotrader  
    Started by quantismo, Today, 05:13 PM
    0 responses
    7 views
    0 likes
    Last Post quantismo  
    Working...
    X