Forum

period converter optimized does not work. Stuck on 'waiting for Update'

The converted time frame(in this case m4) is stuck on 'waiting for update' for any period you input for. 'Offline chart' is selected as well so this ins't the problem. //+------------------------------------------------------------------+ //|

How could I wrtie zigzag patterns based from fractal data?

If I have all the high and low fractals how could I calculate which fractals connect in accordance to the parameters of ExtDepth, ExtDeviation, and ExtBackStep of zigzag? From current bar to last bar because I only need first couple zigzag lines, not whole chart. I'm having really hard time trying

What happens in mt4 at market close/open when open time for last bar before close is the same time as open for first bar after market open?

On time frames like hour 4 the last open bar time is 16:00 right before market closes at 17:00. Then when it reopens the first bar starts at 16:00 again. On m1 timeframe chart says market closed at 17:00 and reopened at 17:00. Are these bars cut off or something on hour 4 chart? So the price between

What is wrong with bars in m1 history?

If you run the following you get back a time that is not on par with hour timeframe . int n=iBarShift( NULL , PERIOD_M1 ,iTime( NULL , PERIOD_H1 , 2 ))- 60 ; Print (iTime( NULL , PERIOD_M1 ,n)); //Returned value equals something like 23:03 Also in chart, If you count 60 bars with crosshair(click and

How does zigzag.mql4 work exactly?

I need to obtain the last few peak and low values of the zigzag buffer for time frames not pre programmed into mt4 all in a single EA. I've read the source and a few articles on the zigzag implementation but am still dumbfounded. Does any one know how it works in better terms or have an idea on how

Good way to collect OHLC data for 'exotic' timeframes inside single EA?

I'm having trouble with my current EA. I need to collect OHLC for time frames not preprogrammed in mql4. I start at first m1 bar in history and I get the time of the first opening minute bar where day of month, day of week and time of day = 0. From that time i count forward where every next bar for

I want to make this clear. You can't call an indicator with a non-standard timeframe in stategy tester and on live chart?

Regardless of what time frame I'm running an EA on I want to be able to see indicators with different time frames (2,3,4,10,20,etc). The documentation seems to think I just want to view a value while on attached to non standard time frame. I want to use the value of a different time frame's

How come I get an error 4202(OBJECT DOES NOT EXIST) only in strategy tester?

string name; datetime t= iTime ( NULL , 1 , 0 ); double o= iOpen ( NULL , 1 , 0 ); Print (t + " " ,+o); if (B== 1 ) { RefreshRates (); name= "Buy " + TimeToStr ( TimeCurrent ())+ " " + IntegerToString (value); // Print("ObjectCreated:"+name);

How to deal with mql4 taking previous bars off the chart? [solved]

Is there any way to go beyond the limit of ' Max bars on chart' option? SOLVED