Hello,
I need help with this EA. Its purpose is for news straddle trading. The input parameters are:
1) number of lots you want to trade
2) number of pips away from the current price
3) TP
4) SL
5) do you want a buy order, sell order or both
6) date and time you want orders to be placed
When you let it run, it will put buy and/or sell orders at the time you specified, with stop loss and target profits you entered.
I tested it few times on demo and used it today for the first time on live account for NFP. It did a great job, placed orders the way I wanted, 1 minute before the news.
Now, I don't have enough experience in coding to make this EA to work exactly what I want it to do so I hope you guys can help me.
a) I don't know how to make the EA to check both the date and the time for placing orders. For now, it is checking only the time.
b) I would like to have an option to put in the expiration date and time for the orders, don't know how to do that. I saw there is a parameter for expiraton in that function which is called when the order is placed, but I am always getting errors when I tried to use it, so I just left it on 0 (zero) for now.
c) For now, it will place only 1 buy and/or 1 sell order, maybe it would be a good idea to parametrize that too so we can choose 1 or more orders to be placed in any direction.
If you think this EA is worth it, please feel free to add and improve it any way you see fit.
Thank you guys,
branac
I need help with this EA. Its purpose is for news straddle trading. The input parameters are:
1) number of lots you want to trade
2) number of pips away from the current price
3) TP
4) SL
5) do you want a buy order, sell order or both
6) date and time you want orders to be placed
When you let it run, it will put buy and/or sell orders at the time you specified, with stop loss and target profits you entered.
I tested it few times on demo and used it today for the first time on live account for NFP. It did a great job, placed orders the way I wanted, 1 minute before the news.
Now, I don't have enough experience in coding to make this EA to work exactly what I want it to do so I hope you guys can help me.
a) I don't know how to make the EA to check both the date and the time for placing orders. For now, it is checking only the time.
b) I would like to have an option to put in the expiration date and time for the orders, don't know how to do that. I saw there is a parameter for expiraton in that function which is called when the order is placed, but I am always getting errors when I tried to use it, so I just left it on 0 (zero) for now.
c) For now, it will place only 1 buy and/or 1 sell order, maybe it would be a good idea to parametrize that too so we can choose 1 or more orders to be placed in any direction.
If you think this EA is worth it, please feel free to add and improve it any way you see fit.
Thank you guys,
branac
Attached File(s)
Straddle_EA.mq4
3 KB
|
10,900 downloads