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? New comment [Deleted] 2014.02.13 21:42 Hello, MetaTrader 4 Build 600If 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 Does EA debugging is working for you ? I got -1 when I am trying to open a order under debugging ? How to debug my script ? Coding help Alain Verleyen 2014.02.13 23:06 #1 tintin92: Hello, MetaTrader 4 Build 600If 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. [Deleted] 2014.02.14 05:46 #2 Thanks angevoyageur. New comment
Where is my mistake?
Regards,
Pierre