Exucute a Script without windon open?

 

Is this even possible?

Im planning something like this:

void OnStart()
  {
//---
   ChartOpen("EURUSD-Pro", 15);
  }
//+------------------------------------------------------------------+


But if there are no charts open I have open one first.

Greetings

BeLikewater

 
BeLikeWater:

Is this even possible?

Im planning something like this:

void OnStart()
  {
//---
   ChartOpen("EURUSD-Pro", 15);
  }
//+------------------------------------------------------------------+


But if there are no charts open I have open one first.

Greetings

BeLikewater

You can't.
Reason: