# 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.

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?

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

#### Likes

Related users ' posts
Noobywan
2 weeks ago
0
Indicators
Nicolas
1 month ago
v10.3
2
Indicators
Bonjour Nicolas, j'ai récemment découvert cet indicateur (Regularized Momentum 2017) et je l...
Bonjour, nouveau sur PRT (qq jours), j'essaie un peu de voir quel type d'indicateur me convi...
Newbie
2 months ago
0
Indicators
Bruno Carnazzi
2 months ago
0
Indicators
Ciccio
2 months ago
4
Indicators
Thanks @luxrun Read the pdf file
Thanks for the indication of the pdf. I'm actually looking for something more practical with...
Nicolas
3 months ago
v10.3
8
Indicators
There is no specific file for MAC. Download the itf file and import it into your platform by...
bonjour merci pour le partage !!!! je débute dans les codes , j ai une question je les l i...
Il faut l'ajouter sur le prix avec l'icône de la clé situé en haut à gauche du graphique du ...
Nicolas
4 months ago
v10.3
3
Indicators
Hi Nicolas thanks ... I'm new to programming I would like to use it with blue +1 and red -1 ...
change the last line with: return v coloured(r,g,b) style(line,2), v+band coloured(168,168,1...
Thanks ... works as i wanted.
Guillaume Mcm
4 months ago
2
Indicators
Hi IVMcm, thanks for your amazing work. I have tested all of your indicators and use some of...
With pleasure and thanks!
Mprorealcode
4 months ago
v10.3
8
Indicators
remove STYLE if you are using PRT version prior to V11
i DON4T UNDERSTAND THE USE OF THIS INDICATOR?
Display other timeframe candlesticks on the current chart! :)
Mprorealcode
4 months ago
v10.3
0
Indicators
Nicolas
4 months ago
1
Indicators
Thanks @Nicolas. I tried to use it as Trend in a proorder system, but don't know why, it doe...
Nicolas
5 months ago
8
Indicators
Il y a à boire et à manger chez Ehlers, quand même :)
Doesn't work for me, the .ift or the code above...
Is there something we are missing here, I just get the same curved line as well...
Nicolas
5 months ago
v10.3
4
Indicators
Bonjour peut-on backtester cela ? Et si vous l'avez fait pourriez vous nous donner le code.....
désolé c'est un oubli de ma part, tu peux supprimer cette ligne, elle n'est plus utile dans ...
Bonjour , Nicolas , merci pour ta réponse , je suis en effet avec PRT 10.3 , et j'ai bidouil...
RobinJK
5 months ago
0
Indicators
Guillaume Mcm
5 months ago
v10.3
1
Indicators
Super travail !
Bruno Carnazzi
5 months ago
v10.3
2
Indicators
oops sorry did not see that one had to untick the standard Price to see your candle...
Nicolas
5 months ago
v10.3
8
Indicators
Add it on the price chart by using the wrench on the left upper side of your price chart.
I'm facing the exact same issue : even if I follow the correct path (import the its file and...
Sorry there was a small issue in the code, i have changed the attached itf file and updated ...
Ciccio
6 months ago
0
Indicators
Guillaume Mcm
6 months ago
v10.3
2
Indicators
Merci l'ami, passe une bonne semaine
Merci de même ;)
Guillaume Mcm
6 months ago
0
Indicators

Top