Profile Picture

Using Highest

Posted By phg 8 Years Ago
Message
phg
Supreme Being (48,451 reputation)Supreme Being (48,451 reputation)Supreme Being (48,451 reputation)Supreme Being (48,451 reputation)Supreme Being (48,451 reputation)Supreme Being (48,451 reputation)Supreme Being (48,451 reputation)Supreme Being (48,451 reputation)Supreme Being (48,451 reputation)
Posted Tuesday January 20 2009

I am not sure why this encounters a run-time exeception (not all code is shown, just relevant parts):

private Highest hdiff; // Maximum difference in emas.

subema = new SubtractSeries(); // Difference, fast Close minus medium Low.

hdiff= new Highest(3,subema);

bEmaDiffUp=(hdiff.Current> 0) // All recent diff's positive?

It is looking for the largest difference between two emas in the recent past. Will "Highest" not work on a difference?

Thanks,



-Pete

See also Yahoo group about applying RE.

Posted Tuesday January 20 2009
Is this the exception you're getting?

http://www.rightedgesystems.com/forums/Topic7052-9-1.aspx
Posted Tuesday January 20 2009
Should work, it's just numbers.  What's the exception?

phg (1/20/2009)

I am not sure why this encounters a run-time exeception (not all code is shown, just relevant parts):

private Highest hdiff; // Maximum difference in emas.

subema = new SubtractSeries(); // Difference, fast Close minus medium Low.

hdiff= new Highest(3,subema);

bEmaDiffUp=(hdiff.Current> 0) // All recent diff's positive?

It is looking for the largest difference between two emas in the recent past. Will "Highest" not work on a difference?

Thanks,

phg
Supreme Being (48,451 reputation)Supreme Being (48,451 reputation)Supreme Being (48,451 reputation)Supreme Being (48,451 reputation)Supreme Being (48,451 reputation)Supreme Being (48,451 reputation)Supreme Being (48,451 reputation)Supreme Being (48,451 reputation)Supreme Being (48,451 reputation)
Posted Tuesday January 20 2009
An exception of type System.ArgumentException was thrown.
Need exactly 3 input series, 1 was passed in.
   at RightEdge.Common.SeriesCalculatorBase.SetInputs(ISeries[] newInputs)
   at RightEdge.Common.SeriesCalculatorBaseWithValues.SetInputs(ISeries[] newInputs)
   at RightEdge.Indicators.Highest..ctor(Int32 periods, ISeries input)
   at MySymbolScript.Startup() in c:\Documents and Settings\Peter\My Documents\RightEdge\development\emas2\emas2.cs:line 85
   at MySystemBase.Startup(SystemData data) in c:\Documents and Settings\Peter\My Documents\RightEdge\development\emas2\BaseClasses.cs:line 23
   at RightEdge.Common.Internal.SystemRunner.Startup()
   at RightEdge.Shared.SystemWrapper.InitializeModule(SystemData systemData, SystemRunInfo dndInfo, ServiceFactory brokerFactory)
   at RightEdge.Shared.SystemWrapper.RunSystem(SystemData systemData, SystemRunInfo runInfo, SystemRunSettings runSettings, ServiceFactory brokerFactory)
   at RightEdge.Shared.SystemWrapper.RunSystem(DateTime start, String filename, ServiceFactory brokerFactory, PluginReference dataStore)
   at RightEdge.Shared.SystemWrapper.RunSystem(DateTime start, String filename, ServiceFactory brokerFactory, PluginReference dataStore)
   at RightEdge.Shared.TradingModuleWrapper.RunSystem(SystemDataCreationSettings settings, SystemRunSettings runSettings, SystemRunInfo dndInfo, ServiceAppDomainFactory brokerFactoryFactory, PluginReference dataStore)
   at RightEdge.SystemProgress.InitAndRunSystem()

-Pete

See also Yahoo group about applying RE.

phg
Supreme Being (48,451 reputation)Supreme Being (48,451 reputation)Supreme Being (48,451 reputation)Supreme Being (48,451 reputation)Supreme Being (48,451 reputation)Supreme Being (48,451 reputation)Supreme Being (48,451 reputation)Supreme Being (48,451 reputation)Supreme Being (48,451 reputation)
Posted Tuesday January 20 2009
This formulation works:

highest=new Highest(5);
  highest.SetInputs(subema);
  
  lowest=new Lowest(5);
  lowest.SetInputs(subema);

(Thanks mark0419)

-Pete

See also Yahoo group about applying RE.

Posted Tuesday January 20 2009
It turns out this is actually a bug in the Highest indicator.  It will be fixed in the next release of RE2008E2.

Thanks,
Daniel



Similar Topics


Reading This Topic


2005-2017 © RightEdge Systems