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

How to create different entry and get a round success signal

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

    How to create different entry and get a round success signal

    Dear Team,
    Thank you for your long time helping.

    I have 2 questions:
    1.How to create a different entry in strategy builder?Because I want different entry have different Exit.

    2.This question probably a little challenging:

    For example,I entry a short and the round finished well gained profit as I wish,all followed my exitshort signal.
    At this moment,I want add a logic:
    if(short round gain profit successful){
    entry long immediately
    }

    So how can I get the single?I mean how to add this logic in strategy builder.


    Thank you very much!

    #2
    Hello williamzz,

    Thanks for your post.

    You could create separate conditions for each separate entry, and then you would use different Signal names for each unique entry. You can then tie separate exits to these entries by using the entry's Signal Name in the Exit's fromEntrySignal field.

    Entering a position - https://ninjatrader.com/support/help...MarketPosition

    I have also included our Managed Approach documentation which explains further how positions can be entered and exited. The language is more in terms of actual NinjaScript programming, but the concepts are the same when using the Strategy Builder.

    Managed Approach - https://ninjatrader.com/support/help...d_approach.htm

    Calling EnterLong() when you are short will cause the position to reverse. The same can be said for calling EnterShort() when you are long.

    You could create a condition that checks if you are in a short position (See position checks linked below) and also checks your Unrealized PnL (New Condition > Strategy > UnRealized PnL) If you have gained so much profit from this short position, you can then call EnterLong() and you will close the short position and re-enter long.

    Creating Position Checks - https://ninjatrader.com/support/help...ionComparisons

    Please let us know if we can be of further assistance.
    JimNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by benmarkal, Yesterday, 12:52 PM
    3 responses
    22 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by helpwanted, Today, 03:06 AM
    1 response
    17 views
    0 likes
    Last Post sarafuenonly123  
    Started by Brevo, Today, 01:45 AM
    0 responses
    11 views
    0 likes
    Last Post Brevo
    by Brevo
     
    Started by aussugardefender, Today, 01:07 AM
    0 responses
    6 views
    0 likes
    Last Post aussugardefender  
    Started by pvincent, 06-23-2022, 12:53 PM
    14 responses
    244 views
    0 likes
    Last Post Nyman
    by Nyman
     
    Working...
    X