Forum

Open time of Weekly bar

it is easy to get weekly open time with any daily open time in MT4 eg: datetime t1= iTime(NUll,Periond_D1,i); // i is the bar index of Daily chart int index=iBarshift(NUll.PERIOD_W1,t1); // here ,we can use t1 as "open time" of the weekly bar datetime t2= iTime(Null,Periond_W1,index); // here t2 is

M1 Data missing,how to supplyment?

Server : MetaQuotes-Demo

Is there a good way to identify every order?

MT5 combines all orders with the same symbol into one, and calculates the average " open price ", For my trade strategy, if an order is opened based on the singal of D1 chart, it will has its separate loss stop/take Profit, which is different with orders opened on H4 chart. orders opened on

How to find the threads or articles i replied?

Some articles are useful for newbies, maybe i will read them again in the future. I want to set it as favorites,but there is no such fucntion for setting as favorites, Also,it is difficult to find the articles that i have ever replied. All of that is easy in https://www.mql4.com/ , but it is

What is the difference among PERIOD_CURRENT,Periond(),_Period

1 PERIOD_CURRENT All predefined timeframes of charts have unique identifiers. The PERIOD_CURRENT identifier means the current period of a chart, at which a mql5-program is running. 2 ENUM_TIMEFRAMES Period (); Returns the current chart timeframe 3 int _Period The _Period variable contains

What is wrong with this simple code?

#property indicator_chart_window #property indicator_buffers 3 #property indicator_plots 3 //---- plot high+1/4 #property indicator_label1 "high+1/4" #property indicator_type1 DRAW_LINE #property indicator_color1 Red //---- plot midum #property indicator_label2 "midum" #property indicator_type2

How to get OPEN,HIGH,CLOSE,LOW price in MT5?

for example,I want to get OPEN,HIGH,CLOSE,LOW price of week to use on the current H4 chart, I also want to get the open time of week to use on the current H4 chart Is there any fuction like iHigh() in mql4 ? iTime() ? Thanks