Dear all,
I have a problem with a fixed stoploss exit. Before I add the stoploss in, everything seems ok. But after I run the stoploss in front of others, the result shows me multiple exits to one entry, eventhough I set Strategy.ALL as the lotsize everytime. I attached the scripts to this post. The one has got problem is called " function ExitFixedStopLoss()" in line 232. It is called at line 166. When the function is disabled at 166, I do not have such a problem. Could you please give me some advice to solve it? I have already spent quite a long time on it, but still confused. Thank you...~!
I have a problem with a fixed stoploss exit. Before I add the stoploss in, everything seems ok. But after I run the stoploss in front of others, the result shows me multiple exits to one entry, eventhough I set Strategy.ALL as the lotsize everytime. I attached the scripts to this post. The one has got problem is called " function ExitFixedStopLoss()" in line 232. It is called at line 166. When the function is disabled at 166, I do not have such a problem. Could you please give me some advice to solve it? I have already spent quite a long time on it, but still confused. Thank you...~!