I have trouble with an indicator : I cannot call it as I wish from a strategy.
I gladly would have made a sample of the issue, but I was not able to export the sample strategy, so let me put it in a few words :
I made a copy of the zigzag,
I want to call it from a strategy, but there is no input in the indicator parameters (within the parenthesis, from the strategy)... so I can't apply the indicator on a series<double> like the macd as the input... it only applies on price series...
in the editor, when the cursor is on the name of the indicator :
- in the indicator script, it shows the input in the parenthesis, before deviationType and so on.,
- in the strategy script , there is no input series in the parenthesis, they just start with deviationType.
when I tried to export all those 2 sample scripts to make it simple for the reader, we get an error "the type or namespace name'deviation type' could not be found" (cs0246 )
I assume both issues might be related, can anyone let me know what I should try to make this functional ?
is there a using devclaration needed to have the deviation type be found ?
edit :
we cannot export both strategy or indicator.
but the strategy can be exported when we comment the declaration line of the indicator.
Comment