- Topics: 18
- Replies: 30
- Posts: 48
The script is copied below. Also is there any update as to timing on the support and resistance lines automated tool being developed – I was just wondering the timing of its availability.
//Negative PPO divergence
// Calculating PPO
PPOMA1 = MA(BARS=5, STYLE=Exponential, CALC=Close);
PPOMA2 = MA(BARS=60, STYLE=Exponential, CALC=Close);
PPOPlot1 = ((PPOMA1 – PPOMA2) / PPOMA2)*100;
//PPOPlot2 = MA(PPOPlot1, BARS=5, STYLE=Exponential);
//calculate 15 pivot PPO high
P1 = PIVOT(PPOPlot1, MIN=15, TYPE=High);
//get value of the PPO peak
V1 = VALUEWHEN(PPOPlot1, P1 <> 0);
//Is PPO high < previous?
Sig1 = V1 < V1*0.96;
//get stock high value at PPO peak
V2 = VALUEWHEN(HIGH(), P1 <> 0);
//Is stock high higher than at previous PPO peak?
Sig2 = V2 > V2*1.04;
//Show when PPO has lower high & price higher low
Sig1 and Sig2