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 andrewtrades, Today, 04:57 PM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by chbruno, Today, 04:10 PM
    0 responses
    6 views
    0 likes
    Last Post chbruno
    by chbruno
     
    Started by josh18955, 03-25-2023, 11:16 AM
    6 responses
    436 views
    0 likes
    Last Post Delerium  
    Started by FAQtrader, Today, 03:35 PM
    0 responses
    7 views
    0 likes
    Last Post FAQtrader  
    Started by rocketman7, Today, 09:41 AM
    5 responses
    19 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Working...
    X