Butterworth indicator compile error
Author: FishFlip_MVP
Creation Date: 6/10/2016 12:24 AM
profile picture

FishFlip_MVP

#1
Hi

I cant seem to get the Buttersworth Indicator working in my scripts, im sure im making a simple mistake somewhere

The code im using returns the error

QUOTE:

error CS1729@(25,23): 'Community.Indicators.Butterworth2' does not contain a constructor that takes 2 arguments


and my code

CODE:
Please log in to see this code.


Thanks for your help
profile picture

Eugene

#2
Hi,

You were misguided by the Wiki example which won't compile. When instantiating an indicator with constructor (i.e. " = new") you have to provide a string parameter called description. This was missing and it's fixed now in the Wiki. Sorry for the inconvenience. Here's the proper syntax:

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

FishFlip_MVP

#3
Thankyou Eugene for your reply, got it now :)
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).