please edit your post -
Forum on trading, automated trading systems and testing trading strategies
When you post code please use the CODE button (Alt-S)!
Naresh kumar #: Can you please help me with this?
-
void OpenTrade(ENUM_ORDER_TYPE InpType) { double price = (InppType==ORDER_TYPE_BUY) ?
MT4 has no such types OrderSend - Trade Functions - MQL4 Reference
-
Create an OrderSelect loop. Find the last order, keep going and find the first order, compare. What's the problem?
-
Help you with what? You haven't stated a problem, you stated a want. Show us your attempt (using the CODE button) and state the nature of your difficulty.
No free help (2017)Or pay someone. Top of every page is the link Freelance.
Hiring to write script - General - MQL5 programming forum (2018)We're not going to code it for you (although it could happen if you are lucky or the problem is interesting).
No free help (2017)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
How can I compare and close first and last order when they in profit? Meaning when EA opens 5 buy orders, compare 1st and 5th orders, close when they are in profit, likewise compare 4th and 2nd order, close when they are profit. Instead of closing all together, how can i close in this way? Can you please guide me how to do these?