仕事が完了した
指定
A very important note before reading forward: I am a developer myself. I understand bugs can exist. However please understand that as I will need to test the script in a demo account for a week to make sure it opens the correct trades and all is well and according to the requirements, any bugs or inconsistencies will cause weekly delays. I will need to come back to you with reports and you will need to be fixing stuff. To save us both time and effort, please double check everything before submitting your work. I am not sure if I can quickly test the delivered EA in MT5's strategy tester, I will try this anyway but if this is possible let me know so we can do things way faster.
I recommend you check the pine script on tradingview to see what it does and play with it a bit.
Briefly, the indicators I used are 1. Hull Suite by Insilico (changed length to 100 and length multiplier to 3, 2. Volume Oscillator (changed nothing) and 3. Vortex Indicator (changed length to 20). I am taking trades when 1. Hull Suite line is green and the price closes above the line. Sells when the line is red and price closes below the line. 2. The Volume Oscillator is above 0% (for both buys or sells) 3. There is a cross of the bullish line over the bearish line on the Vortex Indicator (for buys) and the reverse for sells. Important: only when all 3 conditions are met on a candle close the trade takes place.
The script is 167 lines of code. The pine script is attached to this project. Not all functionality is required:
a. Anything related to plotting on the MT5 interface/graph is not required.
b. There is a "consider Hull" option related to the looking back to nearest bars for setting SL. It is not required.
c. "Bars since vortex cross" functionality is not required.
What must the script do?
1. When criteria of the three indicators are meet, it opens a trade.
2. Sets the trade at specific SL and TP (Custom RR) provided by the user (set in the EA inputs window).
3. Opening trades only at specific hours set by the user in the EA inputs window.
4. Stop loss is set at nearest low or high by counting a specific amount of bars back as set by the user in the EA inputs window.
5. There is an option in the EA inputs window to add additional pips to SL, configured by the user in the EA inputs window.
6. Use whole candle option will be disabled by default but be an option in the EA inputs window for the user to enable.
7. Skip trade if SL is greater/less than functionality as presented in the coding and required in the EA inputs window. Will be disabled by default but user will be able to enable.
8. Close trades at session close (which is the last hour of the day trading is allowed) should be available in EA inputs window to be set to enabled or disabled.
A feature to be included:
The user to be able to set the % of risk of the trade in the EA inputs window. E.g a. If the account has a capital of $5000 and the user sets the risk to 1%, the opened trade should risk a total of $50 is stop loss is hit. b. If the account is $40,000 and the user sets the risk to 0.25% the opened trade should risk a total of $100.
Feel free to ask any questions.