Execute Script/EA

 

Hello - I was wondering to see if some one could help me

I need an EA/script to overcome Metatraders inability to add pending orders

I know at what price I want to buy and sell at, which I manually can add in, and the EA/script would loop at tick until it reaches that price and executes itself - ideally i can set a SL and TP

can anyone help ?

 

You can enter limit orders with MT4. After you press F9, change the "Type" field from "Instant Order" to "Pending Order". Then you'll see Buy Limit, Buy Stop, Sell Limit, and Sell Stop. Those are pending orders.

I recommend you read this article by MetaQuotes: How are pending orders placed?

 

Hi Scorpian

Thanks for that - I dont i made my self clear. Let me make an example - the current price for cable is 1.9895. I think that the price breakout will be at 1.9990. I want to put an order to buy at 1.9990, with a stop loss of 10 and a Tp of 20. Obviosly i may also put in a sell order at 1.865, witha stop loss of 10 and a tp of 20.

I cannot do this with pending orders .

Any help ?

 

Yes you can do that with pending orders. I've done that numerous times already.

Order #1: Buy Stop, Price = 1.9990, SL = 19980, TP = 2.0010

Order #2: Sell Stop, Price = 1.8650, SL = 1.8660, TP = 1.8630

Reason: