Forum

How To Get Indicator Value From a Different Timeframe in Mql5

Hello , in MQL5 , i want to get the value of an indicator for a certain Shift from a different timeframe than the current chart , this is my code when i test it i get error 4806 and the buffer is not copied , how do i do that ? Thanks . #property indicator_chart_window #property indicator_buffers 1

Can't Determine Value in a "For" loop

Hello , i have a problem with a for loop and i can't figure out what's wrong , the loop skips some values if you put for example 0.1 or 0.12345 in place of 0.123 the comment appear but like this the comment never appeared . void price() { for ( int i= 0 ; i<= 2 / _Point ;i++) { if (i*