PureBytes Links
Trading Reference Links
|
Fred,
Everyday I want to get Yesterdays High and Lows at 950 and compare
values starting at yesterdays 1000 to see if any bars touches or
crosses the 950 High and Low value. (Otherwise wait ten minutes after
950 snd keep checking until the 950 values are reached again.)
Plot the open lines each day until they close out (close out means the
line value has been touched).
When the bar touches the 950 high or the 950 low then discontinue
plotting the lines.
See Example I placed at link below:
http://www.photogallery.com/stuff/charts/plottinglines.gif
--- In amibroker@xxxxxxxxxxxxxxx, "Fred" <ftonetti@xxx> wrote:
>
> Yep ... and if I had understood what you were asking I would have
> responded ... maybe I'm just dense, but I don't have a clue what
> you're asking ...
>
> --- In amibroker@xxxxxxxxxxxxxxx, "rlfoxworth2006"
> <rlfoxworth2006@> wrote:
> >
> > Is this the right forum for this type of help here?
> >
> >
> > --- In amibroker@xxxxxxxxxxxxxxx, "rlfoxworth2006"
> > <rlfoxworth2006@> wrote:
> > >
> > > Is there another way or better way to do this?
> > >
> > > RichardF
> > >
> > >
> > > --- In amibroker@xxxxxxxxxxxxxxx, "rlfoxworth2006"
> > > <rlfoxworth2006@> 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 amibroker@xxxxxxxxxxxxxxx, "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.
> > > > >
> > > >
> > >
> >
>
Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.409 / Virus Database: 268.13.27/517 - Release Date: 11/3/2006
|