Announcement

Collapse
No announcement yet.

Backtesting Price

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Backtesting Price

    I have some code in backtesting that uses Strategy.MARKET I would like to use the MAStudy price instead to backtest against. Any Ideas?

    Strategy.doLong("Crossing Up", Strategy.MARKET, Strategy.THISBAR);

  • #2
    jnorton
    You would use Strategy.STOP or Strategy.LIMIT and the value of the moving average as the fill price.
    For the syntax of these commands see this article in the EFS KnowledgeBase
    Alex

    Comment

    Working...
    X