工作已完成
![](https://c.mql5.com/i/avatar/avatar_na2.png)
指定
1. The idea of the trading system is as follows: For BUY only, the Robot will open buy trade on Bullish Candle, at the open of a Bearish candle the body size of 1 pip the robot will close all buy trades.. For SELL only, the Robot will open Sell trade on Bearish Candle, at the open of a Bullish candle the body size of 1 pip the robot will close all sell trades.
When in SELL only mode, if Trades Per Signal is set to 3 then after each Bearish Candle closes and the next candle is also Bearish the Robot should open 3 trades, and the robot should continue opening up sell trades on bearish candles with the same lot size. See Below, and the same goes for when in BUY only mode. (Trades per Signal/lot size Parameter will be adjustable to any number).
In this example below there are 5 consecutive bearish candles and if (Trades per signal) was set at 2 the robot would have opened 10 trades at this point. And you see the next candle is a bull candle and lets say it is the size of 1 pip, all 10 of those bearish trades should close... Same conditions apply for Buy only mode also.
The idea of the Buy and Sell mode
The Robot will open buy trade on Bullish Candle, at the opening of a Bearish candle the body size of 1 pip the robot will close the buy trade and open the Sell Trade, the robot will stay in the sell mode until the opening of the next bullish candle the size of 1 pip, then the robot will close the sell trade and open the buy trade. Trades per signal shall also apply.
Stop Loss: Global stop loss from the initial opening trade. If stop loss is hit then close all open trades.
Global Take Profit
Display Panel Parameters below. I would like the current time to show my local time if you can fix that not the brokers time.
And we don't need the Expire Time nor the Pause button..... Total P/L below example is 248 points (Can you make that in pips) and the other Total P/L is ok to be in Dollars.
On the Parameter Input section attachment there is a SPREAD FILTER...Example of that is, if I were to place 5 in that block, then the Robot would not open a trade when the spread is larger than 5 pips........and it should be adjustable.