Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
the issue still persists. I am happy to share the code if somebody is willing to look into this. The issue is the StopLine or StopDot plotted by the SuperTrendU11 indicator, I want to use this a hard stoploss but I continue to encounter charts like this in backtesting, basically entry/stoploss at the same level rather than at the stop level.
you have to take care that SetStopLoss is updated before your strategy enters a new position otherwise you will be immediately taken out by your former Long Stop Loss (in case you enter short).
from the NT 7 help ( NinjaTrader Version 7 )
• You may call this method from within the strategy OnBarUpdate() method should you wish to dynamically change the stop loss price while in an open position
• Should you call this method to dynamically change the stop loss price in the strategy OnBarUpdate() method, you should always reset the stop loss price/offset value when your strategy is flat otherwise, the last price/offset value set will be used to generate your stop loss order on your next open position
by any chance, would you know if it's possible to optimize the AnaSuperTrendU11 parameters used in a strategy via the StrategyAnalyzer optimizer? When I try to optimize I receive the following error message:
I am running a very simple code, not sure what'screating this issue, code below. Thanks