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,021 views
    2. thumb_up 1 thanks given
    3. group 3 followers
    1. forum 1 posts
    2. attach_file 0 attachments




 
Search this Thread

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

  #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?
MC PL editor upgrade
MultiCharts
Better Renko Gaps
The Elite Circle
Cheap historycal L1 data for stocks
Stocks and ETFs
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
REcommedations for programming help
Sierra Chart
 
  #2 (permalink)
 
DavidBodhi's Avatar
 DavidBodhi 
Milwaukee, WI, USA
 
Experience: Intermediate
Platform: NinjaTrader
Trading: Equities
Posts: 209 since Oct 2014
Thanks Given: 23
Thanks Received: 207


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 Twitter Reply With Quote
Thanked by:




Last Updated on September 13, 2021


© 2024 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 - Privacy Policy - Downloads - Top
no new posts