First, select “New Indicator” from the Insert menu and use the Indicator Wizard to create the following indicators:
+VM: Abs( Subtract( High, Lag( Low, 1 ) ) )
-VM: Abs( Subtract( Low, Lag( High, 1 ) ) )
TR: Max3( Subtract( High, Low ), Abs( Subtract( High, Lag( Close, 1) ) ), Abs( Subtract( Low, Lag( Close, 1 ) ) ) )
VI+: Divide( Sum( +VM, 14 ), Sum( TR, 14 ) )
VI-: Divide( Sum( -VM, 14 ), Sum( TR, 14 ) )
Then, to create a trading system, select “New Trading Strategy” from the Insert menu and enter the following in the appropriate locations of the Trading Strategy Wizard:
Generate a buy long STOP when all of the following conditions are true:
A>B ( VI+, VI- )
Stop price:
SelectiveMovAvg ( High, CrossAbove( VI+, VI- ), 1 )
Generate a short sell STOP when all of the following conditions are true:
A<B ( VI+, VI- )
Stop price:
SelectiveMovAvg ( Low, CrossBelow( VI+, VI- ), 1 )
+VM: Abs( Subtract( High, Lag( Low, 1 ) ) )
-VM: Abs( Subtract( Low, Lag( High, 1 ) ) )
TR: Max3( Subtract( High, Low ), Abs( Subtract( High, Lag( Close, 1) ) ), Abs( Subtract( Low, Lag( Close, 1 ) ) ) )
VI+: Divide( Sum( +VM, 14 ), Sum( TR, 14 ) )
VI-: Divide( Sum( -VM, 14 ), Sum( TR, 14 ) )
Then, to create a trading system, select “New Trading Strategy” from the Insert menu and enter the following in the appropriate locations of the Trading Strategy Wizard:
Generate a buy long STOP when all of the following conditions are true:
A>B ( VI+, VI- )
Stop price:
SelectiveMovAvg ( High, CrossAbove( VI+, VI- ), 1 )
Generate a short sell STOP when all of the following conditions are true:
A<B ( VI+, VI- )
Stop price:
SelectiveMovAvg ( Low, CrossBelow( VI+, VI- ), 1 )
Last edited:
