chart refresh
-
is there any way to make the ea refresh chart first on every new candle and then proceed to the rest of the connected blocks ?
-
@zackry I'd try with the "Delete Objects" block. If you have a specific template you may use the "Change Template" block. But I think that would re-initialize your EA which should be re-loaded by the template.
-
@zackry In mt4 docs there is something Refresh rates. Maybe some custom mql block with a function would do the job.
-
@trader-philipps thanks for the response but the question is if i use this apply template option then will this cause any problem in the remaining blocks execution ?
i am using multiple indicators to trigger the buy and sell , if the template is reloaded then i will need to have the same ea attached in the template that i am trying to apply on every new bar , in other words the ea will be detached and then attached again on the chart , do you think this will cause any problem ? -
@cpxiom thanks for the response, but when i look at the code it confuses the hell out of me
-
@zackry It will reset your EA comleately (remove from chart and re-load it if set in template).
-
@zackry Try this maybe?

-
@trader-philipps the reason i am trying to refresh the chart is this :
the indicators i am using lag sometimes , ( by lag i mean the lag in drawing , and when i refresh the chart or when i reload the template then it updates and draw )
so when i use these indicators in the ea the ea misses some of the entries because of the lag and i am positive that when the ea refreshes the chart before looking at the indicators then the issue can be resolved -
@zackry And the WindowRedraw doesn't help with that? If the indicator uses buffers, the calculation should still be alright. Are you refering chart objects in your EA?
-
@trader-philipps nope not the chart objects, the indicator that's causing the problem is using the buffers, so I referring the buffer values in the ea.
Most of the time the problem happens in live market and not in the backtest So I don't know yet if the window redraw function will help or not,
I am just waiting for the market to open so I can test the window redraw function -
@zackry ok .. good luck!
-
@trader-philipps thanks, will update here if it works or not,
-
@zackry The "window redraw" is the correct one. I see refresh rates is for something else.
-
@cpxiom yep window redraw is working