Is there another way or better way to do this? RichardF
--- In [email protected], "rlfoxworth2006" <[EMAIL PROTECTED]> wrote: > > I've figured this much out where the line plots for the first day, but > can't figure out how to make the plot continue to till the value > closes the line. > > RichardF > > //Using the deDateTime.dll from the 3rd Party area. > //http://www.amibroker.org/3rdparty/deDateTime.zip > > Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle | > ParamStyle("Style") | GetPriceStyle() ); > > Daysback=1; > > Day1highband = > ValueWhen(deFlagLastBarOfDay(150000),deTimeRangeHHV(H,94901, > 94902),DaysBack); > Day1lowband = > ValueWhen(deFlagLastBarOfDay(150000),deTimeRangeLLV(L,94901, > 94902),DaysBack); > > Day1tenH = > ValueWhen(deFlagLastBarOfDay(150000),deTimeRangeHHV(H,100001, > 150059),Daysback); > Day1tenL = > ValueWhen(deFlagLastBarOfDay(150000),deTimeRangeLLV(L,100001, > 150059),Daysback); > > > Plot(IIf(Day1highband <= Day1tenH AND Day1highband >= Day1tenL, Null, > Day1highband ), "", colorViolet,styleLine|styleNoRescale); > Plot(IIf(Day1lowband <= Day1tenH AND Day1lowband >= Day1tenL, Null, > Day1lowband ), "", colorViolet,styleLine|styleNoRescale); > > > > > > --- In [email protected], "rlfoxworth2006" > <rlfoxworth2006@> wrote: > > > > I want to get Yesterdays High at 950 and compare values starting at > > 1000 to see if any bars touches or crosses the 950 value. > > > > Then plot a line each day until.... a bar touches or crosses that line. > > > > When the bar touches the 950 high then don't plot the line next day. > > Lines may sometimes have to plot more than one to several days. > > > > Sometimes a day will have more than one of these lines from previous > > days plotting. > > > > These are CST times. > > > > Thanks ....Hope this isn't to tough for anyone to figure...... > > > > RichardF > > > > Example: > > Step 1: > > 950-High|--------|1000-----start-comparing-values----------------|1500 > > > > Step 2: > > 830--Compare-again-until-bar-touches-or-crosses------------1500 > > > > Step 3: > > Again repeat checking until line closes. > > > Please note that this group is for discussion between users only. To get support from AmiBroker please send an e-mail directly to SUPPORT {at} amibroker.com For other support material please check also: http://www.amibroker.com/support.html Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/amibroker/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/amibroker/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
