Hello my friend,
so I need to create this EA that will work on MetaTrader4 with the broker https://solidarymarkets.com/ on Binary Options.
The EA is very simple.
I need the EA to draw on chart daily MAX and MIN of the previous "x" days. Plus, i need to use Bollinger Bands.
The rules are very easy:
- if the candle will touch one of these levels for the first time of the day (daily Max or Min of the previous days) while it is OUTSIDE the bollinger bands, at the touch I will take my trade.
I show you one easy picture:
As you can see, the first red dotted line is the MAX of the previuos day, but the candle touch it we are inside the bollinger bands.
The second dotted line is the MAX of 2 days ago, and when the candle touch it we are outside the Bollinger bands so the EA should tkae a PUT trade exactly when the candle touch the line.
Opposite thing for a CALL trade of course.
The touch of the level must be the first touch of the day. So the second touch of the same level of the same day will NOT make the condition to take the trade.
About the expiration of the trade, I would like to have the option to choose from. The broker allow to trade expirations of 5-10-15 and 30 minutes. I will use this system on 15M timeframe.
What i need to have is such a filter:
- If the "touch of the level" happens in the first 5M of the candle (so from minute 0 to minute 5): " XX expiration Option" (so choosen by me in external parameters).
- If the "touch of the level" happens in the seconds 5M of the candle (so from minute 5 to minute 10): " XX expiration Option"
- If the "touch of the level" happens in the last 5M of the candle (so from minute 10 to minute 15): " XX expiration Option"
Then I need 2 time filters when the EA should working, so i can decide in the morning if there are new to let the EA work only from "xx.xx" to "xx:xx" and from "xx:xx" to "xx:xx".
As the last thing, I need the EA to stop working if reach a choosen % of loss or a choosen % of profit. For example i set the % of loss of 3% and 5% of profit, this means that if the EA will lose today 3% will STOP working or the rest of the day, and if it win and reach a profit of 5% the EA will stop working as well for the rest of the day.
So the external parameters should be these ones:
- Trade Size = 0.1
- Number of Days to calculate for Max/Min Levels = 3
- Bollinger Bands Parameters =
- EA stop if LOSS reach % = 3
- EA stop if GAIN reach % = 5
- EA works from (1) = xx:xx to xx:xx
- EA works from (2) = xx:xx to xx:xx
- Touch of the level from minute 0 to minute 5 = xx expiration
- Touch of the level from minute 5 to minute 10 = xx expiration
- Touch of the level from minute 10 to minute 15 = xx expiration