Help required!
-
Dear friends,
I need to develop an EA based on Bollinger Bands and SMA. I have started working on fxdreema very recently and finding it difficult to complete the task. I know that the EA is very simple, with not so many conditions, but I am unable to develop it. Can someone help me in this?
Logic to be used in the EA for BUY ORDERS is as follows:- No trade (BUY or SELL) is open currently
- If:
a. Price closes below the lower Bollinger band 2 candles ago; and
b. Price closes above the lower Bollinger band 1 candle ago - Then BUY (X fixed lots) when Ask price touches Close price 1 candle ago.
- Close trade when:
a. Price hits 9SMA of the ongoing candle (dynamically change TP); or
b. Price increases by X pips; or
c. Price hits SL of X pips. - BUY order expires if no trade and current candle ends
Logic to be used in the EA for SELL ORDERS is as follows:
- No trade (BUY or SELL) is open currently
- If:
a. Price closes above the upper Bollinger band 2 candles ago; and
b. Price closes above the upper Bollinger band 1 candle ago - Then SELL (X fixed lots) when Bid price touches Close price 1 candle ago.
- Close trade when:
a. Price hits 9SMA of the ongoing candle (dynamically change TP); or
b. Price decreases by X pips; or
c. Price hits SL of X pips. - SELL order expires if no trade and current candle ends
-
@forexfox Place a shared link on here and the position your in can be assessed.
-
-
@forexfox To place a shared link, open projects, open shared link in new page, copy and paste here.
I have looked at your project and I see a few problems, change the no trade to no trade/order, remove the link for if trade, things don't work if blue block is above blue block, you need to add a distance to place pending, as is will try to place at current price level, if this is what you want replace pending with buy now.See how you get on with this, any other problems just ask how to resolve.
-
Thank you
-
@forexfox This is the way to share a project:
