Job finished
Specification
Hello coders. I need to create one EA which is incorporated with one indicator. This indicator will indicates BUY, SELL or WAIT. So, when the trading time comes, EA should open order based on the indicator.
Methodology: This EA should acts as a trade opener which will open multiple currency pairs indicated by the indicator. Thus, it’s a “set and forget” typed EA. It will not manage those trades after being placed.
EA Parameter:-
+____lot size management____+
UseMoneyManagement: True
RiskPercent: 10
MaxLot: 10
FixedLot size: 0.05
+____Trading Setting____+
TradingHourly: 4
UseTimeFilter: True
TradingHourStart: 15:00
TradingHourEnd: 21:00
TP: 200
SL: 200
Unique MN per basket: True
FixedMNperbasket: 1122
ECNMode: False
_________________________________________________________________________________
Explanation of parameter:
+____lot size management____+
v UseMoneyManagement: [If set to true, FixedLotSize will be disable, riskPercent will be used.]
v RiskPercent: [RiskPercent calculation should based on balance.] Eg. 10%
Formula: (10/100 x balance) / (SL x quantity of currency pairs) = Lot Size Per Trade
Eg: (10/100x500)/ (200 x 12) = 0.02 lot for each trade
Ps: Kindly note that SL point is in 5 digits calculation. 200(5digits) =20 (4digits). Also, even though sometimes “WAIT” signal will be indicated for few Fx pairs, but still quantity of currency pairs will be counted into the equation. So, quantity of currency pairs is based on how many Fx pairs been listed in the indicator.
v MaxLot: [This is the maximum lot configuration. Because we are using riskpercent so it might trade over the specific lotsize if we didn’t mentioned in MaxLot.]
v FixedLot size: [Fixed Lot Size will be defined here if usedMoneyManagement set to false.]
+____Trading Setting____+
v TradingHourly: [EA will trade based on time interval. If set 2, then EA will place the trade every 2 hours.]
v UseTimeFilter: [If set true, TradingHourStart & TradingHourEnd will be configured.]
v TradingHourStart: [Trading time where EA will be activated. Follow broker time.]
v TradingHourEnd: [Trading time where EA will be deactivated. Follow broker time.]
v TP: [Take profit for each trade.]
v SL: [Stop loss for each trade.]
v ReverseTrade: [Trade will be reversed which oppose the signals indicated. Buy -> Sell]
v Unique MN per basket: [If set true, unique magic number will be assigned for each basket of trade but NOT each trade. The unique magic number should be assigned in ascending order. Eg, 1->2->3->4…] The next MN should display on the chart so that I can know what magic number going to be.
v Fixed MN per basket: 11
v ECNMode: [ECNMode set true for ECN account.]
**Indicator will be provided once candidate being selected. It's NOT a source code but I have a decompiled version which consist of 200+ lines of codes.
Sorry for double post because did some correction. Please help me to code it. Thanks