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 SalmaTrader, 07-07-2026, 10:26 PM
|
0 responses
54 views
0 likes
|
Last Post
by SalmaTrader
07-07-2026, 10:26 PM
|
||
|
Started by CarlTrading, 07-05-2026, 01:16 PM
|
0 responses
25 views
0 likes
|
Last Post
by CarlTrading
07-05-2026, 01:16 PM
|
||
|
Started by CaptainJack, 06-17-2026, 10:32 AM
|
0 responses
17 views
0 likes
|
Last Post
by CaptainJack
06-17-2026, 10:32 AM
|
||
|
Started by kinfxhk, 06-17-2026, 04:15 AM
|
0 responses
23 views
0 likes
|
Last Post
by kinfxhk
06-17-2026, 04:15 AM
|
||
|
Started by kinfxhk, 06-17-2026, 04:06 AM
|
0 responses
24 views
0 likes
|
Last Post
by kinfxhk
06-17-2026, 04:06 AM
|

Comment