RSI 3 periods QQQ Powerness

RSI 3 periods QQQ Powerness

Another long only strategy built with mean reversion in mind with a classic Relative Strength Index indicator on 3 periods. Buying the deep RSI 3 periods (under 10 level) and sold the long position when RSI rise above the 50 level.

I also add a dynamic lot calculation made upon the strategyprofit. You can change the value of the "initial lot" (100 shares at start) and the "step profit" which add more shares whenever the strategy gain a new stepprofit (50$ by default).

14.5% drawdown while almost being 8% of traded time in the market. Annualized return of 11.5% profit, 16 years long.

myRSI = RSI[3](close)

//initial lot
initLOT = 100

//profit step of the strategy to increase lot
stepPROFIT = 50

myLOT = max(initLOT,initLOT+ROUND((strategyprofit-stepPROFIT)/stepPROFIT))

IF NOT LongOnMarket AND myRSI<10 THEN

If LongOnMarket AND myRSI>50 THEN


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

  1. DonDollar • 190 days ago #

    Hi Nicolas,

    very easy and very interesting strategy. But one question: Why is there no ‘DEFPARAM CUMULATEORDERS = False’ at the beginning? I tried it with False and True but…there is no difference if. So why do I need it?



  2. DonDollar • 190 days ago #

    …and I do not see any opened positions…strange…

  3. DonDollar • 190 days ago #

    I found the answer by myself for the second question. But still no idea about the False and True thing.

    • Nicolas • 190 days ago #

      The line 12 of the code is the answer of your question. Before launching a new trade, the code check if there is already a long trade opened. 

Register or


avatar avatar
Related users ' posts
David Nicolas I've looked at it again and there's a problem.  As an example here's a simple cross...
Nicolas You'll need to preload bars to get the good calculations of you indicators. I did not test i...
David Nicolas I tried DEFPARAM Preloadbars = 5000 And still the same drawn output of entries/exit...
Renato Di Lorenzo Agree; thanks.
rpreviteri Hi Nicolas, thanks a  loto for sharing your knowliedge, Wasn't the original momentum pinball...
air Thank you!  
Dimi.A Perfect for counter-trend scalping. I like this!
leyoy Bonjour, je viens de l'installer sur 10.3 ... comment faire apparaitre les flèches sur l'ind...
Nicolas Les flèches apparaissent d'elles-mêmes selon les signaux de l'indicateur.
leyoy Elles viennent d'apparaitre après redémarrage. Merci Nicolas. Du coup, les signaux sont à pr...
jctrader Bonjour . CAC 40    1988 = 1000   today = 4900  soit 490%  en buy and hold  .... + 370% av...
Nicolas Aucune immobilisation du capital. Quel est le drawdown du buy & hold ? Je ne l'ai pas ca...
jctrader ok pour le codage mais le choix "indice" n'est pas le bon : moins de 5%/an pour le meilleur ...
Nicolas I do not have any error Alfredo, even while testing on 150000 bars in the past. By the way, ...
alfredo thank for the council, when i do start the strategie on Italy at 1h some mornings happen tha...
Nicolas I think it's because of price gaps and/or quote interrupt. Anyway, be aware that this strate...