Does anyone have a function coded to calculate EMA?

Examples step by step how to make your own automated strategy or user indicator
Message
Author
donovo13
Posts: 4
Joined: Mon Oct 13, 2008 5:51 pm

Does anyone have a function coded to calculate EMA?

#1 Postby donovo13 » Wed Oct 29, 2008 9:27 pm

I have the code to calculate SMA (Simple Moving Averages) but would like to test with EMA (Exponential Moving Averages) does anyone have a function coded to calculate EMA?
DMN

User avatar
Terranin
Site Admin
Posts: 833
Joined: Sat Oct 21, 2006 4:39 pm

Re: Does anyone have a function coded to calculate EMA?

#2 Postby Terranin » Thu Oct 30, 2008 3:23 pm

donovo13 wrote:I have the code to calculate SMA (Simple Moving Averages) but would like to test with EMA (Exponential Moving Averages) does anyone have a function coded to calculate EMA?


You can find this function in Examples\Indicators\ folder, see TechnicalFunctions.pas of TechnicalFunctions.cpp and look for GetMA function, it can calculate any kind of MA.
Hasta la vista
Mike

carloswm85
Posts: 3
Joined: Sat Oct 03, 2020 11:30 am

Re: Does anyone have a function coded to calculate EMA?

#3 Postby carloswm85 » Tue Oct 06, 2020 5:56 pm

Thanks for the information, Terranin.

I have some knowledge on plain C programming language.

Can you tell me where I can find the documentation necessary for coding and setting up my own indicators for FT4?

FX Helper
Posts: 1479
Joined: Mon Apr 01, 2013 3:55 am

Re: Does anyone have a function coded to calculate EMA?

#4 Postby FX Helper » Mon Oct 12, 2020 6:56 am

Hello,

You an find API files in C:\ForexTester4\Examples\Indicators\C++ folder by default.
API description can be found in "Help" menu in the Forex Tester program.


Return to “Programming lessons”

Who is online

Users browsing this forum: No registered users and 9 guests