|
panetmoto
 Member
Posts: 11
Joined: 1/15/2018
Location: visalia
User Profile |
any way to get the vwap to color red when it is down sloping
Attached file : 4-12-2022 6-34-47 PM.jpg (470KB - 141 downloads)
|
|
Barry Cohen
 Sage
      Posts: 6338
Joined: 1/19/2004
User Profile |
Yes, you can use a formula like this to color red when one bar is at a lower level than the previous bar: Indicator < Indicator[1]
If you want a greater slope, you can add additional previous bars like this: Indicator < Indicator[1] AND Indicator[1] < Indicator[2].
|
|
panetmoto
 Member
Posts: 11
Joined: 1/15/2018
Location: visalia
User Profile |
thank you Barry
|
|
panetmoto
 Member
Posts: 11
Joined: 1/15/2018
Location: visalia
User Profile |
#Indicator
Return 0 ' Return the value calculated by the indicator
VWAP(1,1) < VWAP(1,1)[1] and VWAP(1,1) [1] < VWAP(1,1) [2]
here is what i have and says build failed
|
|
Jim Dean
 Sage
  Posts: 3022
Joined: 9/21/2006
Location: L'ville, GA
User Profile |
Eliminate the #Indicator and Return lines.
All you need is the boolean script rule.
Apply it in the Color Chart definition.
Check Help for how that works.
|