Month: July 2018

Van K. Tharp’s Expectancy Function

texttextThis is a function proposed by Van K. Tharp in his book Trading Your Way to Financial Freedom (1999) as a way to measure strategy performance. Although Expectancy is not one of the objectives that the user can select...

Read More

Circular Index Function

I was recently developing code to perform circular indexing of arrays where my need was to calculate the correct circiular index of a bar that was far into the future or far into the past relative to the current bar. I was...

Read More

Improved Function BarsDisplayed

Purpose This function displays the number of bars visible on a chart. Users have the functions GetAppInfo(AiHighestDispValue) and GetAppInfo(AiLowestDispValue) to determine the highest and lowest values that are currently...

Read More