bugs & dysfunctions - page 5

 
aiqokoye:
Hi I can't see to be able to download any ea. I used to click and select to load metatrader 5 from my PC and the expert show on the navigation window.
What is your problem then ?
 

Does anyone have the same problem with "ObjectGetValueByTime"?

Result value is always 0.

Also tested with sample code: "TradeLineAlert"

--------------

My simple Code:

string objName = "MYTRENDLINE";  // This trendline really exists!

if (ObjectFind(objName) == 0) // 0 = found object in main chart window
{
   double d = ObjectGetValueByTime(0, objName, TimeCurrent());

   Print("Value = " + DoubleToStr(d, 5));
}

And if I put a "ObjectGetDouble" request in front of the "ObjectGetValueByTime":


string objName = "MYTRENDLINE";  // This trendline really exists!

if (ObjectFind(objName) == 0) // 0 = found object in main chart window
{
   double p = ObjectGetDouble(0, objName, OBJPROP_PRICE, 0);
   double d = ObjectGetValueByTime(0, objName, TimeCurrent());

   Print("Value = " + DoubleToStr(d, 5));
}
Now d is always the same as p ... ?!       Ooops. ;-)

Some Infos:

MetaEditor 5.00 Build 914

Metatrader 4.00 Build 625


Thank you for your comments / help! :-)

I hope I did not make a mistake...

Kind regards,

Martin

 
huhuju:

Does anyone have the same problem with "ObjectGetValueByTime"

...

Martin

Forum on trading, automated trading systems and testing trading strategies

Hello,

Please edit your post and use the SRC button when you post code. Thank you.



 
angevoyageur:

But it wasn't necessary that you delete my code... ?!  :-/

Everything ok now?

 
huhuju:

But it wasn't necessary that you delete my code... ?!  :-/

Everything ok now?

You are right. It was an error of manipulation, usually I edit it myself, but here I lost your code. Sorry.
 
angevoyageur:
You are right. It was an error of manipulation, usually I edit it myself, but here I lost your code. Sorry.

Oh - did you close this forum? Is there another place for bug reports?

Thank you.

 
huhuju:

Oh - did you close this forum? Is there another place for bug reports?

Thank you.

Maybe you mean mql4.com forum.

You can also report bugs to the ServiceDesk.

MQL4: automated trading forum
  • www.mql5.com
MQL4: automated trading forum
 
angevoyageur:

Maybe you mean mql4.com forum.

You can also report bugs to the ServiceDesk.

Thank you very much! :-)

Have a nice weekend!

Reason: