Reply

Creating new indicator- can’t get even a SMA to match data.

1 replies

Stormin_Norman2

Subscriber, bbp_participant, customer, community, 3 replies.

Visit profile

3 years ago #258301

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?

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

3 years ago #258471

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.

0

Viewing 1 replies (of 1 total)