Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Hi,
I'm trying to create a Swing object (in Swing Indicator class) based on the daily timeframe from within a new indicator which will be used on the 1 minute timeframe. The reason I do this so that I have access to the daily swings from within the lower 1 minute timeframe. I create the time series as follows....
I've declared the Swing object in the class as follows:
Swing swingsD1;
How do I pass the bar data series into the Swing object? As follows(??):
swingsD1 = new Swing(BarsArray[1], 2);
The problem is that I get an error that there is no constructor that takes 2 arguments. Yet I can see the constructor in the read only Swing indicator class (ships with Ninjatrader 8):
public Swing Swing(ISeries<double> input, int strength)
{
if (cacheSwing != null)
for (int idx = 0; idx < cacheSwing.Length; idx++)
if (cacheSwing[idx] != null && cacheSwing[idx].Strength == strength && cacheSwing[idx].EqualsInput(input))
return cacheSwing[idx];
return CacheIndicator<Swing>(new Swing(){ Strength = strength }, input, ref cacheSwing);
}
I'd appreciate any help
Thankyou,
iq
Can you help answer these questions from other members on NexusFi?