Search found 2 matches

Go to advanced search

by Kevin F
Sun Sep 13, 2020 6:38 pm
Forum: Pine Script Q&A
Topic: Color Change above and below a value
Replies: 3
Views: 1238
 
Jump to post

Re: Color Change above and below a value

Thank you so much. This is where I ender up. //@version=4 study(title="Chaikin Money Flow", shorttitle="CMF", format=format.price, precision=2, resolution="") length = input(20, minval=1) ad = close==high and close==low or high==low ? 0 : ((2*close-low-high)/(high-low))*volume mf = sum(ad, length) /...
by Kevin F
Sat Sep 12, 2020 6:45 pm
Forum: Pine Script Q&A
Topic: Color Change above and below a value
Replies: 3
Views: 1238
 
Jump to post

Color Change above and below a value

This seems so simple, but I cannot figure it out. I want a Chaikin Money flow the uses columns and has user-defined colors above and below the hline, or <0 or >0. Is there a tutorial on how to do this? I would like to do that on a moving average as well that would change color when price crosses the...

Go to advanced search