Free Support Pivot and Resistance formula

Hi, I wrote some code for Tradestation so my charts auto plot the support & resistances. ( see my attached chart so you could see how my chart looks). I found it a pain to use the exel spreadsheet & whats great is this is used on any stock or index.......

Enjoy- Christopher Terry.

If you need help, just email me at Chris@LBRcapital.com


Since TS allows 4 plots per indicator, there is 2 seperate indicators that need to be made.



The Critera for each coding below is.

1. Make a NEW easy language document.
2. Look for INDICATOR name & okay it.
3. Copy & paste the CODE to EL document. VERIFY
4. Right click properties,
5. SCALING - same as symbol
6. Colors. your choice.
7. Type I use a POINT & 2nd weight to get what I have on the chart.
verify & intsert indicator, do this for each one.......

INDICATOR-1
Name - PIVOT

vars: pivot (0), resistance1 (0), resistance2 (0), support1 (0), support2 (0), displace (-10);


pivot = ( highd (1) + lowd (1) + closed (1) )/3;





if pivot > 0 then begin
plot1 [displace]( pivot, "p");


end;

INDICATOR -2
NAME - SUPPORT & RESISTANCE
vars: pivot (0), resistance1 (0), resistance2 (0), support1 (0), support2 (0), displace (-10);


pivot = ( highd (1) + lowd (1) + closed (1) )/3;

resistance1 = ( pivot *2 ) - lowd (1);

Support1 = ( pivot *2 ) - highd (1);
resistance2 = pivot - support1 + resistance1;
support2 = pivot - (resistance1 - support1);




if pivot > 0 then begin
plot1 [displace] (resistance1, "r1");
plot2 [displace](resistance2, "r2");
plot3 [displace] (support1, "s1");
plot4 [displace] (support2, "s2");



end;
 

Attachments

Quote from josbarr:

VIX-31.11 +.28
ATR-24.06

DEC S&P 500 Futures 19 NOV 2002

924.00 -second pivot point resistance
917.50 -previous day's high
912.00 -first pivot point resistance
910.50 -last week high
909.40 -Oct high
905.50 -pivot point
900.00 -Mon close
899.28 -4-day moving average
899.00 -Mon low
897.69 -9-day moving average
895.93 -18-day moving average
893.50 -first pivot point support
887.71 -100-day moving average
887.00 -second pivot point support
876.00 - 50% fib retrace Oct87-Mar00
870.50 -last week low
767.50 -Oct and contract low


Are you sure you didn't miss any?
 
Back
Top