Spécifications
Hi. Need a bot for mt5.
My idea - use two big candles to identify the trend. If first big candle is down and the one after it is up, then trend is positive. If first big candle is up and the one after it is down - trend is negative.
I need the bot to identify trend this way and open order according with the trend it recognised.
Order should have a stop loss, take profit and optional trailing in points.
If order didnt stop because of sl, tp or trailing - bot needs to monitor next trend identification and be able to close current order and open new one.
If order hit by sl then start to monitor last 2 candles to restart the strategy.
If order hit trailing or tp, start to monitor last 2 candles to restart the strategy.
Only scan for last 2 closed candles, dont open order if candle is not closed and next one didnt start yet.
Only one open order at a time.
Only candle body is important, no shadows (candle open and close price).
Bot has to work on any chart (crypto or forex). Only on the timeframe its attached to. Also need magic number to run same bot on many charts.
How to tell the bot which candles are big? In settings:
Points for first candle (more than x amount but less than x amount)
Points for second candle (more than x amount but less than x amount)
Stop loss in points
Take profit in points
Trailing stop (enable or disable)
Trailing start in points
Trailing step in points
Magic number
How it works.
Bot is always scanning for last 2 candles. Only candle body matters, no shadows. If last 2 candles are closed in a set range then look at second candle. If that candle is down then open sell, if second candle is up then open buy. If order hit sl, tp or trailing then start looking at last 2 closed candles again. If order didnt hit sl, tp or trailing, always keep monitoring for possible trend changes.