Can I run my script (EA) in weekend?

 

Hi.


I want for example to calculate the average value for a pair over last week , or maybe something more complicated and I don't want to do it manually.

Can I run somehow my script an he can print me in console the value I want ?

Do I really need to be during the market hours?


Thanks,

 
Iulian Astalus:

Hi.


I want for example to calculate the average value for a pair over last week , or maybe something more complicated and I don't want to do it manually.

Can I run somehow my script an he can print me in console the value I want ?

Do I really need to be during the market hours?


Thanks,

Yes, it can print the results in the Expert tab

Scripts and OnInit() always run when loaded on a chart even if there are no incoming ticks