+1 888 340 6572

Below: Difference between revisions

From MultiCharts
 
Line 30: Line 30:
To open a short position if a 5-period moving average crosses below a 10-period moving average:
To open a short position if a 5-period moving average crosses below a 10-period moving average:
<syntaxhighlight>
<syntaxhighlight>
if (Average(Close, 5) cross below Average(Close, 10)) then
If (Average(Close, 5) cross below Average(Close, 10)) then
SellShort ("ES") 1 contracts next bar at market;
SellShort ("ES") 1 contracts next bar at Market;
</syntaxhighlight>
</syntaxhighlight>


[[Category:Comparisons and Loops]]
[[Category:Comparisons and Loops]]