The indicator attached is a MTF DMI indicator. I have noticed that when I run it on a 5 min chart but set on a 15 min time frame that it will check every 5 min and set it's color according to that 5 min block and not repaint at the end of every 15 min. The caveat is that if I close my mt4 or change the time frame and then switch it back the data is then repainted based on the close of the 15 min. Whereas if I hadn't closed the chart it could have 2 reds and a blue for a 15 minute period. After refresh it would have 3 blue if that was the color of the last 15 minute block on the 5 minute chart.
Now I don't know if it is possible but I was hoping an EA could be made with a couple inputs that could manually be put in. Basically I would like to be able to run the EA on any time frame I choose and be able to set the indicator up for another time frame of my choosing along with the DMI_smoothing period.
For example: I could run the EA on a 5 minute time frame and it would trade based on whatever settings I put in for the indicator. Say like a 15 min DMI with 21 period DMI_smoothing or a 30 minute DMI with 16 period DMI_smoothing.
As for the trade execution I would like it to basically be in the market at all times. On candle close the EA should check if the DMI block is red or blue. If it is blue it should be in a buy. If on candle close the block turns red then the EA should close the buy and sell.
Would be great if there was an input to have a hard stop loss. Also one for how many lots to trade per trade. Lastly I think being able to set the time the EA would operate would be great.
Since the EA won't be back test-able, because of the issue with repainting if the chart is changed at all, it will take a lot of forward testing on a demo account to find the best settings but I'm willing to put in the time and share my findings with the community. Anyway...let me know if someone can do this.
Now I don't know if it is possible but I was hoping an EA could be made with a couple inputs that could manually be put in. Basically I would like to be able to run the EA on any time frame I choose and be able to set the indicator up for another time frame of my choosing along with the DMI_smoothing period.
For example: I could run the EA on a 5 minute time frame and it would trade based on whatever settings I put in for the indicator. Say like a 15 min DMI with 21 period DMI_smoothing or a 30 minute DMI with 16 period DMI_smoothing.
As for the trade execution I would like it to basically be in the market at all times. On candle close the EA should check if the DMI block is red or blue. If it is blue it should be in a buy. If on candle close the block turns red then the EA should close the buy and sell.
Would be great if there was an input to have a hard stop loss. Also one for how many lots to trade per trade. Lastly I think being able to set the time the EA would operate would be great.
Since the EA won't be back test-able, because of the issue with repainting if the chart is changed at all, it will take a lot of forward testing on a demo account to find the best settings but I'm willing to put in the time and share my findings with the community. Anyway...let me know if someone can do this.
Attached File(s)
#MTF_dmi.ex4
3 KB
|
341 downloads