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

Re: [EquisMetaStock Group] Re: horizontal line



PureBytes Links

Trading Reference Links

Hi Rob
 
I think I misunderstood your "5 point horizontal line" meaning. My mistake.
 
Regards
 
Roy
----- Original Message -----
From: robcpettit
Sent: Monday, June 06, 2005 9:28 PM
Subject: [EquisMetaStock Group] Re: horizontal line

hi roy, thanks for your reply. As Im new to this Im not understanding
the formula correctly. Basically Im trying to create a stop loss using
a horizontal bar under a rise close which will be offset a certain
percentage. I want to draw several points on a chart past and present
because I want to back test my sell signals. Ive added c>ref(c,-1) to
variable a and left the rest as is for now. Im assuming it draws one
horizontal line for present close rising, what I dont understand is
what '5 bars before the right side of the chart' is telling me. Is it
start line from point of rise for 5 bars. Thankyou for your help
Regards Robert

--- In equismetastock@xxxxxxxxxxxxxxx, "Roy Larsen" <rlarsen@xxxx> wrote:
> Hi Robert
>
> > is it possible to draw a 5 point horizontal line under a close when
> > risng and not bother when close falling using an indicator formula.
> > Ive used expert advisor to mark these but a line would be better. If
> > its possible it will be for more than close rising, this is a starting
> > point.
> > Regards Robert
>
> Yes it's possible. Set your condition for triggering the line into
variable "A",
> and set the expression for the value of the line as variable "D".
Variable "B"
> is false until 5 bars before the right side of the chart. Variables
"A" and "B"
> must both be true before the ValueWhen() function can plot a result.
>
> A:=TRUE; {condition to enable line}
> B:=Cum(1)>LastValue(Cum(1))-5;
> D:=LastValue(C); {value of 5-bar line}
> ValueWhen(1,A AND B,D);
>
>
>
> Kind regards
>
> Roy
> www.metastocktips.co.nz




Yahoo! Groups Links