Jump to content
Medved Trader Forums

Why would I be getting this error?

Recommended Posts

I am using the following code:

public void MainCalculation() { if ( Close[1] >= High[1] - .10*(High[1] - Low[1]) ) { SetColorAndShape(0x4dc4b6FF, PBShape.Fill); //TriggerAlert("OF", @"OF"); SetScanResult(@"OF"); } if ( Close <= Low[1] + .10*(High[1] - Low[1]) ) { SetColorAndShape(0xa33c14FF, PBShape.Fill); //TriggerAlert("OF", @"OF"); SetScanResult(@"OF"); } }


And it's producing this error:


Medved Trader encountered an Error

Array dimensions exceeded supported range.

Please contact Medved Trader technical support and provide the error details

AppVer: 1.1.9300.1 Err.Flags: Log, ShowIndicator, ShowToUser
   at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
   at System.Activator.CreateInstance(Type type, Boolean nonPublic)
   at System.Activator.CreateInstance(Type type)
   at MT.Charting.Editor_Paintbar.<OnParameterChanged>d__9.MoveNext() in [ROOT]\Charting\Paintbars\Editor_Paintbar.cs:line 105


Second attempt, couldn't get the code to go through the first time.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...