The entry indicator is static and plots a line X ticks from the open[0]. This isn't generating any issues when compiling.
The take profit indicator is dynamic. This keeps generating a "No overload for method 'name' takes 1 arguments." error. I have tried setting indicator parameters after initialization
indicator = indicator();
indicator.high = 10;
indicator.low = 10;
setting the parameters within the initialization,
indicator = indicator(10,10)
omitting all parameters,
indicator = indicator;
Only placing one parameter (as both numbers are the same anyway)
indicator = indicator(10)
If I don't initialize the indicator I can successfully compile, but when I activate the strategy I get "Error on calling 'OnStateChange' method: Object reference not set to an instance of an object."
I get the same cs1501 error code regardless. Please advise.
Comment