No, thats my Short exit condition. Its the simplest exit condition that i have used.
If you are referring to the Short Entry code...then its something like:
Ref(Close,-2)> Ref(Close,-3) and
(
Ref(High,-1)-Ref(Low,-1) > 1.0*(Ref(High,-2)-Ref(Low,-2)) and
Ref(Close,-1)<ref(Close,-2)
) and
(
(Ref(Volume,-1) > Mov(Ref(Volume,-1),OPT2,S)) OR ( Ref(Volume,-1) > Mov(Ref(Volume,-1),OPT2+1,S)) or (Ref(Volume,-1) > Mov(Ref(Volume,-1),OPT2+2,S))
)
and
(
(High-Low)<(Ref(High,-1)-Ref(Low,-1)) and
(
Volume < Mov(Volume,OPT2,S) and close<0.75*(High+Low) and close < ref(C,-1)
)
OR
(
Close<ref(C,-1) and Volume> Mov(Volume,OPT2,S)
)
)
and
Mov(Close,OPT4,E)>Close
...
I guess that was not the problem. Problem was that it was exiting where it shouldn't have. In some cases it was exiting properly and in other cases it was exiting improperly.
i am confused why is it doing such thing.
I have posted the link of the JPG image in which you can see the wrong and right both things.
I am banging my head against this problem for last 1 week. Can you help me out?