工作已完成
指定
Requirements:
An EA that automates trading based on the following:
a) Open long position when the fast EMA (6) crosses above the slow EMA (12)
b) Close open position (sell) when the 30 Hull MA is on the downtrend (changes color). <---This is optional and can be disabled from the settings.
c) Close open position (sell) when the fast EMA (6) crosses below slow EMA (12) IF (b) is disabled.
d) Open short position when the fast EMA (6) crosses below the slow EMA (12). Note that this is a new position after the previous long position has been closed.
e) Close short position (buy) when the 30 Hull MA is on the uptrend (changes color). <---This is optional and can be disabled from the settings.
f) Close short position (buy) when the fast EMA (6) crosses above the slow EMA (12) IF (e) is disabled.
g) Trail stop is optional and can be disabled from the settings
h) Stop loss is optional and can be disabled from the settings
i)Take profit is optional and can be disabled from the settings.
j) Displacement is optional and can be set in the settings
k) Positions are opened/closed at the CLOSE of the PREVIOUS candle just before the crossover.
l) EMA lengths adjustable from the settings
I am attaching results from a similar strategy (without HULL) for reference. Finished results must achieve similar levels of performance for the same date and currency attached.
Also attaching a thinkorswim screenshot of the strategy...indicator showing the buy position and the hull changing color at the right for a sell off/close of open position.
Let me know if you have any questions.