PureBytes Links
Trading Reference Links
|
Below is an example of stepped-output MS code - handy for quantizing
indicator output values, such as support & resistance when using price
(Close).
===============
Price - stepped
===============
---8<------------------
{ ©Copyright 2005 Jose Silva
For personal use only
http://www.metastocktools.com }
{ User input }
step:=Input("Step size % [0~100]",0,100,0.5);
{ Data array or indicator }
x:=C;
{ Stepped data array }
step:=1/Max(step,.000001);
stepX:=Int(x*step+.5)/step;
{ Plot in own window }
stepX
---8<------------------
jose '-)
http://www.metastocktools.com
--- In equismetastock@xxxxxxxxxxxxxxx, "tan ming"
<reminiscenostalgia@xxxx> wrote:
>
> Does anyone knows how to code an indicator in step looking form
> instead of joining two points together? Any code which is versatile
> to adapt to other indicators into step form will be nice. Tks.
>
> Regards.
> Dan
------------------------ Yahoo! Groups Sponsor --------------------~-->
Try Online Currency Trading with GFT. Free 50K Demo. Trade
24 Hours. Commission-Free.
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/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/
|