Example of trading robot DSL code

del.icio.us Reddit Slashdot Digg Facebook Technorati Google StumbleUpon Yahoo Bloglines Bookmark.it Ask Mister Wong Netvouz


<pre>
robot do
  online :duration => 300
  query MSFT do
    unless openposition MSFT
      if (ewa MSFT, 9)/(ewa MSFT, 25) - 1 > 0.5
        buy MSFT, MKT, 10
      end
    else
      if (ewa MSFT, 9)/(ewa MSFT, 25) - 1 < - 0.5
        sell MSFT, MKT, 10
      end
    end # unless
  end # query
end # robot
</pre>

DSL library will be posted in 2 days

One Response to “Example of trading robot DSL code”

  1. MSFT News Aggregator » Example of trading robot DSL code Says:

    […] Original post here […]

Leave a Reply