I set my exit signal as following (both as a int):
1)When CCI hits 50 exit long position (Variable nVLong).
2)When CCI hits -50 exit short position (Variable nVShort).
There is no problem when I am in Long position strategy always exits when CCI hits 50. But when I am in short position it does not work.
Thanks
#region Variables
// Wizard generated variables
privateint cCIperiod = 14; // Default setting for CCIperiod
privateint eMA_Q = 5; // Default setting for EMA_Q
privateint eMA_M = 34; // Default setting for EMA_M
privateint eMA_S = 102; // Default setting for EMA_S
privateint nVLong = 50; // Default setting for NVLong
privateint sL = 18; // Default setting for SL
privateint nVShort = -50; // Default setting for NVShort
// User defined variables (add any user defined variables below)
#endregion

Comment