The Last AO (Pinescript)

Job ID: 37042353

Budget: $30 – $250 USD

Expected Result: Configurable Indicator for Tradingview with alert.

Indi will have configurable input for lookback parameters of Min=1 and Max=10

Signal evaluation is based on Awesome Oscillator (AO)

Detection Scenario is trend based (using ema200)

Uptrend
1) current price is above ema200
2) trigger is when AO bar shift from below <0 to above >0
3) from there, lookback to find the last red AO bar but with condition of AO<0
4) alert

Downtrend
1) current price is below ema200
2) trigger is when AO bar shift from above >0 to below <0
3) from there, lookback to find the last green AO bar but with condition of AO>0
4) alert

maximum to lookback will be based on user input
Related categories: Pine Script Trading