this version works without the plugin:
SetBarsRequired(10000,10000);
starttime = 153000; endtime = 160000;
tn = TimeNum();
timecond = tn >= starttime
AND tn <= endtime;
startday = tn == starttime;
//firstBarOfDay = deFlagFirstBarOfDay( starttime
); //lastBarOfDay =
deFlagLastBarOfDay( endtime); firstBarOfDay = TimeNum() >= starttime
;firstBarOfDay = firstBarOfDay - Ref(firstBarOfDay,-1); lastBarOfDay = TimeNum() >= endtime;lastBarOfDay =
lastBarOfDay - Ref(lastBarOfDay,-1);
myHigh = ValueWhen(timecond, HighestSince(firstBarOfDay,High)); myLow = ValueWhen(timecond, LowestSince(firstBarOfDay,Low));
DH = TimeFrameCompress(myHigh, inDaily, compressLast); DL = TimeFrameCompress(myLow, inDaily, compressLast);
DH = TimeFrameExpand(Ref(DH,-0),inDaily,expandFirst); DL = TimeFrameExpand(Ref(DL,-0),inDaily,expandFirst); DH = IIf(timecond,DH,Null); DL = IIf(timecond,DL,Null);
SetChartOptions(0, chartShowDates); Plot(C,"Last=",colorWhite,64); Plot(DH,"DH",colorBrightGreen,styleDashed | styleThick); Plot(DL,"DL",colorRed,styleDashed | styleThick);
Plot( timecond, "", colorDarkGrey, styleArea|styleOwnScale,0,1);
----- Original Message -----
Sent: Thursday, May 28, 2009 3:14
PM
Subject: [amibroker] Intraday - Open 10
Minute Price Marker
Hi
Can anyone provide me with a formular that would
provide horizontal dotted lines as a marker for the opening 10
minute price range on an intraday chart.
Many thanks
Ken
|
Need a Holiday? Win a $10,000 Holiday of your choice. Enter now..
__._,_.___
**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.
TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com
TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
__,_._,___
|