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

StopLoss in MultiDataseries

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

    StopLoss in MultiDataseries

    Hi everybody
    I have a strategy that tracks 3 dataseries, for example (ZN, ZF, ZB).
    If 2 of them is greater than a specific value (for example 112.234), we should trade on them. All those dataseries have their own value for profit target. for example if dataserise ZN is greater than 112.234 for 1.5 tick and ZF is greater than 112.234 for 2 ticks we must enter the trade.

    The question is how i should set stop loss and profit target for them.
    I have read an article about multi frame trading in ninja but it is not helpful for me.

    #2
    Hello amiralimadadi,

    Thank you for the post.

    The SetStopLoss and SetProfitTarget methods specifically use the SignalName system to tie targets to entries. In this case, you could use unique SignalNames for the entries and then set those as the FromEntrySignal for each set of targets.

    For example:
    Code:
    SetStopLoss("longEntry1", CalculationMode.Ticks, 10, false);
    SetStopLoss("longEntry2", CalculationMode.Ticks, 20, false);
    
    EnterLong("longEntry1");
    EnterLong("longEntry2");

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by GussJ, 03-04-2020, 03:11 PM
    16 responses
    3,279 views
    0 likes
    Last Post Leafcutter  
    Started by WHICKED, Today, 12:45 PM
    2 responses
    19 views
    0 likes
    Last Post WHICKED
    by WHICKED
     
    Started by Tim-c, Today, 02:10 PM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by Taddypole, Today, 02:47 PM
    0 responses
    5 views
    0 likes
    Last Post Taddypole  
    Started by chbruno, 04-24-2024, 04:10 PM
    4 responses
    51 views
    0 likes
    Last Post chbruno
    by chbruno
     
    Working...
    X