Premium Only Content
TradeStation EasyLanguge Tutorial 184 | SuperTrend strategy framework and indicator
Tutorial 184 is based on the Markplex SuperTrend indicator which is a stop and reverse (SAR) indicator that trails price action (See the original indicator here: https://markplex.com/free-tutorials/tutorial-173-markplex-supertrend/ )
This implementation calculates the Average True Range (ATR) of the average price using the exponential moving average. A user input multiple of the ATR is added to or subtracted from the average price to give Upper and Lwr respectively, depending on the direction. Direction is determined by the Close of a bar relative to the value of the SuperTrend, Upper and Lwr.
There are many different interpretations of the so-called SuperTrend indicator. In this Markplex version the SuperTrend value is also tightened (i.e. moved closer to price) by using an acceleration factor which increases incrementally each bar by user input: AFStep up to a a maximum value of user input: MaxAF.
In addition a 'Supertrend' stop is calulated (SupTrendExit). The value of this is set to the value of SupTrend when direction changes and is then calculated using:
SupTrendExit = MaxList( SupTrendExit, L - ( ( L - SupTrendExit ) * ( 1 - AFExit ) ) )
when Dir = 1, otherwise by:
SupTrendExit = MinList( SupTrendExit, H + ( SupTrendExit - H ) * ( 1 - AFExit ) )
A buy market order is generated when Dir changes from -1 to 1, provided that LongFilter1, LongFilter2 and LongFilter3 each evaluate to true and the program is not currently in a trade. A sell short market order is generated when Dir changes from 1 to -1, provide that ShortFilter1, ShortFilter2 and ShortFilter3 each evaluate to true and the program is not currently in a trade.
When in a long position and the close crosses under SupTrendExit a market order to exit the trade next bar is generated provided the trade has been in the trade more than the user input: MinBarsNTrade number of bars. Similarly, when in a short position and the close goes above SupTrendExit a market order to exit the trade next bar is generated provided the trade has been in the trade more than the user input: MinBarsNTrade number of bars. The user could experiment with replacing this functionality will other types of stop, for example a trailing stop.
The tutorial gives an example of LongFilter1 and ShortFilter1 using an implementation of the Moving Average Gap Ratio. If this is used, the user will need to change the strategies' "Maximum Number of Bars Study will reference" to be equal to the value of SlowLength. The user can experiment with replacing this filter with their own as the strategy tends to get 'whipsawed' in non-trending markets.
For more details go to: https://markplex.com/free-tutorials/tutorial-184-supertrend-strategy-framework-and-indicator/
-
1:47:09
Fresh and Fit
11 hours agoGuy Crashes Car Working Uber?! Money Monday Call In Show!
75.9K11 -
1:48:50
Glenn Greenwald
12 hours agoDC Attacks Trump's Most Disruptive Picks; Biden Authorizes Massive Escalation With Russia; Joe & Mika Meet With "Hitler" | SYSTEM UPDATE #367
168K209 -
1:44:34
Tucker Carlson
11 hours agoTucker Carlson and Russ Vought Break Down DOGE and All of Trump’s Cabinet Picks So Far
207K271 -
1:42:47
Flyover Conservatives
1 day agoBO POLNY | The Best and Worst Times Are Coming – Are You Ready? | FOC Show
58.1K23 -
51:12
BIG NEM
14 hours agoWelcome to Our Uncensored Show: Trump, Simulation Theory & the Albanian Mob - EP1
65.8K17 -
2:05:14
Robert Gouveia
12 hours agoFBI Criminals Get LAWYERS; STOP Counting ILLEGAL Votes; Time to Disbar Tish James
82.6K113 -
1:00:30
The StoneZONE with Roger Stone
11 hours agoAre We Heading For World War III? General Michael Flynn Joins The StoneZONE w/ Roger Stone
58.2K14 -
1:14:12
We Like Shooting
20 hours ago $2.19 earnedDouble Tap 384 (Gun Podcast)
30.3K -
4:17:21
Tundra Gaming Live
13 hours ago $3.13 earnedThe Worlds Okayest War Thunder Stream
41.4K2 -
1:20:47
Donald Trump Jr.
15 hours agoThe MAGA Cultural Shift, Plus UFC at MSG & Interview with Newt Gingrich | TRIGGERED Ep.192
164K233