fxcodebase-backup

Pretty_Good_Oscillator

Source: https://fxcodebase.com/code/viewtopic.php?f=17&t=69328
Forum: 17 · Topic 69328 · 9 post(s)


Pretty_Good_Oscillator

Apprentice · Sat Jan 18, 2020 6:03 am

GBPUSD D1 (01-18-2020 1008).png

The Pretty Good Oscillator indicator by Mark Johnson measures the distance of the current close from its N-day simple moving average, expressed in terms of an average true range over a similar period.

Pretty_Good_Oscillator.lua


Re: Pretty_Good_Oscillator

Avignon · Sun Jan 19, 2020 8:22 pm

Hello,

I looked around out of curiosity. Your indicator’s different than the ones I found.

Here in french

https://www.tradingview.com/

Regards.


Re: Pretty_Good_Oscillator

Apprentice · Mon Jan 20, 2020 8:47 am

Your request is added to the development list. Development reference 571.


Re: Pretty_Good_Oscillator

Apprentice · Tue Jan 21, 2020 2:07 pm

Pretty_Good_Oscillator.lua

Try this version.

TradingView does have several different implementations of this indicator.


Re: Pretty_Good_Oscillator

Avignon · Tue Jan 21, 2020 7:20 pm

OK. I’ll look later. The formula seems to be this one.

For Tradingview, that would explain why there are few signals then.


Re: Pretty_Good_Oscillator

Avignon · Sun Jan 26, 2020 1:05 pm

Hello,

Can you add the levels on the indicator and at once put a signal (sound and arrow)?

Thanks.


Re: Pretty_Good_Oscillator

Avignon · Sun Jan 26, 2020 8:30 pm

Hello, again,

Can you explain it to me? I don’t understand how “EMA of true range” is calculated.

I tried to code it on PRT out of curiosity but I don’t have the same results.

Thanks, again.


Re: Pretty_Good_Oscillator

Apprentice · Mon Jan 27, 2020 7:27 am

Your request is added to the development list. Development reference 598.


Re: Pretty_Good_Oscillator

Apprentice · Tue Jan 28, 2020 2:02 pm

GBPUSD m1 (01-28-2020 1810).png

Pretty_Good_Oscillator.lua

True range formula: https://en.wikipedia.org/wiki/Average_true_range EMA formula: http://fxcodebase.com/wiki/index.php/Ex … erage_(EMA