READ-ONLY

The forum is now a read-only archive.

For bug reports & platform questions → [email protected]

Our community lives on Discord and YouTube — come join us!

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

6 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

Tomas Matejka

Administrator, sq-ultimate, 2 replies.

Visit profile

6 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)