Ok, i usually can fix my mistakes, but this one has me baffled.
I wanted to be able to add the ability to change the Moving Average line colors to my existing code thru the use of Color Parameters.
So I added a Color Parameter section(lines 133- 140), declared them in function main(), and did an eval(Color) declaration( lines 178-179) under bInit (I copied this straight from an already working code). However , now I get a " Parameter Number 5 of the Function drawShapeRelative is invalid " error on line 336. This line of code actaully draws the "stops" on the chart.
I use that same drawShape code and the Color Parameters in other programs and it works just fine, so I know the drawshapeRelative parameter is valid. Somewhere , my logic as written, is causing the Color Parameter mixup.
Any help is appreciated!!
angelo
I wanted to be able to add the ability to change the Moving Average line colors to my existing code thru the use of Color Parameters.
So I added a Color Parameter section(lines 133- 140), declared them in function main(), and did an eval(Color) declaration( lines 178-179) under bInit (I copied this straight from an already working code). However , now I get a " Parameter Number 5 of the Function drawShapeRelative is invalid " error on line 336. This line of code actaully draws the "stops" on the chart.
I use that same drawShape code and the Color Parameters in other programs and it works just fine, so I know the drawshapeRelative parameter is valid. Somewhere , my logic as written, is causing the Color Parameter mixup.
Any help is appreciated!!
angelo
Comment