Auftrag beendet
Spezifikation
I want an EA which is placing on several levels orders with definated entry limit.
Depends on the market price, EA has to check if the orders of these levels has to be placed as stop or limit order.
Each level will be placed as pending orders, but only if the level before is in the market. Only first order is placed as market order or es limit order. So if placed as Limit first level will be placed only if first limit order is in the market.
First order can be placed as market order or limit order (limit buy or limit sell as pending.
For first order can be definated
buy or sell can be choosen
Market / or limit - depends on Market price, EA checks if it placed as limit or stop order.
TP and SL -
lot size – example 0.50
If first order is the market Level 1 orders (if activ) placed as pendings:
Buy or Sell orders can be choosen – if buy is selected – all Level 1 orders are placed as buy orders as pendings with definated TP and lot size.
Limit price for each level 1 order the same – 1.2000 – can be inputs in sets
1a active or inactive – TP and SL - definition of lot size – example 0.50 - in Commentary is 1a
1b active or inactive – TP and SL - definition of lot size – example 0.50 - in Commentary is 1b
1c active or inactive – TP and SL - definition of lot size – example 0.50 - in Commentary is 1c
1d active or inactive – TP and SL - definition of lot size – example 0.50 - in Commentary is 1d
1e active or inactive – TP and SL - definition of lot size – example 0.50 - in Commentary is 1e
Explanation – if market price is 1.2050 and level buy orders has to be placed at 1.200 all selected level 1 buy orders has to be placed as buy limit order as pending with limit on 1.2000
Level 2 orders: are only placed as pending if level 1 orders in the market.
Buy or Sell orders can be choosen – if sell is selected – all Level 2 orders ar placed as sell orders pendings with definated TP and lot size. (but only if Level 1 pending orders are in the market).
Limit price for each order the same – 1.2000 -
2a activ or inactiv – TP and SL - definition of lot size – example 0.50 - in Commentary is 2a
2b activ or inactiv – TP and SL - definition of lot size – example 0.50 - in Commentary is 2b
2c activ or inactiv – TP and SL - definition of lot size – example 0.50 - in Commentary is 2c
2d activ or inactiv – TP and SL - definition of lot size – example 0.50 - in Commentary is 2d
2e activ or inactiv – TP and SL - definition of lot size – example 0.50 - in Commentary is 2e
Explanation – if market price is 1.2050 and level sell orders hast o be placed at 1.200 all selected level 2 sell orders has to be placed as sell stop order as pending with limit on 1.2000
Level 3 orders: are only placed as pending if level 2 orders in the market.
Buy or Sell orders can be choosen – if sell is selected – all Level 3 orders ar placed as sell orders pendings with definated TP and lot size. (but only if Level 2 pending orders are in the market).
Lot amount for all orders – example 0.50
Limit price for each order the same – 1.2000 – can be inputet in sets
3a activ or inactiv – TP and SL - definition of lot size – example 0.50 - in Commentary is 3a
3b activ or inactiv – TP and SL - definition of lot size – example 0.50 - in Commentary is 3b
3c activ or inactiv – TP and SL - definition of lot size – example 0.50 - in Commentary is 3c
3d activ or inactiv – TP and SL - definition of lot size – example 0.50 - in Commentary is 3d
3e activ or inactiv – TP and SL - definition of lot size – example 0.50 - in Commentary is 3e
3f activ or inactiv – TP and SL - definition of lot size – example 0.50 - in Commentary is 3f
Explanation – if market price is 1.2050 and level sell orders hast o be placed at 1.200 all selected level 3 sell orders has to be placed as sell stop order as pending with limit on 1.2000
Level 4 orders: are only placed as pending if level 3 orders in the market.
Buy or Sell orders can be choosen – if sell is selected – all Level 3 orders ar placed as sell orders pendings with definated TP and lot size. (but only if Level 3 pending orders are in the market).
Lot amount for all orders – example 0.50
Limit price for each order the same – 1.2000 – can be inputet in sets
4a activ or inactiv – TP and SL - definition of lot size – example 0.50 - in Commentary is 4a
4b activ or inactiv – TP and SL - definition of lot size – example 0.50 - in Commentary is 4b
4c activ or inactiv – TP and SL - definition of lot size – example 0.50 - in Commentary is 4c
4d activ or inactiv – TP and SL - definition of lot size – example 0.50 - in Commentary is 4d
4e activ or inactiv – TP and SL - definition of lot size – example 0.50 - in Commentary is 4e
4f activ or inactiv – TP and SL - definition of lot size – example 0.50 - in Commentary is 4f
Explanation – if market price is 1.2050 and level sell orders hast o be placed at 1.200 all selected level 3 sell orders has to be placed as sell stop order as pending with limit on 1.2000
Level 5 orders: are only placed as pending if level 3 orders in the market.
Buy or Sell orders can be choosen – if sell is selected – all Level 3 orders ar placed as sell orders pendings with definated TP and lot size. (but only if Level 4 pending orders are in the market).
Lot amount for all orders – example 0.50
Limit price for each order the same – 1.2000 – can be inputet in sets
5a activ or inactiv – TP and SL - definition of lot size – example 0.50 - in Commentary is 5a
5b activ or inactiv – TP and SL - definition of lot size – example 0.50 - in Commentary is 5b
5c activ or inactiv – TP and SL - definition of lot size – example 0.50 - in Commentary is 5c
5d activ or inactiv – TP and SL - definition of lot size – example 0.50 - in Commentary is 5d
5e activ or inactiv – TP and SL - definition of lot size – example 0.50 - in Commentary is 5e
5f activ or inactiv – TP and SL - definition of lot size – example 0.50 - in Commentary is 5f
Level 6 orders: are only placed as pending if level 3 orders in the market.
Buy or Sell orders can be choosen – if sell is selected – all Level 3 orders ar placed as sell orders pendings with definated TP and lot size. (but only if Level 5 pending orders are in the market).
Lot amount for all orders – example 0.50
Limit price for each order the same – 1.2000 – can be inputet in sets
6a activ or inactiv – TP and SL - definition of lot size – example 0.50 - in Commentary is 6a
6b activ or inactiv – TP and SL - definition of lot size – example 0.50 - in Commentary is 6b
6c activ or inactiv – TP and SL - definition of lot size – example 0.50 - in Commentary is 6c
6d activ or inactiv – TP and SL - definition of lot size – example 0.50 - in Commentary is 6d
6e activ or inactiv – TP and SL - definition of lot size – example 0.50 - in Commentary is 6e
6f activ or inactiv – TP and SL - definition of lot size – example 0.50 - in Commentary is 6f
EA needs Magic number - Magic Number should be also in commentary- magic nr example - 123 +Level 1a etc.
Commetar function