Functions TLSlope and TLSlopeEasy -correct?

Questions about MultiCharts and user contributed studies.
mefTrader
Posts: 141
Joined: 23 Jun 2011
Has thanked: 9 times
Been thanked: 7 times

Functions TLSlope and TLSlopeEasy -correct?

Postby mefTrader » 18 Jul 2011

Guys

are these functions correct?

I see the following in the code

Code: Select all

var0 = StartBar - EndBar ;
if var0 <> 0 then
TLSlope = ( EndPriceValue - StartPriceValue ) / var0
else
TLSlope = 0 ;
think var0 should be EndBar - StartBar?

mefTrader
Posts: 141
Joined: 23 Jun 2011
Has thanked: 9 times
Been thanked: 7 times

Re: Functions TLSlope and TLSlopeEasy -correct?

Postby mefTrader » 18 Jul 2011

Actually bars back is increasing - hence the change of sign. -ok


Return to “MultiCharts”