Scritto da giurabu
Qualcuno potrebbe indicarmi o postarmi un indicatore per tradestation che tracci le linee dei pivot intraday con gli stessi valori calcolati dal realtick.Grazie. [/QUOTE
Ciao Giurabu,
vedi se ti può andare bene questo, salvalo come indicator.
Pivot Classic
vars

ivot(-1),R1(0),S1(0),R2(0),S2(0),
PosHigh(0),PosLow(0);
if Date > Date[1] then begin
Pivot = (HighD(1) + LowD(1) + CloseD(1)) / 3;
R1 = (2*Pivot) - LowD(1);
S1 = (2*Pivot) - HighD(1);
R2 = Pivot + (R1 - S1);
S2 = Pivot - (R1 - S1);
end;
if currentdate = date then begin
PosHigh = High;
If High > PosHigh Then
PosHigh = High;
end;
if currentdate = date then begin
PosLow = Low;
If Low < PosLow Then
PosLow = Low;
end;
if currentdate = date then begin
plot1(R1, "R1" );
plot2(S1, "S1" );
plot3(R2, "R2" );
plot4(S2, "S2" );
end;
Questo indicatore elimina le linee che non sono di oggi e quindi hai il grafico pulito. Un problema che ha Tradestation (penso che te ne sarai accorto),non può disegnare più di 4 plot e quindi per mettere i Pivot e R3 S3 devi fare una copia con un altro nome e li plotti tutti e due sullo stesso grafico.
Pivot Classic1
vars

ivot(-1),R1(0),S1(0),R2(0),S2(0),R3(0),S3(0);
if Date > Date[1] then begin
Pivot = (HighD(1) + LowD(1) + CloseD(1)) / 3;
R1 = (2*Pivot) - LowD(1);
S1 = (2*Pivot) - HighD(1);
R2 = Pivot + (R1 - S1);
S2 = Pivot - (R1 - S1);
R3 = Pivot + (R2 - S2);
S3 = Pivot - (R2 - S2);
end;
if currentdate = date then begin
plot1(Pivot,"Pivot");
plot2(R3, "R3" );
plot3(S3, "S3" );
{ plot1(S2, "S2" );
plot4(R2, "R2" );}
end;
un altra cosa che dimenticavo è che in Powereditor vai col tasto dex in proprietà e devi settare in "scaling" same as symbol altrimenti non combaciono le scale.
Saluti delli.