Hi guys,
I just wrote a first custom strategy. but i cannot debug it.
i use a custom indicator. i have a copy of the indicator in every directory in the SDK path,
indicator,
indicator\standard
strategy
strategy\standard
but the debugger always tells me he couldnt find the indicator.
the indicator works in marketscope.
the indicator requires to parameters:
indicator:name(resources:get("name"));
indicator:description(resources:get("description"));
indicator:requiredSource(core.Bar);
indicator:type(core.Indicator);
indicator.parameters:addInteger("Signal", resources:get("param_Signal_name"), resources:get("param_Signal_description"), 8);
indicator.parameters:addInteger("Band", resources:get("param_Band_name"), resources:get("param_Band_description"), 5);
indicator.parameters:addColor("SignalColor", resources:get("param_SignalColor_name"), resources:get("param_SignalColor_description"), core.rgb(255, 0, 0));
indicator.parameters:addColor("BandColor", resources:get("param_BandColor_name"), resources:get("param_BandColor_description"), core.rgb(0, 255, 64));
the strategy calls it with
BarSource = ExtSubscribe(1, nil, instance.parameters.Period, instance.parameters.Type == "Bid", "bar");
indicator = core.indicators:create("CustomIndicator", BarSource, Signal,Band);
has anyone a clue what i did wrong. think it is a little mistake
but i cant figure it out
thanks for any advice
BM