Tâche terminée
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
Spécifications
When the Hieken Ashi Candles body closes bull and the regular candle closes as a bull candle at the same time i want to buy
When the Hieken Ashi Candles body closes bear and the regular candle closes as a bear candle at the same time i want to sell
I want a Stop Loss option and an option to close the trade at the next Heiken Ashi of the opposite direction
i want a true or false for a Take Profit
I want a true or false for a Trail Stop
I want a true or false for a Protection Stop: Example, when im 50 points in profit i want the stoploss to move up 10 points
I do not want the stoploss to move backwards
I dont want any new trades to open on Friday after (12pm Eastern Standard Time) i want to be able to change the time.
I want to select my timeframe and the bot only work on that timeframe
I want to select my initial lot size and a max lot size
-————————
When a trade closes with a loss I want the EA to calculate the next lot size to recover my loss in (x) points gain.
example: if a trade closes and I lose $50 ( commission included) I want the next trade to put me at $50 in profit when im (x) points from entry the next time I press buy/sale.
If i lose the second trade in a row and i'm -$120 USD (including commission) I want my next trade to put me at +$170USD (X) points from entry (total losses recovered when im (x) from entry, the TP AND SL should not be in the equation)
I dont want to go back to my input lot size until my losses are recovered (including commissions) or reset the bot..... if the trade is closed and only a portion of my losses are recovered I want the bot to include what is still lost in the next trade in (x) points from entry
i put including commissions in parenthesis because i could be in profit from entry but I haven’t made more than my commission price yet so im still in the negative. ....... I don’t want other trades not taken with the bot to be effected
i want the chart to show my next lot size and how much USD i will gain in (x) points from entry
I only want one trade open at a time per chart and i want those settings to work on that chart only
i would like the MQ4 CODE please