Reply

SQ custom indicators refresh

1 replies

kleung88

Customer, bbp_participant, community, 32 replies.

Visit profile

6 years ago #117310

Hello, I am having a compiling error in TradeStation because it cannot recognize a function named SQTrueRange.  I had installed the .ELD file from SQ to TS before, and the file time stamp suggested that it was a 2014 version.  I am wondering if there’s a refresh of this .ELD file, and if it does, where may I find the download link under the Client portal or somewhere please ?

0

tomas262

Administrator, sq-ultimate, 2 replies.

Visit profile

6 years ago #143996

Hello,

 

here is the SQTrueRange function for Tradestation:

inputs: 
Period( numericsimple );


vars: periodBefore(0), first(0), second(0); 


periodBefore = Period - 1;


if(High[periodBefore] > Close[Period]) then begin 
first = High[periodBefore];
end Else begin 
first = Close[Period];
end;


if(Low[periodBefore] < Close[Period]) then begin
second = Low[periodBefore];
end Else begin
second = Close[Period];
end;


SQTrueRange = first - second;

0

Viewing 1 replies (of 1 total)