Download MetaTrader 5
To add comments, please log in or register
Have you developed an application? Publish it in Code Base!
Pierre Rougier
386
Pierre Rougier 2014.02.13 21:42 
Hello,

MetaTrader 4 Build 600
If I execute this script on a weekly graph :

//+------------------------------------------------------------------+
//|                                                       Test01.mq4 |
//|                        Copyright 2014, MetaQuotes Software Corp. |
//|                                              https://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2014, MetaQuotes Software Corp."
#property link      "https://www.mql5.com"
#property version   "1.00"
#property strict
//+------------------------------------------------------------------+
//| Script program start function                                    |
//+------------------------------------------------------------------+
void OnStart()
  {
//---
   printf(ChartPeriod(ChartID()));

  }
//+------------------------------------------------------------------+

I get Weekly, without debug .
And I get H1, with debug .

Where is my mistake?

Regards,

Pierre

Alain Verleyen
Moderator
28536
Alain Verleyen 2014.02.13 23:06  
tintin92:
Hello,

MetaTrader 4 Build 600
If I execute this script on a weekly graph :

I get Weekly, without debug .
And I get H1, with debug .

Where is my mistake?

Regards,

Pierre

You have to set the timeframe for debug on Weekly. Menu Tools, Options, Debug tab.
Pierre Rougier
386
Pierre Rougier 2014.02.14 05:46  
Thanks angevoyageur.
/
To add comments, please log in or register