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

[EquisMetaStock Group] Re: horizontal line



PureBytes Links

Trading Reference Links

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 Sponsor --------------------~--> 
Has someone you know been affected by illness or disease?
Network for Good is THE place to support health awareness efforts!
http://us.click.yahoo.com/Rcy2bD/UOnJAA/cosFAA/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/