Create your new EA in your MT4 and copy this code and paste in your new EA file. After compile Open your MT4 and drag and drop your EA on your favourite currency pair window. Your 6 ( 3 Buy and 3 Sell ) order automatic create in your MT4 .
You can change your stoploss and take profit:
For Sell stoploss edit : Ask+1000
For Buy stoploss edit : Bid-1000
For Sell takeprofit edit : Ask-50
For Buy takeprofit edit : Bid+50
For Buy takeprofit edit : Bid+50
//| singleopen.mq4 |
//| Copyright 2018, MetaQuotes Software Corp. |
//| https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2018, MetaQuotes Software Corp."
#property link "https://www.mql5.com"
#property version "1.00"
#property strict
//+------------------------------------------------------------------+
//| Expert initialization function |
//+------------------------------------------------------------------+
int start(){
//manage open orders here
if (OrdersTotal() > 3){
return(0);
}
//open new orders here
{ // Opening BUY
OrderSend(Symbol(),OP_SELL,0.01,Bid,2,Ask+1000*Point,Ask-50*Point);
OrderSend(Symbol(),OP_BUY,0.01,Ask,2,Bid-1000*Point,Bid+50*Point);
return(0);
}
}
//+-----------------------------------------------------------------------------+
NOTE : THIS SCRIPT ONLY FOR EDUCATIONAL PURPOSE .YOU CAN USE THIS OWN RISK.BEFORE USE ON LIVE ACCOUNT TRY DEMO ACCOUNT FOR TEST.
I AM NOT RESPONSIABLE FOR ANY LOSE YOUR MONEY
No comments:
Post a Comment