Not logged in
Viewing 2 posts - 1 through 2 (of 2 total)

Forums>StrategyQuant>Application Support>Creating new indicator- can’t get even a SMA to match data.

  • #258301 |
    Customer
    3 Posts

    That is the outcome.

    This is the codes:

    MT4

    value = iMA(NULL, PERIOD_CURRENT, 10, 0, MODE_SMA, PRICE_TYPICAL, 1);

    SQX

    double sma = Indicators.SMA(Input.Typical, 10).Value.get(0);

     

    Am I missing something here?

    #258471
    tomas262
    Administrator
    1315 Posts

    Hello,

    I have setup an SMA test and uploaded data from an export of iMA values using the function value = iMA(NULL, PERIOD_CURRENT, 14, 0, MODE_SMA, PRICE_TYPICAL, 1); and it works good

    Attachments:
    You must be logged in to view attached files.
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.