orderselect(ticket,select_by_ticket,MODE_HISTORY)
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
Im writing my first EA
1. I want only 1 trade running at a given moment
how can i make sure this happanes ??
if a trade is reaching either T.P or S.L it loses its ticket and its value becomes -1 ?
2. I want to set a some variable once a trade has reached S.L
orderselect(ticket,select_by_ticket)
if (orderstoploss()>0)
?
is that the way ?
thanks !!