Here is an example of the study plotted on a daily chart of MSFT. The filename is “TASC_JAN2020.ZIP.”įor more information about EasyLanguage in general, please see. The files for this article can be found here. To download the EasyLanguage code, please visit our TradeStation and EasyLanguage support forum. LCSlope = LeavittConvSlope( Price, Length ) LeavittConvSlope = LinearRegSlope(LeavittProjection(Price, Length), LenConv) LeavittConv = LinearRegValue(LeavittProjection(Price, Length), LenConv, -1) LenConv = IntPortion( SquareRoot(Length)) LeavittProjection = LinearRegValue(Price, Length, -1)
#Tradestation forum code
This EasyLanguage code can also be downloaded by visiting our TradeStation and EasyLanguage support forum at the link provided below. Leavitt has already provided TradeStation EasyLanguage code for the calculations he uses, and we are showing that code here. The author uses a linear regression of price data to help derive slope and acceleration information, in turn helping him to identify trends and trend turning points. In the article in the October 2019 issue titled “An Interplanetary Marriage,” author Jay Leavitt describes the evolution process required in strategy design by introducing his Mars strategy, which grew out of concepts presented in his earlier articles in S&C on his stratosphere, tech emini, and moon rocket ideas.