For example, if the following condition (below) is true within the last 10 bars.
<Condition>
if ((MACD1.Avg[0] >= 10)
&& (Close[0] > SMA2[0])
)
Execute the following script (if the condition above is true as of 10 bars ago):
<Action to execute, if Condition is True>
Draw.TriangleDown(xxxxxxxxxxxxxxxxx);
Comment