In het TKA van september staat een aardige strategie met toppen en bodems met leuke resultaten op de AEX. Op de site http://www.belbeltka.nl/ staat de bijbehorende EL code:
Inputs:EL(close), ES(close), MBB(500);
Vars:occur(1), support(PivotLowVS(occur,low,3,2,3)),
resistance(PivotHighVS(occur,high,3,2,3)), daysback(0);
{SUPPORT & RESISTANCE}
If currentbar-5 > MBB then begin
For daysback = MBB downto 0 begin
If PivotLowVS(occur,low,3,2,3)[daysback] < close today then
begin
support = PivotLowVS(occur,low,3,2,3)[daysback];
? ?end;
end;
end;
If close < support then support=0;
If currentbar-5 > MBB then begin
For daysback = MBB downto 0 begin
If PivotHighVS(occur,high,3,2,3)[daysback] > close today then
begin
resistance = PivotHighVS(occur,high,3,2,3)[daysback];
? ?end;
end;
end;
If close > resistance then resistance=999999;
{ENTRY & EXIT SIGNALS}
If currentbar-5 > MBB then begin
If close > resistance[1] then buy at close; If EL < support[1] then sell at close;
If close < support[1] then sell at close; If marketposition = -1 and close > High[1] then buy at close;
end;
Echter Vesticode kent de PivotHighVS en PivotLowVS niet. Heeft iemand deze codes in EL ter beschikking.
Alvast dank.