NexusFi: Find Your Edge


Home Menu

 





Strategy Builder: Other exits not possible when "Stops and Targets" defined?


Discussion in NinjaTrader

Updated
    1. trending_up 1,482 views
    2. thumb_up 1 thanks given
    3. group 3 followers
    1. forum 1 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
philmg
Frankfurt + Hessen//Germany
 
Posts: 3 since Mar 2014
Thanks Given: 1
Thanks Received: 0

Hey there, I am using Strategy Builder to write my strategies. I have the following problem: When I define exits (stops and targets) under "Conditions and actions" they work fine, but when I add stops and/or targets under "Stops and Targets", my initially defined exits stop working. It seems, that any stop or target exit under "Stops and Targets" overwrites any other exits that have been defined. Is this the case or do I misunderstand anything? How can I define for example exits in both "Stops and Targets" and "Conditions and actions". I tried simply writing all my stops (initial and breakeven) under "Conditions and actions", but then in some cases, when the entry bar is really big and it passes already my intital stop the strat doesn't catch it, because it only calculates again on the next bar and realizes that it has entered and now has to issue the stop. Any advice? Thanks for helping out!


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Warsh Drops Easing Bias, December Hike Now Above 50% -- …
Prediction Markets & Event Contracts
Datafeed for Atas
Platforms and Indicators
Iran Lebanon Problem Kills Switzerland Talks, Brent at $ …
Prediction Markets & Event Contracts
Thanks Mike. Godspeed.
The Elite Circle
Daytrading to swingtrading
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Want your NinjaTrader indicator created, free?
5 thanks
Denied 20K payouts: Alpha Futures
1 thanks
FootPrintV2 Chart for NT8
1 thanks
BERN ALGOS algo trading journal
1 thanks
Afternoon-close session
1 thanks
  #2 (permalink)
 
DavidBodhi's Avatar
 DavidBodhi 
Milwaukee, WI, USA
 
Experience: Intermediate
Platform: NinjaTrader, thinkorswim
Trading: Equities, stocks
Frequency: Many times daily
Duration: Seconds
Posts: 210 since Oct 2014
Thanks Given: 23
Thanks Received: 210


philmg View Post
Hey there, I am using Strategy Builder to write my strategies. I have the following problem: When I define exits (stops and targets) under "Conditions and actions" they work fine, but when I add stops and/or targets under "Stops and Targets", my initially defined exits stop working. It seems, that any stop or target exit under "Stops and Targets" overwrites any other exits that have been defined. Is this the case or do I misunderstand anything? How can I define for example exits in both "Stops and Targets" and "Conditions and actions". I tried simply writing all my stops (initial and breakeven) under "Conditions and actions", but then in some cases, when the entry bar is really big and it passes already my intital stop the strat doesn't catch it, because it only calculates again on the next bar and realizes that it has entered and now has to issue the stop. Any advice? Thanks for helping out!

Without seeing exactly what you're doing, it's hard to respond intelligently. That said, be aware that Ninjatrader does not allow trailing and static stops to operate in the same script. Additionally, there may be an issue with the names of the stops or targets. If you re-use the same name, your stops or targets will 'overwrite' previous instances. If your target is named "Target1" and is placed 10 ticks below a long entry, but you also insert, in your conditions, a target named "Target1" that moves to the bottom of each bar as it closes, the first placement of Target1 is cancelled and is replaced by the second instance.
If you need both stops/targets, under Conditions and Actions AND under Stops and Targets, give them different names.
Hope that helps.


Follow me on X Reply With Quote
Thanked by:




Last Updated on September 13, 2021


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts