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 Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
612 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
355 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
105 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
561 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
564 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment