Is there a way to check for divide by zero and not plot that? or is there another approach I should take to compare the relative changes of two sets of data?
Here is my code:
double RsiDelta = (RSI(2,3)[0] + RSI(2,3)[1] + RSI(2,3)[2]) - (RSI(2,3)[1] + RSI(2,3)[2] + RSI(2,3)[3]); double PriceDelta = (Close[0] - Close[1]) * 100; Print("RsiDelta is " + RsiDelta); Print("PriceDelta is " + PriceDelta); Print("RsiDelta divided by PriceDelta is " + RsiDelta / PriceDelta); PTR.Set(RsiDelta / PriceDelta);
Comment