Your topic has been moved to the section: Expert Advisors and Automated Trading — In the future, please consider which section is most appropriate for your query.

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 community,
I cannot open position with SL direclty. [if I entry the value as 4th position - system doesnt accept]
so I add BuyStop afterwards:
Everything works ok, but now my EA needs to have knowledge If position was closed by stop loss.
and If price hits my BuyStop position the deal_reason returns DEAL_REASON_EXPERT and no DEAL_REASON_SL how I wish:)
1. Why system does not accept to set SL at the beginning - broker's fault? Did I forget sth ?
2. How can I differentiate If SL was triggered?
for the reponses - thanks a lot!