PureBytes Links
Trading Reference Links
|
Here's some Tradestation code for the ZigZag indicator that I found on
DejaNews a while back. I don't have Tradestation, so I wasn't sure how to
interpret some of the statements, and never had much luck translating it
into MetaStock. Maybe it will be easier if you're doing it in Excel. Hope
it helps.
- Barry
--------------------------------
TradeStation ZigZag:
Inputs: STR(1);
vars: Switch(0);
if Switch = 0 then begin
if high[1] > high[2] and high[1] > high then begin
plot1[1](high[1], "ZigUp");
Switch = 1;
end;
end;
if Switch = 1 then begin
if low[1] < low[2] and low[1] < low then begin
plot1[1](low[1], "ZigUp");
Switch = 0;
end;
end;
|