trying to have indicator #1 look to see if indicator #2 has been triggered within the last 5 bars before painting bar.
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Paint Bar
Collapse
X
-
more info
indicator #1 has the following once conditions are mettrying to add indicator #1 to indicator #2Code:[SIZE=2][FONT=Courier New]Purple_Short.Set([/FONT][/SIZE][FONT=Courier New][SIZE=2][COLOR=#800080].75[/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2]); [/SIZE][/FONT]
trying to see if indicator #1 has been triggered within the last 5 bars.Code:&& Purple_Short.[FONT=Courier New][SIZE=2][COLOR=#008000][COLOR=black]MAX(High,5)[0]== .75[/COLOR][/COLOR][/SIZE][/FONT]
if indicator #1 has been triggered within the last 5 bars...and of course all the conditions on indicator #2 have been met...then a bar will be painted
i know how to paint bars and add plots, but can't seem to combine these two
-
this may work
this seems to work. it's the complete title or name of indicator as opposed to just the "Set" deal
Code:[SIZE=2][FONT=Courier New][FONT=Courier New][SIZE=2]&& MAX(Bar_Purple_Long_and_Short_Bool_Test_v1([/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#800080]30[/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2], [/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#800080]30[/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2], [/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#800080]30[/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2], [/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#800080]2.618[/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2], [/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#800080]18[/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2], [/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#800080]2[/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2], [/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#800080]63500[/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2], [/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#800080]125500[/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2]).Purple_Short,[/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#800080]5[/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2])[[/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#800080]0[/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2]]== [/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#800080].75 [/COLOR][/SIZE][/FONT][FONT=Courier New][/FONT][/FONT][/SIZE]
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by cmoran13, Yesterday, 01:02 PM
|
0 responses
29 views
0 likes
|
Last Post
by cmoran13
Yesterday, 01:02 PM
|
||
|
Started by PaulMohn, 04-10-2026, 11:11 AM
|
0 responses
21 views
0 likes
|
Last Post
by PaulMohn
04-10-2026, 11:11 AM
|
||
|
Started by CarlTrading, 03-31-2026, 09:41 PM
|
1 response
160 views
1 like
|
Last Post
|
||
|
Started by CarlTrading, 04-01-2026, 02:41 AM
|
0 responses
95 views
1 like
|
Last Post
by CarlTrading
04-01-2026, 02:41 AM
|
||
|
Started by CaptainJack, 03-31-2026, 11:44 PM
|
0 responses
148 views
2 likes
|
Last Post
by CaptainJack
03-31-2026, 11:44 PM
|

Comment