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 ebaydan777, Today, 02:41 PM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Started by aligator, Today, 02:28 PM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_ChristopherJ  
    Started by daniel_weber8, Today, 01:21 PM
    1 response
    21 views
    0 likes
    Last Post NinjaTrader_ChristopherS  
    Started by jungsoohuh, Today, 12:07 PM
    1 response
    28 views
    0 likes
    Last Post NinjaTrader_PaulH  
    Started by SharonSS, Today, 11:54 AM
    2 responses
    24 views
    0 likes
    Last Post SharonSS  
    Working...
    X