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

Re: [EquisMetaStock Group] Alert Above A Line



PureBytes Links

Trading Reference Links

Metastockuser


> I'd like to use two points to define an ascending or descending line
> then be alerted if price closes above that line.
>
> I know that I can drop the formula into the Expert system and when I
> open the chart, the alert will generate.
>
> But how would I define the line so that I can set it up to make a
> Close Greater then the line create an alerts.  A flat line is easy,
> just enter the price.  But an ascending or decending line would have
> to be defined somehow.

There are a number of examples of drawing a line between two points in the archives but I suspect
this is not what you want.  You say you want to draw a line between two points but I'm assuming that
the first point is known (time and value) and the second point is a projection to some time and
value in the future.

The essential elements required for such a line are, one, a starting time and value, and two, an
increment or decrement per bar. If you know these things then the code and maths is basic stuff.

The line might be coded something like this.

ValueWhen(1,"unique event","starting value") + ("calculated increment")*BarsSince("unique event");


Roy




------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/BefplB/TM
---------------------------------------------------------------------~->

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/equismetastock/

<*> To unsubscribe from this group, send an email to:
     equismetastock-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/