Reply

SQTrueRange of SQ3.8.1

3 replies

eastpeace

Customer, bbp_participant, community, 295 replies.

Visit profile

6 years ago #113875

Hello, Mark,

 

Could you please provide the custom indicator, SQTrueRange?

 

I can’t find this even I re-ipmort ELD file to MC.

 

 

0

eastpeace

Customer, bbp_participant, community, 295 replies.

Visit profile

6 years ago #131142

Nobody using the truerange indicator?

 

I think TrueRange means , MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW)).

 

But what does SQTrueRange(86) mean?

0

Mark Fric

Administrator, sq-ultimate, 3 replies.

Visit profile

6 years ago #131146

sorry about it, the function should be there. 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;

Mark
StrategyQuant architect

0

eastpeace

Customer, bbp_participant, community, 295 replies.

Visit profile

4 years ago #139731

SQTrueRange(86) = TrueRange[85]

0

Viewing 4 posts - 1 through 4 (of 4 total)