variables: fastMA( 0 ), slowMA( 0 ); fastMA = Average(MedianPrice, 5); slowMA = Average(MedianPrice, 34); SQ_AwesomeOscillator = fastMA - slowMA; { Force series function, since otherwise this function can verify as simple, but needs to be called at every bar to return correct results } If false then Value10 = SQ_AwesomeOscillator [1];
fastMA = Average(MedianPrice, fastMA);
slowMA = Average(MedianPrice, slowMA);
we use a static version of AWO using firm periods 5 and 34 in all platforms.
If you want to make it configurable, you can write a new snippet and template files or you can define a custom block in AlgoWizard.
Best regards,
Tomas