maybe this code can be useful... it's the code that i have used to try to find the reason why the upper code doesn't work. in basis of the results printed by this code it should be correct... but... :/
double SL; void OnInit(){ SL = AccountFreeMargin()*8/100/(MarketInfo(Symbol(),MODE_TICKVALUE))*0.2; SL = NormalizeDouble(SL, 0); Alert ("sl no *Point ", SL); SL = SL*Point; Alert("sl ",SL); Alert("price level sl ",Ask - SL); }

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
Hi guys. I can't understand why the backtest of this strategy gives me back error 130. can someone help me?