![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
i fixed the problem i want to thank you devries :) and I hope to remain in contact :)
hello devries how are you?
if you have time please can you see my code below: i want to do 1 sellstop every 10 pips:
hello devries how are you?
if you have time please can you see my code below: i want to do 1 sellstop every 10 pips:
It fails you have no clue what you are doing.... Again you are deleting the trade you just placed read this topic again from beginning
and come with better coding...
It fails you have no clue what you are doing.... Again you are deleting the trade you just placed read this topic again from beginning
and come with better coding...
okey i will, :) i tried to do that Taking into considiration you Advice Previously:
i lunched this code into Mt4 chart window: he do do 1 order sell and when the order is closed he do another one so very good but i want also "if the current price == open price +10*Point and whatever the previous order is closed or no" to do another order sell.
can you help me please.
okey i will, :) i tried to do that Taking into considiration you Advice Previously:
i lunched this code into Mt4 chart window: he do do 1 order sell and when the order is closed he do another one so very good but i want also "if the current price == open price +10*Point and whatever the previous order is closed or no" to do another order sell.
can you help me please.
So you want to do this . . .
What is open price the opening price of ? what if you have more than one open order ? your problem isn't simply one of coding, you also need to think through what you are trying to do and how you are going to do it . . then, and only then, should you start thinking about code.
What kind of Broker are you using ? is it an ECN Broker ? is it 4 digit or 5 digit ?
So you want to do this . . .
What is open price the opening price of ? what if you have more than one open order ? your problem isn't simply one of coding, you also need to think through what you are trying to do and how you are going to do it . . then, and only then, should you start thinking about code.
What kind of Broker are you using ? is it an ECN Broker ? is it 4 digit or 5 digit ?
open price is: if(OrderSelect(the last ticket, SELECT_BY_POS)==true)
Print("open price for the order 10 ",OrderOpenPrice()); the openprice of the last ticket and yes i found this problem before how can i return the open price of the last opening order.
i'm using a broker with 4 digits
how can i return the open price of the last opening order.
i'm using a broker with 4 digits
Is your Broker an ECN Broker ?
This should get you the most recently opened Order, and place a new Sell . . . by the way, you Sell at Bid and Buy at Ask.
Is your Broker an ECN Broker ?
This should get you the most recently opened Order, and place a new Sell . . . by the way, you Sell at Bid and Buy at Ask.
thank you very much :) and i will try to put it into my expert
my broker is: DDE
thank you very much :) and i will try to put it into my expert
my broker is: DDE
hello again :) i create this EA and i tested it in the strategy tester and he give the result what i want:
hello again :) i create this EA and i tested it in the strategy tester and he give the result what i want:
And if the OrderSend fails don't you want to know why ? or would you rather waste time scratching you head and asking for help here ?