♥ 0 |
alright. so this does what i want but i got one problem left with this. input showBreakoutSignals = yes; def greencandle = open < close; def OBV = TotalSum(Sign(close – close[1]) * volume); def obvbuy = OBV > SMA; def buy = if greencandle[5] then close > close[5] else close > open[5]; plot buysignal = obvbuy is true and buy is true; AssignBackgroundColor(if buysignal then Color.CYAN else if sellsignal then Color.YELLOW else Color.CURRENT);
Marked as spam
|
Please log in to post questions.