Test.fml 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Namespace xmlns:Formula="http://finance.easychart.net" Name="FML" Version="1.0.0.7">
  3. <Description>Namespace description</Description>
  4. <GroupOnly>false</GroupOnly>
  5. <Namespaces />
  6. <Programs>
  7. <Program Name="TestScan" IsMainView="false">
  8. <FullName />
  9. <Description />
  10. <Code>C&lt;LLV(C,3) &amp; MA(V,N)&gt;50000 &amp; BETWEEN(C,1,10) &amp; ABS(C-"BB(M,M/10)[LOWER]")&lt;0.1</Code>
  11. <DisabledCycle />
  12. <Params>
  13. <FormulaParam Name="N" DefaultValue="90" MinValue="1" MaxValue="1000" Description="" ParamType="double" />
  14. <FormulaParam Name="M" DefaultValue="20" MinValue="1" MaxValue="100" Description="" ParamType="double" />
  15. </Params>
  16. </Program>
  17. <Program Name="TestOrgData" IsMainView="false">
  18. <FullName>OrgData</FullName>
  19. <Description />
  20. <Code>MYIV:OrgData(FN),HighQuality;
  21. IVC : SMA(MYIV,XN,1);</Code>
  22. <DisabledCycle />
  23. <Params>
  24. <FormulaParam Name="FN" DefaultValue="Close" MinValue="0" MaxValue="0" Description="" ParamType="string" />
  25. <FormulaParam Name="XN" DefaultValue="12" MinValue="1" MaxValue="100" Description="" ParamType="double" />
  26. </Params>
  27. </Program>
  28. <Program Name="TestPartColor" IsMainView="false">
  29. <FullName>Support up color and download of line</FullName>
  30. <Description />
  31. <Code>C;
  32. MA(C,20),UpColorRed,DownColorGreen,Width2,HighQuality</Code>
  33. <DisabledCycle />
  34. <Params />
  35. </Program>
  36. <Program Name="TwoDiff" IsMainView="false">
  37. <FullName>Difference of Two Symbol</FullName>
  38. <Description />
  39. <Code>C1:=FML(Symbol2,'C')-C;
  40. H1:=FML(Symbol2,'H')-H;
  41. L1:=FML(Symbol2,'L')-L;
  42. O1:=FML(Symbol2,'O')-O;
  43. GETSTOCK(O1,C1,MAX(C1,O1,H1,L1),MIN(C1,O1,H1,L1));
  44. </Code>
  45. <DisabledCycle />
  46. <Params>
  47. <FormulaParam Name="Symbol2" DefaultValue="MSFT" MinValue="0" MaxValue="0" Description="" ParamType="string" />
  48. </Params>
  49. </Program>
  50. <Program Name="CustomTrade" IsMainView="true">
  51. <FullName>Trade sign from database</FullName>
  52. <Description>Load EnterLong,EnterShort,ExitLong,ExitShort from database</Description>
  53. <Code>M :=OrgData('M'+N);
  54. DrawIcon(M==1,L,'EnterLong.GIF'),BOTTOM;
  55. DrawIcon(M==2,H,'EnterShort.GIF'),GOP;
  56. DrawIcon(M==3,H,'ExitLong.GIF'),TOP;
  57. DrawIcon(M==4,L,'ExitShort.GIF'),BOTTOM;
  58. @SetTextVisible(false);</Code>
  59. <DisabledCycle />
  60. <Params>
  61. <FormulaParam Name="N" DefaultValue="1" MinValue="1" MaxValue="3" Description="" ParamType="double" />
  62. </Params>
  63. </Program>
  64. <Program Name="VolChange" IsMainView="false">
  65. <FullName>Vol Change</FullName>
  66. <Description />
  67. <Code>V/MA(C,N)-1,ColorRed;
  68. @SetName('Vol%Change');</Code>
  69. <DisabledCycle />
  70. <Params>
  71. <FormulaParam Name="N" DefaultValue="50" MinValue="1" MaxValue="1000" Description="" ParamType="double" />
  72. </Params>
  73. </Program>
  74. <Program Name="PartStockColor" IsMainView="true">
  75. <FullName />
  76. <Description />
  77. <Code>M:MA(C,N);
  78. @SETNAME(M,'MA'+N);
  79. A1:STOCK,MonoStock,BrushGreen,ColorGreen;
  80. A2:IF(C&gt;M,STOCK,NAN),MonoStock,BrushRed,ColorRed;
  81. @SETTEXTVISIBLE(A2,false);
  82. @SETNAME(A1,'C');
  83. @SETTEXTVISIBLE(false);</Code>
  84. <DisabledCycle />
  85. <Params>
  86. <FormulaParam Name="N" DefaultValue="13" MinValue="0" MaxValue="1000" Description="" ParamType="double" />
  87. </Params>
  88. </Program>
  89. </Programs>
  90. </Namespace>