Heb van https://www.tradestationworld.com de code voor Pivot Points gehaald en in Vestics gezet
Het werkt prima in (template gebaseerd op) dagkoersen, echter: intraday op basis van minuut of tikdata geeft de foutmelding "invoegen indicator" mislukt
wat is de oplossing?
dit is de code:
value function zPivotPoints ( )
begin
value pivot, resistance, resistance2, support, support2;
if Date > Date[1] then
pivot := (Low[1] + High[1] + Close[1] ) / 3;
resistance := pivot + pivot - Low[1];
support := pivot + pivot - High[1];
resistance2 := pivot + resistance - support;
support2 := pivot - resistance + support;
Plot1(pivot, "PP " );
Plot2(resistance, "R1" );
Plot3(support, "S1" );
Plot4(resistance2, "R2" );
Plot5(support2, "S2" );
end;
end;