İş tamamlandı
Şartname
EA Opens a trade at the close of every brick in the same direction as the brick, i.e. brick closes up, buy trade is opened. Brick closes down, sell trade is opened.
Trades should stay open until the close of a candle in the opposite direction. Example would be, first brick closes up. It is then followed by 8 consecutive bricks closing up. So a total of nine buy trades would open, one at the close of each candle. Then a down brick closes. The EA would close all the buy trades and open a sell trade. It would continue to open sell trades for each subsequent down brick, until an up brick closes and all the sell trades would be closed and a buy trade entered.
Another example looking at a chart with the following sequence:
8 up bricks
12 down bricks
1 up brick
1 down brick
5 up bricks
The EA will have opened 8 buy trades and closed on the first down brick. It will then open 12 sell trades and close on the up brick. One buy trade closed at the down brick. One sell trade closed at the up brick and then five buy trades.]
EA should have parameters for maximum number of open trades. Example would be if the maximum number is 20, the EA would not open another trade on the 21st consecutive brick in the same direction. All trades would reverse on the first brick in the opposite direction.
EA should have parameters for time of day to start trading and time of day to stop trading. It should have a parameter of whether to close all open trades at the stop time.
Also should have a parameter for the "Magic Number."
To summarize the EA's variable inputs:
Lot size
Maximum number of open trades
Time of day to start trading
Time of day to stop trading
Close open trades at stop time?
Magic Number
Do you have any questions?