How to refresh objects of a custom indicator on a chart

 

Hello Im quite new to MT4 coding. Ive written a couple of indicators but I find that despite trying different commands (ObjectDelete, ObjectsDeleteAll, ObjectsRedraw) in the init section of the code I cannot get my drawn objects to be redrawn unless I switch from one timeframe to another eg 5M to 15M then back to 5M. I find this also happens with other indicators I've downloaded from the site such as DailyPivot_Shift. Im sure Im missing something simple can anyone help?

Thanks.

 

Show your code

 
I have a similar issue at hand and it's really making me sick of the program. I have to keep switching between timeframes to update and refresh. My indicator doesn't bring signals unless I compile the code again or I switch between timeframes. 

Please if you eventually find solution to this, kindly let me know.
 
Do you really expect an answer? We can't see your broken code. There are no mind readers here and our crystal balls are cracked.
Reason: