Pivot, Support , Resistance Calculator

tanewbie

Well-Known Member
#36
Formula for Pivots and code in for Amibroker:
// Pivots - 4

rg = H - L;

p = (H+L+C)/3;

R1 = p + (p - L);

R2 = p + rg;

R3 = R1 + rg;

R4 = R2 + rg;


S1 = p - (H - p);

S2 = p - rg;

S3 = S1 - rg;

S4 = S2 - rg;



Plot(C,"Close",colorBlack,styleCandle);

Plot(p,"Pivot",colorWhite,styleBar);

Plot(R1,"R1",colorBlue,styleBar);

Plot(R2,"R2",colorBlue,styleBar);

Plot(R3,"R3",colorBlue,styleBar);

Plot(R4,"R4",colorBlue,styleBar);

Plot(S1,"S1",colorRed,styleBar);

Plot(S2,"S2",colorRed,styleBar);

Plot(S3,"S3",colorRed,styleBar);

Plot(S4,"S4",colorRed,styleBar);



Filter=1;

AddColumn(C,"Close");

AddColumn(R1,"R1");

AddColumn(R2,"R2");

AddColumn(R3,"R3");

AddColumn(R4,"R4");

AddColumn(p,"Pivot");

AddColumn(S1,"S1");

AddColumn(S2,"S2");

AddColumn(S3,"S3");

AddColumn(S4,"S4");
 
#38
Hi satya,
Thanks for your wondeful calculator.
Please help me how to add one's favourite stocks and view the Pivot Support and Resistance points?
Thanks
Shan
 

Similar threads