ProRealTime coding help

travelfrog

Newbie
Messages
4
Likes
0
Hi,

I would like to add my own pivot points in ProRealTime. At the moment, they just display on every day. I would like to display them to the right of the current candle only and possibly labelled R1, S1 on the chart etc.

Any pointers as to how I can code this in ProRealTime? Below is the basic code for classic pivot points. How would I modify the code to display the pivots on next day only?

Code:
//Classic Pivot Points The formula used in the calculation of Classic Pivot Points are:
PP = (HIGH + LOW + CLOSE) / 3
R4 = PP + RANGE*3
R3 = PP + RANGE*2
RR2 = PP + RANGE
R1 = (2 * PP) - LOW

S1 = (2 * PP) - HIGH
S2 = PP - RANGE
S3 = PP - RANGE*2
S4 = PP - RANGE*3

RETURN R4,R3,RR2,R1,PP,S1,S2,S3,S4
 
Top