PureBytes Links
Trading Reference Links
|
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 --------------------~-->
What would our lives be like without music, dance, and theater?
Donate or volunteer in the arts today at Network for Good!
http://us.click.yahoo.com/Tcy2bD/SOnJAA/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/
|