Hi Guys
 
Thanks for the assistance on. It's very much appreciated.
 
Ken

--- On Fri, 29/5/09, Edward Pottasch <[email protected]> wrote:


From: Edward Pottasch <[email protected]>
Subject: Re: [amibroker] Intraday - Open 10 Minute Price Marker
To: [email protected]
Received: Friday, 29 May, 2009, 4:03 PM









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;lastBarOfDa y = 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 ----- 
From: Ken H 
To: amibro...@yahoogrou ps.com 
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.. 
















      Need a Holiday? Win a $10,000 Holiday of your choice. Enter 
now.http://us.lrd.yahoo.com/_ylc=X3oDMTJxN2x2ZmNpBF9zAzIwMjM2MTY2MTMEdG1fZG1lY2gDVGV4dCBMaW5rBHRtX2xuawNVMTEwMzk3NwR0bV9uZXQDWWFob28hBHRtX3BvcwN0YWdsaW5lBHRtX3BwdHkDYXVueg--/SIG=14600t3ni/**http%3A//au.rd.yahoo.com/mail/tagline/creativeholidays/*http%3A//au.docs.yahoo.com/homepageset/%3Fp1=other%26p2=au%26p3=mailtagline

Reply via email to