Reply To: PPO

Optuma Forums Optuma Scripting PPO Reply To: PPO

#59263
AvatarKaren
  • Topics: 18
  • Replies: 30
  • Posts: 48

Hi Mathew,

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.

Thanks again,

Karen

<hr />

 

//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[1]*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]*1.04;

//Show when PPO has lower high & price higher low
Sig1 and Sig2

Pin It on Pinterest

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close