Hi
I am trying to learn MQL for writing a simple EA but I could not succeed. I thought may be I will ask help here.
When a new daily candle arrives, my EA should place 2 market orders.
res=OrderSend(Symbol(),OP_BUY,0.1,Ask,3,Ask-0.0025,Ask+0.01);
res=OrderSend(Symbol(),OP_SELL,0.1,Bid,3,Bid+0.0025,Bid-0.01);
When the market moves 25 pips in any direction, one of my order will be stopped out, immediately the other order should be moved to BE.
If the price comes back to the Open price and hit my BE then, I repeat doing the above for one more time. if both the attempts failed i wait for the next day to start the whole process again.
Can some one help please.
I am trying to learn MQL for writing a simple EA but I could not succeed. I thought may be I will ask help here.
When a new daily candle arrives, my EA should place 2 market orders.
res=OrderSend(Symbol(),OP_BUY,0.1,Ask,3,Ask-0.0025,Ask+0.01);
res=OrderSend(Symbol(),OP_SELL,0.1,Bid,3,Bid+0.0025,Bid-0.01);
When the market moves 25 pips in any direction, one of my order will be stopped out, immediately the other order should be moved to BE.
If the price comes back to the Open price and hit my BE then, I repeat doing the above for one more time. if both the attempts failed i wait for the next day to start the whole process again.
Can some one help please.
Weigh well output the loss and gain And proper action ascertain