Obtain offline status with CHART_IS_OFFLINE but can it be modified ?

 

I can collect the offline status of a chart using:


int offline=ChartGetInteger(0,CHART_IS_OFFLINE); 
Print(offline);

If a chart is offline it is stored as a 1 if the offline box in the offline chart properties is unticked it is stored as 0. However is there a way to modify the offline variable through code, changing it from 1 to 0?

This is so i can run an EA on the offline chart without me having to untick the offline box manually.

Any pointers would be appreciated.

Thank you :)

 
torexvir:

I can collect the offline status of a chart using:


If a chart is offline it is stored as a 1 if the offline box in the offline chart properties is unticked it is stored as 0. However is there a way to modify the offline variable through code, changing it from 1 to 0?

This is so i can run an EA on the offline chart without me having to untick the offline box manually.

Any pointers would be appreciated.

Thank you :)

You're looking for ChartSetInteger...