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;
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;