Thank you
F
Latest posts made by forexfox
-
Help required!posted in Questions & Answers
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
-
Dynamic TP?posted in Questions & Answers
I have an open trade that I want to close either by hitting the SL or hitting a certain number of pips or if the price hits 9 sma. How to check this 9 sma on every candle dynamically? Please help. Thanks in advance.