[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] TimeFrameExpand Plot question



PureBytes Links

Trading Reference Links

Trying to figure out why I can't get this to plot in a time frame other than
1Minute.
It works fine in 1Min, but when I switch Viewing Time frames the values go
empty.
e.g. 15Min or 48Min chart viewing
Trying to capture the opening interval, but view it at different a different
timeframe
Thanks for suggestions, I'm obviously not seeing it.
Mr Valley

/*Interval Plot Intraday v6 */
GraphXSpace = 5;
TimeFrameSet( in1Minute); // switch to 1 minute frame
Newday = Hour() == 09 AND Minute() == 30; // Beginning Time
SecondHour = Hour() == 09 AND Minute() == 50; // Ending Time
HHVFirstHour = ValueWhen( SecondHour, HighestSince( NewDay, High ) ); //High
Value
LLVFirstHour = ValueWhen( SecondHour, LowestSince( NewDay, Low ) ); //Low
Value
Mid = (HHVFirstHour + LLVFirstHour )/2; // Mid Value
TimeFrameRestore(); // restore time frame to original

Plot(C,"Close:",1,64);

Plot(TimeFrameExpand( HHVFirstHour, in1Minute),"HHV:",5,4); // Plot the 1Min
data
Plot(TimeFrameExpand( mid, in1Minute),"Mid",2,8); // Plot the 1Min data
Plot(TimeFrameExpand( LLvFirstHour, in1Minute),"LLV:",4,4); // Plot the 1Min
data




Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.15.29/607 - Release Date: 12/28/2006 12:31 PM