Code: Select all
hWMA_High := CreateIndicator(Currency, TimeFrame, 'MovingAverage', '12;0;Weighted (WMA);High');
But I receive this message in the Journal:
Code: Select all
Wrong option value: Weighted (WMA), (Moving Average)
and instead it creates a SMA using the Close. What code should I use for MA types other than simple?