Why users don't read docs, was: Why amibroker is giving exploration

I have this code supposed to give me the result for 5 min timeframe. But it only explores the daily timeframe and fails to reset time to 5 mins. Please help me resolve this issue...

_SECTION_BEGIN("sqeeze");

tf1 = in5Minute;
TimeFrameSet( tf1 ); // switch to 5 minute time frame

pClose = Ref(Close, -1);
p2High = Ref(High, -2) ;
p2Low = Ref(Low, -2) ;
p3High = Ref(High, -3) ;
p3Low = Ref(Low, -3) ;
Buy = p2High < p3High AND p2Low > p3Low AND pClose > p3High;
Sell = p2High < p3High AND p2Low > p3Low AND pClose < p3Low;
Filter = Buy OR Sell;

text1 = WriteIf(Buy,"Buy5m", "-" );
AddTextcolumn(text1, "Buy5m", 1.0);
text2 = WriteIf(Sell,"Sell5m", "-" );
AddTextcolumn(text2, "Sell5m", 1.0);

TimeFrameRestore();

_SECTION_END();

@pradeep_muthappa,

Only users with "Verified Badge" are allowed to post on this forum.

Search "Verified Badge" for more information on how to get verified.

Also, when posting you must use 'Code Tags'.

image

You failed to read the docs.

It has been explained dozens of times on this forum AND in the manual
Multiple Time Frame support that (quote):

PLEASE NOTE that you can only compress data from shorter interval to longer interval. So when working with 1-minute data you can compress to 2, 3, 4, 5, 6, ....N-minute data. But when working with 15 minute data you can not get 1-minute data bars. In a similar way if you have only EOD data you can not access intraday time frames.

Note that this sentence is not burried somewhere. It literally pops up in ORANGE boxes straight into your face when you open the documentation, so it is impossible to not see it.

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.