Job finished
Specification
The detail specification of the MT5 EA (HT Breakout) is zipped as attached.
Brief requirements:
1) The EA will include the following indicators that will include the ability to determine the placement of stop loss (SL), trade order opening & closing and time filter.
The indicators are referenced from open-source script in tradingview. They are:
a. ATR Bands indicator by TheTrdFloor
b. RSI in-built indicator by tradingview
c. TSI with histogram & MA - SamX indicator by SamAccountX
d. Twin Range Filter indicator by colinmck
e. SuperTrend indicator by KivancOzbilgic
2) Each trade order opening will be using the following logic
a. SET file will provide an input field to indicate if EA trade order entry will either be using Twin Range Filter or SuperTrend indicator
b. A trade order BUY entry will be made by the EA if the following conditions are met:
i. Either Twin Range Filter or SuperTrend indicator shows a [Buy]
ii. RSI is above the RSI-MA
iii. TSI is above the signal line
c. A trade order SELL entry will be made by the EA if the following conditions are met:
i. Either Twin Range Filter or SuperTrend indicator shows a [Sell]
ii. RSI is below the RSI-MA
iii. TSI is below the signal line
d. SET file will allow the trade order opening to be set as STOP, LIMIT or MARKET
i. For STOP/LIMIT order, allow to set as either HIGH, CLOSE, OPEN or LOW of the most recently completed bar.
ii. For STOP/LIMIT order, allow to set the expiration at next bar, or X bars.
e. Lotsize of trade will either be FIXED or PERCENT.
i. FIXED entry will be from micro-lot (0.01) to standard lot
ii. PERCENT will be percentage of equity or margin. It will be necessary to use the entry price and SL price to determine the lotsize for this choice.
f. For lotsize calculation using PERCENT, please use trading account currency as well as the base currency of the traded instrument as consideration to calculate correctly. E.g. trading account currency = GBP and traded instrument is XAUUSD.
3) The SL price will be determined using ATR Bands indicator.
a. If the BUY entry conditions are met, the SL will be using the ATR Bands lower band.
b. If the SELL entry conditions are met, the SL will be using the ATR Bands upper band.
4) Opened trade order will be closed using trailing stop loss. The following 3 fields are applicable:
a. Trailing stop loss trigger points (TSL Trigger Points)
i. The Trailing Stop is activated as soon as a trade is more than the TSL Trigger Points in profit
b. Trailing stop loss points (TSL Points)
i. The Trailing Stop will be trailed in this set distance behind the current market price
c. Trailing stop loss step points (TSL Step Points)
i. The SL will only be modified if it is at least this distance above the previous SL
5) Time filter in SET file by default is OFF. If turned ON, the EA will only open pending orders during the configured time period.
a. Time filter: ON or OFF
b. Start Hour: Hour of the start of the allowed trading time
c. Start Minute: Minute of the start of the allowed trading time
d. End Hour: Hour of the end of the allowed trading time
e. End Minute: Minute of the end of the allowed trading time