[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Apply Stop Question



PureBytes Links

Trading Reference Links

I am attempting to vary my stop depending on a condition. It appears 
as though the false condition is always being selected. Am I coding 
this correctly.

thanks


IIf (EMA(C,15) > EMA(C,200), stop = Optimize( "stopo", 20, 20, 30, 
1 ),stop = Optimize( "stopu", 10, 1, 15, 1 ) );

ApplyStop( 0, 1, stop, 1 );