recognize If SL was triggered
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 agree to website policy and terms of use
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!