Custom Formula Collection

Commodity Channel Index Buy and Sell Signals

This system generates buy and sell signals based on the criteria using the Commodity Channel Index indicator. It enters a long position when yesterday's 14 period CCI is greater than -250 and today's 14 period CCI is less than -250. It will close long according to the criteria you specify in close long. It enters a short position when yesterday's 14 period CCI is less than 250 and today's 14 period CCI is greater than 250 and closes short according to the criteria you specify in close short.

ENTER LONG:

When( Ref(CCI( 14 ) ,-1 ) ,>
,-250 ) AND When(CCI( 14 ) ,<
,-250 )

CLOSE LONG:

When( enter your criteria here )

ENTER SHORT:

When( Ref(CCI( 14 ) ,-1 ) ,<
,250 ) AND When(CCI( 14 ) ,>
,250 )

CLOSE SHORT:

When( enter your criteria here )

** You can change to a different periodicity other than 14 by changing every occurrence of 14 with the desired periodicity.

For additional help with formulas, please see the Formula Primer.

Can't find the custom formula you need? MetaStock can create formulas for you.