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

Variable stop

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

    Variable stop

    I'm trying to use Strategy Builder to build a strategy that after ever entry will enter a stop and limt based on the EMA in relation to the entry. I've got it coded to do the difference between the entry and EMA for a stop and limit, but I'd really like to do 1.5 times the stop amount. 1 times is leaving money on the table and 2 times is staying in trades too long. I don't have any opportunity for arithmetic when dealing with my inputs or variables, so I was curious if anyone with more knowledge than me might have some advice of how to use the builder to do a 1.5 or 1.25 mulitiplier on a variable. I appreciate it. Thanks.

    Rob

    #2
    Hello Rob,

    Thanks for your post.

    A limitation of the Strategy Builder is that you are only able to offset (+, -, x, /) a custom Series, not regular variables or inputs.

    You may consider creating a custom series in the Additional Data screen of the Strategy Builder to use for your stop loss. A value could be assigned to the custom series that you would like to use for your stop loss. That custom series could then be used for your stop loss and offset (multiplied) by a set value.

    Note that custom series could be found in the Misc folder when using it for a condition or action.

    Here is a link to our publicly available training video, 'Automate your trading with NinjaTrader's Strategy Builder', which you might find helpful.

    'Automate your trading with NinjaTrader's Strategy Builder': https://youtu.be/VxU4FR6GWNA​​

    See the help guide documentation for more information.

    Additional Data screen: https://ninjatrader.com/support/help...standingTheAdd itrionalDataScreen
    Offsetting an item value: https://ninjatrader.com/support/help..._builder.htm#H owToOffsetAnItemValue
    Conditions: https://ninjatrader.com/support/help...on_builder.htm
    Actions: https://ninjatrader.com/support/help...t8/actions.htm

    Please let me know if you have further questions.
    Brandon H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by DanielTynera, Today, 01:14 AM
    0 responses
    2 views
    0 likes
    Last Post DanielTynera  
    Started by yertle, 04-18-2024, 08:38 AM
    9 responses
    40 views
    0 likes
    Last Post yertle
    by yertle
     
    Started by techgetgame, Yesterday, 11:42 PM
    0 responses
    9 views
    0 likes
    Last Post techgetgame  
    Started by sephichapdson, Yesterday, 11:36 PM
    0 responses
    2 views
    0 likes
    Last Post sephichapdson  
    Started by bortz, 11-06-2023, 08:04 AM
    47 responses
    1,615 views
    0 likes
    Last Post aligator  
    Working...
    X