Profile Picture

indicator plugin

Posted By baips 8 Years Ago
Message
Posted Sunday April 12 2009
I have designed an indicator plugin to calculate the swings to link the highest and lowest.but it throws an exception.Anything wrong with it.it says out of the range of argument.But i have checked it carefully and cant find what is wrong with it.

By the way,is it the right way to code it that way?


Attachments
Class1.cs (430 views, 5.00 KB)
Posted Monday April 13 2009
Argument out of range means you have an indexer that's accessing a value that isn't there. Most likely you are trying to access a value in the bar element arrays that isn't there yet. Make sure that your array indexer is in range. Also, a line number on the stack trace would be most helpful.

baips (4/12/2009)
I have designed an indicator plugin to calculate the swings to link the highest and lowest.but it throws an exception.Anything wrong with it.it says out of the range of argument.But i have checked it carefully and cant find what is wrong with it.

By the way,is it the right way to code it that way?
Posted Monday April 13 2009
someone help me finding out that the count of  base._values.InnerList remain constant.why is that?
Posted Monday April 13 2009
I have found out.thanks


Similar Topics


Reading This Topic


2005-2017 © RightEdge Systems