OmniTrader Forum
-
Plug-ins for OmniTrader
profit bands colored based on slope |
^ Top | ||
panetmoto![]() Posts: 11 Joined: 1/15/2018 Location: visalia ![]() | any way to get the vwap to color red when it is down sloping ![]() | |
^ Top | ||
Barry Cohen![]() Posts: 6338 Joined: 1/19/2004 ![]() | 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]. | |
^ Top | ||
panetmoto![]() Posts: 11 Joined: 1/15/2018 Location: visalia ![]() | thank you Barry | |
^ Top | ||
panetmoto![]() Posts: 11 Joined: 1/15/2018 Location: visalia ![]() | #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 | |
^ Top | ||
Jim Dean![]() Posts: 3022 Joined: 9/21/2006 Location: L'ville, GA ![]() | 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. |