Like on the long side, a huge red candle (compared to its ATR) sets off an exit position? thanks
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
ATR bars
Collapse
X
-
Hello ezrollin,
To make that type of condition you would need to subtract the High from the Low to get a difference in price to know how large or small a bar is. The color would not be able to be used in any type of condition, you would need to use a price so that can be used in a condition.
A custom series could be used to do math like that, in a sets action you can set a custom series to the High with a minus offset and subtract the low. That would set the series to the difference which could be used later in your other sets conditions.
JesseNinjaTrader Customer Service
-
Was able to set the price Difference[0]
But I cant figure out how to use the Difference[0] on another set.
Theres no way to pull it up in the "IF" condition set.
So I was trying to write an IF condition for IF close > Difference[0] and a red bar (close < open)
but theres just no way to use the Difference[0] custom series.
Comment
Latest Posts
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by md4866, 05-01-2024, 08:15 PM
|
2 responses
18 views
0 likes
|
Last Post
by md4866
Today, 12:33 PM
|
||
Started by samish18, Today, 12:20 PM
|
0 responses
7 views
0 likes
|
Last Post
by samish18
Today, 12:20 PM
|
||
Started by thread, 04-15-2024, 11:58 PM
|
3 responses
48 views
0 likes
|
Last Post
by Georg1o
Today, 12:05 PM
|
||
Started by leojimenezp, 04-20-2024, 05:49 PM
|
4 responses
50 views
0 likes
|
Last Post
by leojimenezp
Today, 11:49 AM
|
||
Started by nicthe, Today, 09:24 AM
|
1 response
8 views
0 likes
|
Last Post
by nicthe
Today, 10:57 AM
|
Comment