MQL4 - automated forex trading   /  

Forum

Recognize orders, if they were triggered or not.

Back to topics list To post a new topic, please log in or register

avatar
4
postrock 2008.07.24 19:19 

Hi, my problem is probably very easy to solve, but i am really new to programming so i still cant solve it.

I need my EA to recognize wich of the pending orders he opened already has been triggered and wich not.



I need that to make the EA perform different actions on orders still pending and on orders that are live in the market.


thx for any help
article

Graphic Expert Advisor: AutoGraf

The article shows the workability of graphics in creation of a convenient interface to manage trading.


avatar
2151
phy 2008.07.24 23:41 

Look for change in OrderType():

example, from OP_BUYLIMIT to OP_BUY


avatar
4
postrock 2008.07.25 01:57 
phy wrote >>

Look for change in OrderType():

example, from OP_BUYLIMIT to OP_BUY

yeah i had just figured it out..and felt pretty stupid for asking.

OrderType == 5 is a pending stop short and so on.

thanks aniway

Back to topics list  

To add comments, please log in or register