Cheers.
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!
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
NinjaTrader
Getting ATR value, converting to ticks, using it within a strategy
Collapse
X
-
Hello Trader17,
Thank you for your reply.
That is in reference to the prior example in this thread, which is different from the example Brandon supplied you with. The issue is that the stop can't be set in State.Configure or that will happen, so that version was revised and the revision posted in a different thread here:
Good afternoon, I would like through the strategy builder to be able to use the trailing stop, I don't know how to use it so that my stop decreases when I have advanced a certain number of ticks? Thanks
Please let us know if we may be of further assistance to you.
Kate W.NinjaTrader Customer Service
Comment
-
I was looking at your example in this thread itself above and saw this in the code.
IsInstantiatedOnEachOptimizationIteration = true;
ATRMultiplier = 2;
ATRStopLoss = 1;
Why do you have ATRStopLoss =1 as an input is what confused me? I only saw ATRMultiplier under Properties.
Thanks.
Comment
-
Hello Trader17,
Thank you for your reply.
I wouldn't advise referring to the original version, the second version I posted again in the thread linked above is the corrected version.
In the corrected version, ATRStopLoss is updated once processing starts to the ATR * Multiplier value that gets calculated.
Please let us know if we may be of further assistance to you.Kate W.NinjaTrader Customer Service
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by Javierw.ok, Today, 04:12 PM
|
0 responses
3 views
0 likes
|
Last Post
by Javierw.ok
Today, 04:12 PM
|
||
Started by timmbbo, Today, 08:59 AM
|
2 responses
10 views
0 likes
|
Last Post
by bltdavid
Today, 04:10 PM
|
||
Started by alifarahani, Today, 09:40 AM
|
6 responses
40 views
0 likes
|
Last Post
by alifarahani
Today, 03:18 PM
|
||
Started by Waxavi, Today, 02:10 AM
|
1 response
18 views
0 likes
|
Last Post Today, 03:03 PM | ||
Started by Kaledus, Today, 01:29 PM
|
5 responses
15 views
0 likes
|
Last Post Today, 02:56 PM |
Comment