Forum on trading, automated trading systems and testing trading strategies
Sergey Golubev, 2019.11.14 11:16
If someone helps you on this thread so it will be fine.
If not so you may need to consider to use Freelance
service for example.
----------------
It is standard reply which I am posting on such the requests (because I am not a coder sorry) -
Coders (any coder) are coding for free:
- if it is interesting for them personally, or
- if it is interesting for many members of this forum.
and Freelance section of the forum should be used in most of the cases.
Dear my friends,
I already code an ea followed this rule:
1. Open Order Buy when Price touch Low bollinger Bands, Close once it touch Mid band( SMA20), Sl 25 pip, tp 50 pip
2. Open Order Sell when Price touch Upper bollinger Bands, Close once it touch Mid band( SMA20), Sl 25 pip, tp 50 pip.
it work well except i doest not automatically close once the price (Bid/Ask) touch MiD Bands.
I already highligh it
below is its code. kindly help me :((
It does not close, because despite having a CloseAll() function, it wasn't called.
So somewhere in your code, you need to make calls to iBands() with MODE_MAIN, check it's value against Bid/Ask (depending on what open orders you have), and call CloseAll() when the condition is right.
It does not close, because despite having a CloseAll() function, it wasn't called.
So somewhere in your code, you need to make calls to iBands() with MODE_MAIN, check it's value against Bid/Ask (depending on what open orders you have), and call CloseAll() when the condition is right.
Dear MrSeng,
Thanks for your advice, but I was really stucked. May you help me to fix it :(?
Dear MrSeng,
Thanks for your advice, but I was really stucked. May you help me to fix it :(?
It's not about fixing - it's not a bug, it's about adding codes to do what you want.
You have already done the codes to check the conditions for opening orders, so do it likewise for closing orders.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Dear my friends,
I already code an ea followed this rule:
1. Open Order Buy when Price touch Low bollinger Bands, Close once it touch Mid band( SMA20), Sl 25 pip, tp 50 pip
2. Open Order Sell when Price touch Upper bollinger Bands, Close once it touch Mid band( SMA20), Sl 25 pip, tp 50 pip.
it work well except i doest not automatically close once the price (Bid/Ask) touch MiD Bands.
I already highligh it
below is its code. kindly help me :((