Dual Thrust Strategy indicator

Dual Thrust Strategy indicator

The Dual Thrust trading algorithm is a famous strategy developed by Michael Chalek. It has been commonly used in futures, forex and equity markets. The idea of Dual Thrust is similar to a typical breakout system, however dual thrust uses the historical price to construct update the look back period — theoretically making it more stable in any given period.

Calculation parameters and upper and lower rails

(1). The highest price of N on High, HH, the lowest price of Close on N Day;

(2). The highest price of Closed N on the N day, the lowest price LL of Low on the N day;

(3). Range = Max(HH – LC, HC – LL)

(4). Calculate the upper track: Buyline = Open + K1 * Range

(5). Calculate the lower rail: Sellline = Open – K2 * Range

Construction system

(1). When the price breaks above the upper rail, if it holds the short position at that time, it will close the position first and then open the multiple position; if there is no position, it will open the multiple position directly.

(2). When the price breaks down the lower track, if it holds multiple positions at that time, it will close the position first, then open the short position; if there is no position, open the short position directly.

Dual Thrust feature

When K1<K2, the long is relatively easy to be triggered; when K1>K2, the short is relatively easy to be triggered, and when K1>K2, the short is relatively easy to be triggered. Therefore, when using this strategy, investors can refer to the optimal parameters of historical data testing on the one hand, and on the other hand, they can start with their own judgments on the post-trend or from other major cycle technical indicators. Adjust the values ​​of K1 and K.

Following this request https://www.prorealcode.com/topic/convert-request-dual-thrust-trading-algorithm/, I wrote this indicator, to visually help coding a strategy.

Share this

Risk disclosure:

No information on this site is investment advice or a solicitation to buy or sell any financial instrument. Past performance is not indicative of future results. Trading may expose you to risk of loss greater than your deposits and is only suitable for experienced investors who have sufficient financial means to bear such risk.

ProRealTime ITF files and other attachments : How to import ITF files into ProRealTime platform?

PRC is also on YouTube, subscribe to our channel for exclusive content and tutorials

avatar
Register or

Likes

avatar
Related users ' posts
jacquesgermain Bonjour non pas de soucis car src=customclose donc dans le menu configuration/propriété me...
geroniman Merci Jacques , indic tres utile. J'ai un indic à programmer avec du price action. es tu dis...
jacquesgermain ok pour regarder ...
Bateson
5 months ago
Bateson
5 months ago
Quino
5 months ago
Bateson
6 months ago
MACD Reloaded
MACD Reloaded
2
Indicators
NEOMKEY Nada nuevo
Carlose I love your version of the MACD, if you use it you can get a lot of use out of it, for me ma...
Bateson
6 months ago
TSI 3.0
TSI 3.0
6
Indicators
Fgats a = (Average[l1,m1](Average[l2,m2](ROC[mfvalue](close)))) b = (Average[l3,m3](Average[l4,m4...
Bateson Fgats, Un grand merci. Cela fonctionne parfaitement. J'ai bien compris la partie à rajouter ...
Fgats
6 months ago
bousalahane hello, thank you for sharing, I’m not top strong in the programation part, there is a way to...
Fgats Hi, With this indicator I just wanted to show the interest that can exist to synthesize th...
davidguerreir how to adapt nbStdSig values ?
lkiklkik thanks a lot. description of the indicator seems wrong ...
robertogozzi Sorry, you're right. The correct description, from https://www.tradingview.com/script/omlpq...
carlvan Hi Nicolas, thank you for this very interesting code. There is something I don't get though ...
Atemi19 probleme code : message veuillez definir alpha futur nbO X X1Y y1
Xtian Bjr Nicolas , pour exemple cet indicateur est extrêmement bien développé chez trading view ...
Actaru5 Hi, I couldn't see the candles well. Changing the code solves the problem. from line 164 to...
LucasBest Thank you
Alai-n @LucasBest Hello, do you think it is possible to isolate moving averages? I would like to us...
Alai-n I really like it when you develop ideas around price movement! I am much less a fan of all t...
finplus Bonjour, une petite demande concernant cet indicateur : comment faire pour que lorsque la bo...
LucasBest Bonjour, la coloration des bandes se fait ligne 111 et 112 à l'aide des instructions colorbe...
Matriciel Very nice job ! Is it possible to do the opposite because what interests me is to have the ...
YvesRobert Hi Matriciel, how can we do this, because stochastic is limited between 0 and 100 but price ...
Traderfox06 Dear zeiiermantrading, I really like your approach combining adaptive averages with MACD in...

Top