I try to create my own indicator using MS Visual 2010 C++.
I have problem with RegApplyToPriceOption(), RegMATypeOption() functions.
Here is piece of code:
Code: Select all
TPriceType ApplyToPrice = pt_HLC3;
TMAType MAType = ma_EMA;
RegApplyToPriceOption((int&)ApplyToPrice, "Apply to Price");
RegMATypeOption((int&)MAType, "MA Type");
These function seem to ignore initial values of variables.
I can set new values and then everything is OK.
But first time indicator properties window appears
there is "Close" and "SMA" instead of "Open" and "(High+Low+Close)/3".
BTW - RegApplyToPriceOption() and RegMATypeOption() are not metioned in Indicator API manual.
Thanks,
tpr