Codes

Get Last Deal History for MetaTrader 5

This script is to get the last deal history data, for example : profit, deal type, etc, and put the Comment on the chart

Forum

OBJPROP_CREATETIME different from Market Watch time

Hello everyone, I have an issue with the subject. I draw 1 object only on the chart. I tried to print the create time of the last object I made on the chart, but I get different time of 3 hours. Market Watch show time 16:05, but I get 13:05 on the print result. int totobj = ObjectsTotal (); for (

Different time between iTime() and TimeCurrent()

Hello, I have a case : Here is mycode datetime hour_now= iTime ( Symbol (), PERIOD_H1 , 0 ); if (timer!=hour_now) { Print ( "Hour now = " ,TimeToStr(hour_now), ", Current Time = " ,TimeToStr( TimeCurrent ())); timer= iTime ( Symbol (), PERIOD_H1 , 0 ); } Then at 00:00 I have a result : Hour now

How to limit ea only in one pair?

Dear friends, need your help. If EA already run in one pair, then how to avoid EA run in the other pair? So EA only run in one pair. Thank you