+1 888 340 6572

TLValueLog

Article/Author: Origin: Traders2traders website. Coded by Chris Cheatham.

Download: andb1101.ela

File Includes:
Function - TLValueLog
Indicator - AndrewsBabson Lin 2 (Pitchfork indicator)
Indicator - AndrewsBabson Log 2 (Pitchfork indicator)
Function - MPT
Function - Log10

Category: Function > TLValueLog

Description:

The log scale chart equivalent of Omega Research TLValue function.

Inputs:

Price1
Bar1
Price2
Bar2
TgtBar

EasyLanguage Code:
INPUTS : PRICE1(NUMERICSIMPLE),BAR1(NUMERICSIMPLE), PRICE2(NUMERICSIMPLE),BAR2(NUMERICSIMPLE), TGTBAR(NUMERICSIMPLE);


IF BAR2 - BAR1 <> 0 AND PRICE1 >0 AND PRICE2 > 0 THEN
TLVALUELOG = POWER(10, ( LOG10(PRICE1) - LOG10(PRICE2) ) / (BAR2 - BAR1) * (BAR1 - TGTBAR) + LOG10(PRICE1) )
ELSE
TLVALUELOG = 0;