Traders’ Tips by Technical Analysis
TRADESTATION: AFFINE GEOMETRY
In “Affine Geometry Of The Markets” in this issue, author
Viktor Likhovidov describes how to calculate the projected
affine price given the start and end points of a trendline.
Here, we’ll present the EasyLanguage code for an affine
price indicator based on Likhovidov’s ideas. The way the
indicator is written, the start and end points of the trendlines
are passed in as inputs to the indicator, and the actual input
values used are shown in the chart. Note that each point is
specified by a date, a time, and a price. (Another way of
writing the indicator would be to obtain the start and end
points by querying manually drawn trendlines.) The price
multiplier and price shift values are also passed in as inputs.