Forum

Input current datetime as a default

input datetime InpDateTime = TimeLocal (); I would like the input panel to always show the current date as the default value when prompting for a date. However, when I write the above, I get an error. What can I do

Is there any way to reset indicator?

I don't know if the expression "reset" is appropriate. The key is that I want to execute the same process as when I open the setting panel and click the OK button. Some programs, especially MTF indicators, often appear distorted at startup. However, if I do this, I can make it normal, as also you

SnakeForce.mq4

void Drawing( int Shift) { double val,Dval; val = 5 * (Mart[Shift] - Mart[ ArrayMinimum (Mart,cPeriod,Shift)]) / 9 ; Dval = 5 * (Mart[Shift] - Mart[Shift + 1 ] + Mart[ ArrayMinimum (Mart,cPeriod,Shift + 1 )] - Mart[ ArrayMinimum (Mart,cPeriod,Shift)] ) / 9 ; if