xPrice[int] = yPrice - (CurrentBar - int)*slope;
I want the "int" value input into for "xPrice" to be carried over the the right side of the equation. If I specify "xPrice[10]." I want the calculation to be
"yPrice - (CurrentBar - 10)*slope;" So more specifically I'm looking for a Ninjascript way to say " If the integer input for xPrice[int] is whatever then the integer input on the right is the same."
Correct syntax eludes me.

Comment