global Shorton;
Shorton=0;
Buy = (BarsSince(signalBar) < waitPeriod) Shorton==0;
..............
//later on in code
shorton=1;
the problem is that later on sometimes the shorton gets set to 1. which is what I want the buy code to reference. but it automatically references the shorton as 0 because that is what it is set at the beginning.
I also can't put the buy code after the shorton is set, it will screw up my code for the short side.
Is there anyway to call the value when it is 1 and not 0
I am using an intraday chart.
can anyone help me???