Download MetaTrader 5

Bug: ChartPriceOnDropped returns 0

To add comments, please log in or register
Nicola Grippaldi
71
Nicola Grippaldi  
After some day I resumed using MT5 and ChartPriceOnDropped() always returning 0 and ChartTimeOnDropped()) returning 1970.01.01. 00.00.00

I have reinstalled the program, but it's the same

Nicola

Alain Verleyen
Moderator
32406
Alain Verleyen  
NicolaGrippaldi:
After some day I resumed using MT5 and ChartPriceOnDropped() always returning 0 and ChartTimeOnDropped()) returning 1970.01.01. 00.00.00

I have reinstalled the program, but it's the same

Nicola

It's working fine for me, can you post your code ?
Nicola Grippaldi
71
Nicola Grippaldi  

hi, this is my code

//+------------------------------------------------------------------+
//|                                                testIBarShift.mq5 |
//|                        Copyright 2014, MetaQuotes Software Corp. |
//|                                              http://www.mql5.com |
//+------------------------------------------------------------------+
#property copyright "Copyright 2014, MetaQuotes Software Corp."
#property link      "http://www.mql5.com"
#property version   "1.00"
//+------------------------------------------------------------------+
//| Script program start function                                    |
//+------------------------------------------------------------------+
void OnStart()
  {
//---
   double droppedPrice=ChartPriceOnDropped();
   datetime droppedTime=ChartTimeOnDropped();
   Print(droppedPrice+" "+droppedTime);
   
  }
//+------------------------------------------------------------------+

mt5 version 5.0 build 1010

thanks

Alain Verleyen
Moderator
32406
Alain Verleyen  
NicolaGrippaldi:

hi, this is my code

mt5 version 5.0 build 1010

thanks

You are right, but this bug is already corrected. Wait next build.
To add comments, please log in or register