| SetBarColor Place, Color |
This procedure has two parameters:
| Place | Enter the place where the selected color will be used on the graph. |
| Color | Enter here the constant of the color you want to highlight the selected place. Constants are listed above. |
Example:
|
' Test Color system ' To see a result, apply it on a graph! ' You can run it but it will return nothing cause there are no buy/sell signals Sub Main() For CurrentBar = BeginBar to EndBar If GetValue("SAR", CurrentBar) < Close(CurrentBar) then SetBarColor CurrentBar, clDarkGreen If GetValue("SAR", CurrentBar) > Close(CurrentBar) then SetBarColor CurrentBar, clLightRed If GetValue("RSI", CurrentBar) < 20 then SetBarColor CurrentBar, clYellow Next End Sub |