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 CarlTrading, 03-31-2026, 09:41 PM
|
1 response
41 views
0 likes
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
20 views
0 likes
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
29 views
1 like
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|
||
|
Started by CarlTrading, 03-30-2026, 11:51 AM
|
0 responses
46 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:51 AM
|
||
|
Started by CarlTrading, 03-30-2026, 11:48 AM
|
0 responses
37 views
0 likes
|
Last Post
by CarlTrading
03-30-2026, 11:48 AM
|

Comment