Im a long time trader of renko blocks and have been working on a strategy that involves 2 offline charts, a 5 pip renko block (M2 offline) and a 10 pip renko block (M3 offline).
I want to try and automate a strategy using values from both charts but having problems, my question is - if i place the EA on the 5 pip chart i can call in the values easily for that chart using '0' as the timeframe, but how do i get the values from the 10 pip block offline chart?
Ive tried changing the timeframe to, PERIOD_M3 (and define it at the top), but this does not work.
---------------------------------------------------------------------------------------------------------------------------
void pip10()
{
pip10 = none;
if (iClose("EURUSD",PERIOD_M3,1) > iOpen("EURUSD",PERIOD_M3,1)) pip10 = up;
if (iClose("EURUSD",PERIOD_M3,1) < iOpen("EURUSD",PERIOD_M3,1)) pip10 = down;
}//void pip10()
----------------------------------------------------------------------------------------------------------------------------
Ive searched Google, trawled the mql4 site but cannot find any similiar requests or code snippets to play with.
Sorry if this is blatantly obvious, i just cannot see it..
Thanks for any advice/help on this..
Mark