i have now tried to change a script which i found on the internet but its still not working. its also not with buy limit working. please help.
//+------------------------------------------------------------------+ //| trade.mq4 | //| Copyright © 2004, MetaQuotes Software Corp. | //| http://www.metaquotes.net/ | //+------------------------------------------------------------------+ #property copyright "Copyright © 2004, MetaQuotes Software Corp." #property link "http://www.metaquotes.net/" #include <stdlib.mqh> #include <WinUser32.mqh> //+------------------------------------------------------------------+ //| script "trading for all money" | //+------------------------------------------------------------------+ int start() { //---- //---- int ticket=OrderSend(Symbol(),OP_BUYSTOP,0.1,Ask+30*Point,29,Ask+20*Point,Ask+50*Point,"Buy stop",255,3,CLR_NONE); if(ticket<1) { int error=GetLastError(); Print("Error = ",ErrorDescription(error)); return; } //---- OrderPrint(); return(0); } //+------------------------------------------------------------------+
i have now tried to change a script which i found on the internet but its still not working. its also not with buy limit working. please help.
hi raptor,
i dont get any error. i get nothing in return but if i use this line instead of the buy stop:
int ticket=OrderSend(Symbol(),OP_BUY,1.0,Ask,29,0,0,"Buy half",255,3,CLR_NONE);
then it opens directly the order but thats not my aim.
my aim is to open a buy or sell stop pending order at 30 pips above the current ask price with a sl of 20 and tp of 50.
my aim is to open a buy or sell stop pending order at 30 pips above the current ask price with a sl of 20 and tp of 50.
You have script on your Metatrader named...... send_pending.mq4
change it the way you want
You have script on your Metatrader named...... send_pending.mq4
change it the way you want
you are the man :)
thanks a lot. solved my problem.
Hi composer,
Could you send to me this script, please?
My email is thienluan1110@gmail.com.
Thank you.
Best regards.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi everyone, I am looking for a script for the buy and sell stop order.
I have searched on the net but wasnt able to find it.
What the script should do, is the following:
Place an buy or/and stop sell order 30 pips away from the market price with a SL and TP.
Is there any type of script available? I found this one but this is not working for me: https://www.mql5.com/en/code/10075
Thank you all.