You should search CodeBase. Study different peoples' codes and you will be able to fix it.

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I wrote a function for a trailing stoploss and the logid seems air tight. however while testing, the stoploss is stuck an interval away from the current price no matter which way it moves. what could be the problem?
heres the code (MQL5)
Help would be much appreciated..