Virtual Stop bug?
-
i just tried virtual stop and a problem that occur is sometimes the virtual stop line shown on the chart would not update to the latest stop loss i set. it would only update if i delete the line and it will then recalculate. i think the actual stop loss was also not updated too as the emergency stop i set also was updated after i deleted the pink line from the virtual stop
-
Do you have some simple project/example that can produce this problem?
-
i uploaded my project under id mt4-1630. the stop loss is under the fractal trailing stop is it because if u delete the line it treat it as the stop loss is deleted?
-
This is complex project also including indicator that I don't have
Can you show me the problem with some **simple **test EA?Yes, if you delete the line, there is no stop anymore. There is a function that checks all lines on every tick and if the price is beyond line like this (they have special names), the trade is closed.
-
i guess it might be some problem with my code that's causing the problem though but im not too sure. i separated out the stop function of the ea and used the universal fractal instead. maybe you can check it out. its under mt4-1887. i will check what might be the problem in my code again.
-
What if you work withe regular stops? Or what if you disable those "modify stops"? At least when you disable some blocks, you can detect if they are causing the problem or not.
By the way, are you sure that you want "Once per bar" to be there, after "For each Trade"?
-
i did not notice the problem when i was using regular stop. but then i have changed some of the code although not related to the stop since i used the regular stop. i will test it out. i wanted the once per bar to be there as i only wanted it to change the stop loss and take profit level once every bar. since the take profit level is dependent on the candle close price. and i noticed that the ea will keep set the same stop loss in the bar in the expert journal even if the stop loss was not changed.
-
i think the problem was due to my own code, the initial stop loss was somehow always placed too wide cant figure it out yet though. sorry for the trouble.