Category: Functions

A Flexible Trailing Stop

The Anatomy of a Stop A stop can be defined by specifying four basic parameters, illustrated in Figure 1 below: Price Reference: The price from which the stop is offset (white line) to create a stop value. Stop Offset: The...

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

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
Loading