if (actionOccurred == false (Thereby allowing a new action to take place)
/* && your conditions to trigger action here.
This is where my original command branch goes.
for this simple example I'll use the high of the current bar is greater than an SMA,
which will be true for several bars in a row */
if ((actionsOccurred ==false/* && conditions to trigger action*/)
&& (Close[2] > Open[2])
&& (Close[1] > Open[1])
&& (Close[0] > Open[0])
&& (Close[2] > High[3])
&& (Close[1] > High[2])
&& (Close[0] > High[1])
&& (Low[1] > Low[2])
&& (Low[0] > Low[1])
&& BarBrushes[3] != Brushes.Aquamarine)
I guess you had to walk me through it.
Comment