
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
Hello,
I am using ICMarkets and it have StopLevel = 0 for all currency pairs. I designed the Trailing based on ICMarket and code is really working amazing without any issue.
Working fine with Broker having 0 Stop Level :
When i changed my broker from ICMarkets to Hotforex which have StopLevel ranging from 30-50 based the currency pair, my above code get failed and i started getting error code 130. Than i realized it due to the StopLevel, so i made some changes which can work with both StopLevel 0 pairs and StopLevel more than 0 pairs.
Modification 1 (Failed) :
The Issue with Modification 1, it change Stop Loss in opposite to favor direction too and thus it never touch Stop-loss, as current price change against the favorable direction than Stop-loss also get changed against the favorable direction.
Modification 2 :
In Modification 2, still i am unable to understand what the mistake i am doing.
How can i modify my code so it can work in all kind of broker and pairs whether it have 0 stop-level or above 0 stoplevel