Dear Funyoo,

It will highly helpful for me if you code this for me


CONCEPT
Open Buy Signals :
1.CCI 60 ( Value can be changeable) crosses 0 from Lower value to Higher Value – true/false
2.CCI 14 ( Value can be changeable) crossing Moving Average 14 ( Value can be changeable) while Lower value to Higher Value – true/false
Open Sell Signal :
1.CCI 60 ( Value can be changeable) crosses 0 from Higher value to Lower Value – true/false
2.CCI 14 ( Value can be changeable) crossing Moving Average 14 ( Value can be changeable) while Higher value to Lower Value – true/false

Other Condition :


At open or current bar( Buy signal or Sell signal ) if the CCI Unplugged or Reversal takes place while on the same Bar ,the order should wait until close of the Bar.


Please Note : After close of the Bar if the CCI Unplugged or Reversal Sustain , close the order and further, Reversal side order should not Open and has to wait for another next signal.

Required option :

1) If Buy Signal Stop Loss should be at Previous Bar’s Low – true/false

2) If Sell Signal Stop Loss should be at Previous Bar’s High - true/false

3) Close Buy order at Sell Signal – true/false

4) Close Sell order at Buy Signal – true/false

4)Email,Sound,PopUp Alert – true/false

5)

If the order goes Unfavoured 15 pips distance from the First order, place another order at .01 lots and
If the order again goes Unfavoured 15 pips distance from the Second order, place another order at .01 and
If the order again goes Unfavoured 30 pips distance from the Third order, place another order
at .02 and so on upto 30 orders……

Distances and lots
extern string _tmp2_ = " --- Lots ---";
extern double Lot1 = 0.1;
extern double Lot2 = 0.1;
extern double Lot3 = 0.2;
extern double Lot4 = 0.3;
extern double Lot5 = 0.5;
extern double Lot6 = 0.8;
extern double Lot7 = 1.0;
extern double Lot8 = 1.3;
extern double Lot9 = 1.7;
extern double Lot10 = 2.0;
extern double Lot11 = 2.3;
extern double Lot12 = 2.7;
extern double Lot13 = 3.0;
extern double Lot14 = 3.0;
extern double Lot15 = 3.0;
// lots volumes for 30 orders of trade sequence
extern string _tmp3_ = " --- Orders distance ---";
extern int OrderDist2 = 15;
extern int OrderDist3 = 15;
extern int OrderDist4 = 30;
extern int OrderDist5 = 30;
extern int OrderDist6 = 30;
extern int OrderDist7 = 40;
extern int OrderDist8 = 40;