Using the same indicator multiple times in the one strategy

How to create strategies and indicators
Message
Author
Mickatron
Posts: 10
Joined: Sat May 30, 2015 8:07 pm

Using the same indicator multiple times in the one strategy

#1 Postby Mickatron » Sun May 31, 2015 7:16 am

How would I use 2 EMA's in the one strategy, like a 10 and a 30 line?

I've tried calling CreateIndicator() once for each EMA line, though that give an "Found indicator with same params" error.

I couldn't see any params for GetIndicatorValue() to get different period values and I'm at a loss on this one so far.

Mickatron
Posts: 10
Joined: Sat May 30, 2015 8:07 pm

Re: Using the same indicator multiple times in the one strat

#2 Postby Mickatron » Sun May 31, 2015 8:26 am

So next time I have an issue I might wait a day before I try these forums as I keep answering my own questions. There was no issue using multiples, it was just a coding error that wasn't picked up by the compiler.


Return to “FT API”

Who is online

Users browsing this forum: No registered users and 9 guests