Please edit your post and use the code button (Alt+S) to paste code.
In future please post in the correct section
I will move your topic to the MQL4 and Metatrader 4 section.
Keith Watford:
THX, i change it :)
Please edit your post and use the code button (Alt+S) to paste code.
In future please post in the correct section
I will move your topic to the MQL4 and Metatrader 4 section.
for (int b=OrdersTotal()-1;b>=0;b--);)
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
Hello. Im something more than beginner, but less than medium programmer, so im looking for help :).
This is the begining of my expert advisor. Strange thing is that rest of EA works perfectly, but this begining of EA is the core of my idea.
When i open forex platform and start EA, i want to make a 3 buytickets (3 is example, it could be 10 or 88). When price go UP, everything is fine, i have a stopp loss and it works good. But when i have 3 orders and price go DOWN more than 100 points [ if (OrderOpenPrice()>=Bid + (( PRICE *3)*_Point)) ] i want to delete all of this order sends which was makes before, and make another 3 ordersend till the price go UP more than PRICE*2=200 points. When rhere is only one buyticket1 it works fine, but when there is more than 1 ordersend (buyticket2, buticket 3 ....) it doesnt work.
I know that there is another 1000 ways to do it mayby more correctly, but for now i somebody wants to help, please go with this code.
THX.