MACD new indicator with CreateIndicator

How to create strategies and indicators
Message
Author
amberwine
Posts: 17
Joined: Fri Jul 12, 2013 3:47 am

MACD new indicator with CreateIndicator

#1 Postby amberwine » Tue Jul 16, 2013 5:24 am

There is an indicator on the Add a new Indicator... button in FT2 called 'MACD new', different from MACD. This new indicator has the MACD, signal and histogram, whereas the old one just has the signal and histogram (called MACD).

I tried creating an instance of this in a C++ strategy using

Code: Select all

IndMACD = CreateIndicator(Currency, PERIOD_M15, "MACD new", "5;13;3;Close");


but it didn't work. In the journal I get

Can not find indicator: MACD new.dll

Can I use this one from code and if so, how?

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

#2 Postby FX Helper » Tue Jul 16, 2013 6:02 am

Hello,

It seems, that you need to replace "MACD new" to "MACDnew" because there is MACDnew.dll file in the <Forex Tester>\Indicators\ folder.

amberwine
Posts: 17
Joined: Fri Jul 12, 2013 3:47 am

#3 Postby amberwine » Tue Jul 16, 2013 6:19 am

Thanks for your help - it worked.

I did have a look for dll's before asking the question here but strangely I don't seem to have an Indicators folder under my FT2 installation folder. I'm showing hidden files and subdirectories inside the installation folder but in my installation the only folders that are visible are:

Docs
Examples
Sounds

Could the dlls have been installed somewhere else?

Phil_Trade
Posts: 94
Joined: Tue Jan 31, 2012 5:14 am
Contact:

#4 Postby Phil_Trade » Tue Jul 16, 2013 6:49 am

amberwine wrote:Thanks for your help - it worked.

I did have a look for dll's before asking the question here but strangely I don't seem to have an Indicators folder under my FT2 installation folder. I'm showing hidden files and subdirectories inside the installation folder but in my installation the only folders that are visible are:

Docs
Examples
Sounds

Could the dlls have been installed somewhere else?


yes you should have an Indicators sub directory.
you probably run Windows 7 yes ?
if yes, do a search for 'indicators' or 'ATR.DLL' file with windows explorer. Some Win7 installation use 'virtual' directories
my live account - 8 based pairs with optimized parameters : +188%
http://www.myfxbook.com/members/Philipp ... jpg/519044
TradeSlide : http://bit.ly/14R9Nf6

to be informed about Windev/MT4 services : a04486-tradingsignal@yahoo.fr

amberwine
Posts: 17
Joined: Fri Jul 12, 2013 3:47 am

#5 Postby amberwine » Tue Jul 16, 2013 8:41 am

Got it, thanks!

I'm using Vista 64-bit. The folders are in my Users\AppData\Roaming subdirectory.

Phil_Trade
Posts: 94
Joined: Tue Jan 31, 2012 5:14 am
Contact:

#6 Postby Phil_Trade » Tue Jul 16, 2013 8:47 am

amberwine wrote:Got it, thanks!

I'm using Vista 64-bit. The folders are in my Users\AppData\Roaming subdirectory.


roaming directories ... THE Microsoft joke :):)
my live account - 8 based pairs with optimized parameters : +188%

http://www.myfxbook.com/members/Philipp ... jpg/519044

TradeSlide : http://bit.ly/14R9Nf6



to be informed about Windev/MT4 services : a04486-tradingsignal@yahoo.fr


Return to “FT API”

Who is online

Users browsing this forum: No registered users and 25 guests