Trading.fml 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Namespace xmlns:Formula="http://finance.easychart.net" Name="FML">
  3. <Description>Namespace description</Description>
  4. <GroupOnly>false</GroupOnly>
  5. <Namespaces>
  6. <Namespace Name="Trading">
  7. <Description />
  8. <GroupOnly>false</GroupOnly>
  9. <Namespaces />
  10. <Programs>
  11. <Program Name="RSI" IsMainView="false">
  12. <FullName>RSI Trading System</FullName>
  13. <Description>RSI Trading system</Description>
  14. <Code>EnterLong:CROSS("RSI(N)",30);
  15. ExitLong:CROSS(70,"RSI(N)");</Code>
  16. <DisabledCycle />
  17. <Params>
  18. <FormulaParam Name="N" DefaultValue="14" MinValue="1" MaxValue="100" Description="" ParamType="double" />
  19. </Params>
  20. </Program>
  21. <Program Name="MACD" IsMainView="false">
  22. <FullName>MACD Trading System</FullName>
  23. <Description>MACD Trading System</Description>
  24. <Code>EnterLong:LONGCROSS("MACD(N1,N2,N3)",0.2,3);
  25. ExitLong:LONGCROSS(-0.2,"MACD(N1,N2,N3)",3);</Code>
  26. <DisabledCycle />
  27. <Params>
  28. <FormulaParam Name="N1" DefaultValue="26" MinValue="1" MaxValue="100" Description="" ParamType="double" />
  29. <FormulaParam Name="N2" DefaultValue="12" MinValue="1" MaxValue="100" Description="" ParamType="double" />
  30. <FormulaParam Name="N3" DefaultValue="9" MinValue="1" MaxValue="100" Description="" ParamType="double" />
  31. </Params>
  32. </Program>
  33. </Programs>
  34. </Namespace>
  35. </Namespaces>
  36. <Programs />
  37. </Namespace>