need help writing script..

 

can someone pls help me write pending order script? i want 2 types of script, BUY_LIMIT script and SELL_LIMIT script.


explaination of BUY_LIMIT script, (will open 20 pending order)

- once executed, buy limit at -10 pips away from current market price


the following is the lot size needed to open, followed with sequence.

- first pending order lot size = 0.01
- 2.) second pending order lot size = 0.02
- 3.) third pending order lot size = 0.04
- 4.) 0.08
- 5.) 0.16
- 6.) 0.32
- 7.) 0.64
- 8.) 1.28
- 9.) 2.56
- 10.) 5.12
- 11.) 10.24
- 12.) 20.48
- 13.) 40.96


at this level, i know some broker have max lot user can execute, so assume its 50.0  i want this script open more pending order to adjust back with the required lot size.

for eg: at pending order number 14, it is 81.92, but max lot able to open is only 50.0, so the script will open 2 pending order which is lot size of 50 and another lot size of 31.92 (50 + 31.92 = 81.92) is it possible to add comment of those 2 order, for eg: lot number 50 & 31.92 will have comment like "lot no.14 = 81.92"

- 14.) 81.92

same for the rest, need divide by lot 50 first, and add it to become total. (also include comment for this group of order)

- 15.) 163.84
- 16.) 327.68
- 17.) 655.36
- 18.) 1310.72
- 19.) 2621.44
- 20.) 5242.88

- take profit = 10 pips (set on ALL pending order)


explaination of SELL_LIMIT script,

- once executed, sell limit at +10pips away from current market price
- lot size = refer above example, its exactly the same as above lot size.
- take profit = 10 pips (set on ALL pending order)

 
attas_al:

can someone pls help me write pending order script? i want 2 types of script, BUY_LIMIT script and SELL_LIMIT script.


explaination of BUY_LIMIT script, (will open 20 pending order)

- once executed, buy limit at -10 pips away from current market price


the following is the lot size needed to open, followed with sequence.

- first pending order lot size = 0.01
- 2.) second pending order lot size = 0.02
- 3.) third pending order lot size = 0.04
- 4.) 0.08
- 5.) 0.16
- 6.) 0.32
- 7.) 0.64
- 8.) 1.28
- 9.) 2.56
- 10.) 5.12
- 11.) 10.24
- 12.) 20.48
- 13.) 40.96


at this level, i know some broker have max lot user can execute, so assume its 50.0 i want this script open more pending order to adjust back with the required lot size.

for eg: at pending order number 14, it is 81.92, but max lot able to open is only 50.0, so the script will open 2 pending order which is lot size of 50 and another lot size of 31.92 (50 + 31.92 = 81.92) is it possible to add comment of those 2 order, for eg: lot number 50 & 31.92 will have comment like "lot no.14 = 81.92"

- 14.) 81.92

same for the rest, need divide by lot 50 first, and add it to become total. (also include comment for this group of order)

- 15.) 163.84
- 16.) 327.68
- 17.) 655.36
- 18.) 1310.72
- 19.) 2621.44
- 20.) 5242.88

- take profit = 10 pips (set on ALL pending order)


explaination of SELL_LIMIT script,

- once executed, sell limit at +10pips away from current market price
- lot size = refer above example, its exactly the same as above lot size.
- take profit = 10 pips (set on ALL pending order)

ok write us support@miktrade.com

Reason: