Announcement

Collapse
No announcement yet.

Discrepancy between EFS Study Data and Chart Data

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

  • Discrepancy between EFS Study Data and Chart Data

    I have a fairly simple backtest that I've run using some MA crossovers. The backtest is written using MA Studies to retrieve the relevant data. When I look back over the chart, and follow the entries and exits, I've noticed that the crossover often appears on the chart three or four bars before the backtest generates the signal.

    Does this involve a difference between sma() and MAStudy(...MA.SIMPLE)?

    Any help is much appreciated,
    nv00

  • #2
    Hello nv00,

    There is no difference in the values returned by sma() vs. MAStudy(). The answer to your problem lies within your formula code. Please post your formula and I'll take a look.
    Jason K.
    Project Manager
    eSignal - an Interactive Data company

    EFS KnowledgeBase
    JavaScript for EFS Video Series
    EFS Beginner Tutorial Series
    EFS Glossary
    Custom EFS Development Policy

    New User Orientation

    Comment


    • #3
      I wrote a reply and while writing it realized my error:

      I had the MAs on my chart calculating from the close of each bar whereas the MAs in the study are calculating from the open...

      Apologies,

      Nv00

      Comment

      Working...
      X