指定
Hi,
I would like to commission an EA as described by the draft attached.
This is only a draft and upon discussion with the developer, some adjustments might be needed.
Also, I would like to have the source code for the EA.
Thanks.
[EDIT]
Sorry, no docx are allowed so I'm adding the description here
EA specs - DRAFT
General
· EA should work on Renko.
· EA should use bricks for calculations, f.e., if SL is 2 bricks, it should close the trade only after the 2nd brick has closed.
· EA should be able to deduce the brick size on the chart it is on.
· EA should be able to launch two initial trades, each with its own lotsize settings. One trade should have its own TP.
· EA should have two operating modes, manual and automated.
· EA should be able to stack trades in automated mode.
Sell Condition - Manual
1. EA will open two market sell orders, both should have the same SL, one should have TP defined.
Close Sell Condition - Manual
1. EA will close all opened sell trades for the pair it is on using the following logic
a. If sell trades were opened when closed brick direction was down, close all sell trades when closed brick direction changes to up.
b. If sell trades were opened when closed brick direction was up and SL is reached, close on SL.
c. If sell trades were opened when closed brick direction was up, and SL was not hit, close should be as described at section 1.a.
Buy Condition - Manual
2. EA will open two market buy orders, both should have the same SL, one should have TP defined.
Close Buy Condition - Manual
2. EA will close all opened buy trades using the following logic
a. If buy trades were opened when closed brick direction was up, close all sell trades when closed brick direction changes to down.
b. If sell trades were opened when closed brick direction was down and SL is reached, close on SL.
c. If sell trades were opened when closed brick direction was down, and SL was not hit, close should be as described at section 2.a.
Automated mode for both Sell and Buy orders
1. In automated mode, the logic should be the same but with the addition that the EA will open another trade according to the last order direction (buy or sell) after X defined closed bars in profit.
2. If automated mode is activated and there are already running trades, the EA should refer to the last trade for stacking, i.e, stacking after X bars from the last open trade. If automated mode is activated and there are no trades, EA should wait for the opening logic to kick in or open a trade in the direction of the last closed bar, per user defined settings.
3. Closing the trades, both initial and stacked, will be according to logic.
Chart interface
1. On the chart the EA is running on there should be four buttons
a. Buy – will open two market buy trades with the settings defined by the user.
b. Sell – will open two market sell trades with the settings defined by the user.
c. Automated – will switch the EA to automated mode as described in the automated sections above. Automated mode should be enabled as long as the button is clicked, once clicked again, automated mode should be switched off. This requires either a change of shape or color for this button.
d. Close All – close all the trades on this pair that belongs to the EA.
EA settings
1. EA should use the following settings
Name |
Default Settings |
Description |
UserComment |
Renko |
The Comment the EA should use for every trade |
MagicNumber |
2121 |
The magic number the EA should use for every trade |
SL |
3 |
SL in closed bricks |
Automated |
No |
If the EA is launched in automated mode or not |
StackEvery |
2 |
Add additional trade after that many closed bricks in profit. StackEvery should use FirstTradeLotSize for lot size calculation. This only applies in automated mode |
PopulateTrade |
No |
Should the EA open a trade when activated and there are no open trades or not |
FirstTradeLotSize |
0.01 |
First trade’s lot size |
FastTradeLotSize |
0.01 |
Fast trade’s lot size |
FastTradeTPBars |
1 |
This should be calculated in pips from the brick size. TP should consider the spread and not wait for FastTadeTPBars to close (brick size * FastTradeTPBars – Spread or something like that) |
ShowAlert |
No |
Pop up the alert window with information regarding the last operation, f.e. “EAName opened trades for PAIR” |
SendMail |
Yes |
EA should send an email with a short description of the last operation |
|
|
|
|
|
|
Trade examples