工作已完成
![](https://c.mql5.com/i/avatar/avatar_na2.png)
![](https://c.mql5.com/i/avatar/avatar_na2.png)
指定
I want a trading robot based on the candlesticks and trendlines. the robot should operate on the H1 timeframe when i place the robot at my support the robot should buy if its an uptrend market and after the closing of each bullish candlestick the robot should continue to open another five buy positions with the same lot sizes as long as it is still bullish candlestick . which means after the candlesticks are closing as bullish the robot should keep on opening new five positions of buy with the same lot sizes and if the bearish candlestick occur and closes as bearish while robot bought the robot should not do anything it should only open five positions with the same lot sizes after bullish candlestick closes until it reach my resistance of the uptrend. when the market is on the downtrend the robot should open the position of sell at resistance after the closing of each bearish candlestick the robot should open another five sell positions with the same lot sizes if the bullish candlestick formed on the down trend and closes as bullish when the robot sold the robot should not do anything but after every bearish candlestick closes the robot should always open new five positions of sell with the same lot sizes until it reaches my support. The parameters should include lot size, buy and sell, take profit and stop loss, max spread filter if the spread is more than 5 pips the robot should not place the trade. the magic stop loss and magic take profit when the market reach magic take profit the robot should close and when the market reach magic stop loss the robot should close. the robot should display total number of pips gained and total number of pips lost. i will provide more details on the video.