I've an indicator with a Upper and Lower plot. Upper plots upper divergence and lower plots lower divergence. I want to create an if statement when upper or lower plots occur do something.
What would the if statement be?
if (UpperPlot occurs)
EnterLong;
if (LowerPlot occurs)
EnterShort;
Essentially, my point is that how to create an if statement when the upper or lower dot occurs? I'll be more than happy to share more of the code so you get a better understanding.
Thanks

Comment