PureBytes Links
Trading Reference Links
|
<x-html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.3825.1300" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>This should work, but you first must make sure that the
Formulas that are called by the </FONT><FONT size=2>Fml-Fucntion,
eg</FONT></DIV>
<DIV><FONT size=2>the Fml("indicatorname"), are also VALID (thus PRESENT) custom
indicators in your Indicator Builder, the</FONT></DIV>
<DIV><FONT size=2>program's Formula DB(Data Base).</DIV></FONT>
<DIV><FONT size=2>Below is your version, corrected for syntax:</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2><STRONG>Name:
</STRONG>COMH-CYY</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2><STRONG>Formula:</STRONG></FONT></DIV>
<DIV><FONT size=2>{The formulas <STRONG>10xxx</STRONG> and
<STRONG>13yyy</STRONG> have to be present in the Indicator Builder,</FONT></DIV>
<DIV><FONT size=2>but for faster calculation speed you can try to create these
formulas into</FONT></DIV>
<DIV><FONT size=2>separate assigned variables, like <STRONG>YCalc (#014)
</STRONG>and <STRONG>CYY </STRONG>are variables.} </FONT></DIV>
<DIV><FONT size=2>YCalc (#014):=<FONT color=#ff0000>Round(</FONT></FONT></DIV>
<DIV><FONT
size=2>
<FONT
color=#0000ff>Mul(</FONT></FONT></DIV>
<DIV><FONT
size=2>
<FONT
color=#808000>Div(</FONT></FONT></DIV>
<DIV><FONT size=2><FONT
color=#808000>
</FONT><FONT
color=#008000><FONT color=#800080>Sub</FONT>(</FONT></FONT></DIV>
<DIV><FONT color=#800080
size=2>
<FONT
color=#000000>C,Fml(</FONT></FONT></DIV>
<DIV><FONT color=#800080 size=2><FONT
color=#000000>
"10xxx"</FONT></FONT></DIV>
<DIV><FONT color=#800080 size=2><FONT
color=#000000>
)</FONT></FONT></DIV>
<DIV><FONT size=2><FONT
color=#800080>
)</FONT>,</FONT></DIV>
<DIV><FONT size=2><FONT color=#008000><FONT
color=#000000>
</FONT>Fml</FONT><FONT color=#008000>(</FONT></FONT></DIV>
<DIV><FONT size=2><FONT
color=#008000>
</FONT>
"13yyy"</FONT></DIV>
<DIV><FONT
size=2>
<FONT
color=#008000>)</FONT>-0.5</FONT></DIV>
<DIV><FONT
size=2>
<FONT
color=#808000>)</FONT><FONT
color=#000000>, </FONT></FONT></DIV>
<DIV><FONT color=#808000><FONT
size=2>
</FONT></FONT><FONT
size=2><FONT color=#0000ff> </FONT><FONT color=#ff00ff>20</FONT></FONT></DIV>
<DIV><FONT size=2><FONT
color=#ff00ff>
</FONT><FONT
color=#0000ff>)</FONT></DIV></FONT>
<DIV><FONT
size=2>
<FONT color=#ff0000>)</FONT>; </FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>CYY:=<FONT color=#ff0000>If(</FONT></FONT></DIV>
<DIV><FONT
size=2>
YCalc (#014)</FONT><FONT size=2>>0,</FONT></DIV>
<DIV><FONT
size=2>
1,</FONT></DIV>
<DIV><FONT
size=2>
<FONT color=#0000ff>If(</FONT></FONT></DIV>
<DIV><FONT
size=2>
YCalc (#014)<0,</FONT></DIV>
<DIV><FONT
size=2>
-1,</FONT></DIV>
<DIV><FONT
size=2>
</FONT><FONT size=2>0</FONT></DIV>
<DIV><FONT
size=2>
<FONT color=#0000ff>)</FONT></FONT></DIV>
<DIV><FONT
size=2> <FONT
color=#ff0000>)</FONT><FONT color=#000000>;</FONT></FONT></DIV>
<DIV><FONT size=2><FONT size=2>CYY</FONT></FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2> </DIV></FONT>
<DIV><FONT
size=2>----------------------------------------------------------------</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>
<DIV><FONT size=2>YCalc (#014):=<FONT color=#ff0000>Round(</FONT></FONT><FONT
size=2><FONT color=#0000ff>Mul(</FONT></FONT><FONT size=2><FONT
color=#808000>Div(</FONT></FONT><FONT color=#800080 size=2>Sub(</FONT><FONT
color=#800080 size=2><FONT color=#000000>C,Fml(</FONT></FONT><FONT color=#800080
size=2><FONT color=#000000>"10xxx"</FONT></FONT><FONT color=#800080 size=2><FONT
color=#000000>)</FONT></FONT><FONT size=2><FONT
color=#800080>)</FONT>,</FONT><FONT size=2><FONT color=#008000>Fml</FONT><FONT
color=#008000>(</FONT></FONT><FONT size=2>"13yyy"</FONT><FONT size=2><FONT
color=#008000>)</FONT>-0.5</FONT><FONT size=2><FONT color=#808000>)</FONT><FONT
color=#000000>,</FONT></FONT><FONT size=2><FONT
color=#ff00ff>20</FONT></FONT><FONT size=2><FONT
color=#0000ff>)</FONT></FONT><FONT size=2><FONT
color=#ff0000>)</FONT>;</FONT></DIV>
<DIV><FONT size=2>CYY:=<FONT color=#ff0000>If(</FONT></FONT><FONT size=2>YCalc
(#014)</FONT><FONT size=2>>0,</FONT><FONT size=2>1,</FONT><FONT size=2><FONT
color=#0000ff>If(</FONT></FONT><FONT size=2>YCalc (#014)<0,</FONT><FONT
size=2>-1,</FONT><FONT size=2>0</FONT><FONT size=2><FONT
color=#0000ff>)</FONT></FONT><FONT size=2><FONT color=#ff0000>)</FONT><FONT
color=#000000>;</DIV></FONT></FONT>
<DIV><FONT size=2><FONT size=2>CYY</FONT></FONT></DIV></FONT></DIV>
<DIV><FONT size=2><FONT
size=2>----------------------------------------------------------------</FONT></FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Thus basicaly you will have to construct it according to the
in the MSK Fomula Language</FONT></DIV>
<DIV><FONT size=2>used protocol for syntax <STRONG>sequencing </STRONG>(see
the MSK v7.0 -Man.p.221+).</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>Regards,<BR>Ton Maas<BR></FONT><A
href="mailto:ms-irb@xxxxxxxxxxxxxxxx"><FONT
size=2>ms-irb@xxxxxxxxxxxxxxxx</FONT></A><BR><FONT size=2>Dismiss the ".nospam"
bit (including the dot) when replying.<BR>Homepage </FONT><A
href="http://home.planet.nl/~anthmaas"><FONT
size=2>http://home.planet.nl/~anthmaas</FONT></A></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>----- Original Message ----- </FONT>
<DIV><FONT size=2>From: "Guy Tann" </FONT></DIV>
<DIV><FONT size=2>To: "Metastock User Group" <</FONT><A
href="mailto:metastock-list@xxxxxxxxxxxxx"><FONT
size=2>metastock-list@xxxxxxxxxxxxx</FONT></A><FONT size=2>></FONT></DIV>
<DIV><FONT size=2>Sent: vrijdag 21 juli 2000 6:06</FONT></DIV>
<DIV><FONT size=2>Subject: variables </FONT></DIV></DIV>
<DIV><FONT size=2><BR></FONT></DIV>
<DIV><FONT size=2>------------snip------------</FONT></DIV></BODY></HTML>
</x-html>
|