Error CS0019: Operator '-' cannot be applied to operands of type method group
Author: kbellare
Creation Date: 5/1/2013 11:26 AM
profile picture

kbellare

#1
I'm trying to build an oscillator (Aroon Oscillator) by subtracting 2 indicators in the Community Library - AroonUp.Series - AroonDown.Series.

This should be a simple DataSeries operation, but the code (below) gives me an error saying "error CS0019: Operator '-' cannot be applied to operands of type 'method group'"

Pl advise how to fix this error - am i missing a declaration? I thought AroonUp.Series and AroonDown.Series are DataSeries objects.

CODE:
Please log in to see this code.
profile picture

Eugene

#2
QUOTE:
I thought AroonUp.Series and AroonDown.Series are DataSeries objects.

Sure they are, but your code has a syntax error.

CODE:
Please log in to see this code.


Just compare the Wiki links and your own Wizard-generated code in PlotSeries(paneAroon1...) with your oscillator.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).