Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Text Alert on bar close colour change
Collapse
X
-
Hello Douglee,
You could compare the close prices, for example if the current close is less than the previous close. To know if there was a reversal in a trend you would need multiple price conditions to check that the close price has been closing higher than each previous bar and then the current bar closed lower than the previous bar.
A very simple example would be to check:
Close[0] < Close[1]
Close[1] > Close[2]
Close[2] > Close[3]
That would check that there were 2 bars rising and then 1 bar falling in a row, you could expand this to account for however many bars you wanted to have in a row before a reversal.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by CaptainJack, 05-29-2026, 05:09 AM
|
0 responses
335 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 05:09 AM
|
||
|
Started by CaptainJack, 05-29-2026, 12:02 AM
|
0 responses
211 views
0 likes
|
Last Post
by CaptainJack
05-29-2026, 12:02 AM
|
||
|
Started by charlesugo_1, 05-26-2026, 05:03 PM
|
0 responses
196 views
1 like
|
Last Post
by charlesugo_1
05-26-2026, 05:03 PM
|
||
|
Started by DannyP96, 05-18-2026, 02:38 PM
|
1 response
288 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 05-11-2026, 05:56 AM
|
0 responses
245 views
0 likes
|
Last Post
by CarlTrading
05-11-2026, 05:56 AM
|

Comment