指定
The Bot will send orders at the start of each period. The orders will be defined x amount of bips above and below open price of the bar. I want to determine the distance for each order differently.
Variables :
D1,D2,D3,D4,D5 (distance below and above open price)
Q1,Q2,Q3,Q4,Q5 (Amount of order)
STP(STOP LOSS DİSTANCE OF ALL ORDERS)
OP ( open price)
when the new bar starts the bot will send 5 Buy Limit orders and 5 sell orders. as example period starts and open price of EURUSD 1,10000.
variables defined in bips as
d1=100 d2= 200 d3=400 d4=700 d5= 1000 and q1=5 q2=4 q3=3 q4=4 q5=5 STP =2000
BUY ORDERS TAKE PROFIT STOP LOSS
B1----5-----@ 1,09900(OPEN-D1) 1,10100 (OPEN+D1) 1,08000 (OPEN-STP)
B2----4-----@ 1,09800 B1 PRICE (1,09900) 1,08000
B3----3-----@ 1,09600 B2 PRICE 1.08000
B4----4-----@ 1,09300 B3 PRICE 1.08000
B5----5-----@ 1.09000 B4 PRICE 1.08000
SELL ORDERS TAKE PROFIT STOP LOSS
S1----5-----@ 1,10100 (OPEN+D1) 1,09900 (OPEN-D1) 1,12000 (OPEN+STP)
S2----4-----@ 1,10200 S1 PRICE (1,10100) 1,12
S3----3-----@ 1,10400 S2 PRICE 1,12
S4----4-----@ 1,10700 S3 PRICE 1,12
S5----5-----@ 1.11 S4 PRICE 1.12000
THE BOT will cancel the other side limit orders when the first order is realized. for example if B1 order is opened first , all the sell orders will be canceled.
ıf s1 is opened all b1b2b3b4b5 orders will be canceled.
finally at the end of bar all the remaining orders will be cancelled. open orders will be settled as''close by'' i.e. shorta and longs will be closed by each other. ıf there are still opened position it will be closed by market order at the close price.
the expert advisor should work both in metatrader4 and 5 and also the bot should operate even ı am offline. ıt should work all time frames.
trading time interval should be also defined by me
thanks