Trend Template by Mark Minervini

Trend Template by Mark Minervini

The Trend Template stock screener is a set of selection criteria by Market Wizard Mark Minervini. Here are the rules:

  1. The current stock price is above both the 150-day (30-week) and the 200-day (40-week) moving average price lines.
  2. The 150-day moving average is above the 200-day moving average.
  3. The 200-day moving average line is trending up for at least 1 month (preferably 4–5 months minimum in most cases).
  4. The 50-day (10-week) moving average is above both the 150-day and 200-day moving averages.
  5. The current stock price is trading above the 50-day moving average.
  6. The current stock price is at least 30 percent above its 52-week low. (Many of the best selections will be 100 percent, 300 percent, or greater above their 52-week low before they emerge from a solid consolidation period and mount a large scale advance.)
  7. The current stock price is within at least 25 percent of its 52-week high (the closer to a new high the better).

 

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

  1. Djfromsweden • 04/13/2017 #

    Hello Nicolas! I wonder if you would like to help me.  I have a very good (and simple) signal (formation) that I am trying to program in the market scanner, but I must be doing something wrong.
    It has a hitrate of 82% (very big backtesting in Multicharts) , so very useful, and I am sure that you will like it, if you try it.
    I Think for someone as  proffesional as you in programming, you could help me out in 1-2 minutes or so. Would you like to try? If yes, Maybe we can make a screensharing, and I can show explain
    what a I mean. I have teamviewer.  If yes, maybe you can start sending me in e-mail
    I would appreciate your help.  🙂

    • Nicolas • 04/13/2017 #

      Sure, please send me a message through the programming services form, we’ll see together how I can help you the best way. Thanks.

  2. luckyhaa • 04/13/2017 #

    thanks Nicolas, this is what i am looking long time !!!!

  3. Stenozar • 04/13/2017 #

    Hi Nicolas, it’s very interesting. Do I have to apply it to any particular list?
    thanks
    Stefano

    • Nicolas • 04/13/2017 #

      Any group of shares you like!

  4. mal • 04/13/2017 #

    Hi Nicolas,
    whar for a broker do you use for Future-Tarading with pro real time?

    • Nicolas • 04/13/2017 #

      Prorealtime trading with interactive broker, more information follow this link: https://trading.prorealtime.com/en/brokerage/futures-forex-trading

  5. Stenozar • 04/13/2017 #

    Buon pomeriggio Nicolas, sono riuscito ad importare lo screener ma non mi evidenzia alcun titolo, mi riporta solo tutta la lista dei titoli azionari. Come dovrebbe essere visualizzato il titolo selezionato dallo screener? in modo evidenziato o come per distinguerlo? Grazie!

    • Nicolas • 04/13/2017 #

      Sì, potrebbe visualizzare molte scorte nella finestra dei risultati. È un “template” per trovare le scorte di tendenza.

  6. Frank Wilson • 04/13/2017 #

    thanks for the screener mate cheers

  7. Merls • 04/13/2017 #

    Hi Nicholas, Is it possible to add the Mansfield RS criteria in also? I have been trying to put that into my screener. Also, can ‘resources’ companies be excluded easily in the screener?
    Cheers Merls

  8. Onythan • 04/13/2017 #

    Hello Nicolas,
    Thanks for this screener. I was wondering if I could add a criteria in order to get the whole list in this screener ? Cause PRT is only displaying 50 results at once.
    Thank,
    Anthony

    • Nicolas • 04/13/2017 #

      50 results is the limit, but you can get more with PRT-CFD premium : https://www.prorealcode.com/PRT-CFD-english/

  9. Raspoutine • 04/13/2017 #

    Hi Nicolas,The results are not identical
     
    ma200 = Arevage(200)

    //c4 = summation[20](ma200 > ma200[1]) = 20
    c4 = summation[20](Average[200] > Average[200](1)) = 20
     
    My interpretation:
    // Trend Template by Mark Minervini Opti ?

    ma50 = Average[50]
    ma150 = Average[150]
    ma200 = Average[200]

    c1 = Close > ma200
    c2 = Close > ma150
    c3 = ma150 > ma200

    //c4 = summation[20](Average[200] > Average[200](1)) = 20
    c4 = ma200/ma200[25] > 0.025

    c5 = ma50 > ma200
    c6 = ma50 > ma150
    c7 = Close > ma50

    c8 = Close / Lowest[252](low) > 1.3 //dochian
    c9 = Close / Highest[252](high) > 0.75 //dochian

    IF c1 AND c2 AND c3 AND c4 AND c5 AND c6 AND c7 AND c8 AND c9 THEN

    Trend = 1

    ELSE

    Trend = 0

    ENDIF

    Return Trend

     
    WHEN TO SELL ?
    Earlier in the thread, cfro mentioned :
    LO, Andrew W. and HASANHODZIC, Jasmina (2010) The Heretics of Finance : Conversations with Leading Practitioners of Technical Analysis. (New York : Bloomberg).
    There is a great chapter in the book comprising an interview with Stan Weinstein. It offers some terrific insights relevant to the “Stage 2”. Among these are the following :

    Weinstein explains that he does in fact base his trading on the use of three moving averages : 50-day, 150-day and 200-day : exactly as described by Minervini. This was not revealed in his book Secrets for Profiting in Bull and Bear Markets. Perhaps he just wanted to keep it as simple as possible in the book by only referencing the 150-day MA.

    What I think is potentially the most important new point : Weinstein goes on to explain how he uses the three moving averages as a mechanical exit rule, which he says he never ever deviates from.

    If price falls below the 50-day MA he will sell one third of his position, unquestionably – as risk management.

    If price rises back above the 50-day MA, he will consider buying back the third he sold (but would not necessarily do so). 

    However, if price continues to weaken and goes below the 150-day MA he will sell another third.

    Finally, if price falls below the 200-day MA he exits the remainder of his position.

    Essentially, while he does not say it in exactly these words, Weinstein believes that any volatility that occurs while the price remains above its 50-day MA, is ‘volatility to ignore’. However, if the 50-day MA is breached : start to use the rules described above.
    Not mentioned by Weinstein, a further “warning signal” that could/should demand defensive action, is when the 50-day MA crosses below the 150-day MA.
    A mantra of Weinstein and so many other gurus is KEEP YOUR LOSSES SMALL !
    Weinstein’s system seems a sound one for helping to do this. The thread has offered insights from both Weinstein and Minervini on when to BUY Stage 2 stocks.
    Weinstein’s system offers objective criteria for when to SELL, which is often one of the hardest investment decisions to make.
    We all know we should run our winners. While the 50-day, 150-day and 200-day moving averages are all rising and all in the correct “traffic light” order, and last but not least, price remains above all three moving averages : the technicals, according to Weinstein, say : “stay in the stock”.
    Source:h**p://shareinfo.myfastforum.org/archive/the-stage-2-pub__o_t__t_1151.htmlh**p://stockbee.blogspot.fr/2017/05/how-to-setup-mark-minervini-trend.htmlEnjoy ^^
     
     

  10. Magela01 • 04/13/2017 #

    is this ok with AMibroker?

    • Nicolas • 04/13/2017 #

      Prorealcode is a website about prorealtime trading platform programming, this code will not work in any other software 🙂

  11. gabri • 04/13/2017 #

    Great screener!! I would like to add only the fact that Minervini is a growth investor and so he picks stocks based on fundamentals AND technical analysis. I suggest to use periods of 254 instead of 300, 66 instead of 50 and 130 instead of 150 to reflect the trimester/semester/annual reports normally released by companies if trading the stock market. 200/150/50 is perfect for everything else.

  12. Hayden • 04/13/2017 #

    Hi Nicolas, thanks for the Minervini screener, I’m finding it really useful.
    I am a big fan of pocket pivots and am wondering if coding to detect pocket pivots could be added to this screener to make it more sensitive to an impending move?
    Essentially adding in some coding to detect when the day’s volume is larger than the highest down volume day over the prior 10 days.
    Can I send you a message through the programming services form for this?
    Cheers
    Hayden

    • Nicolas • 04/13/2017 #

      Private personal assistance is possible through the programming services. Otherwise, you could ask for free code in the dedicated forum of course.

  13. Go Sasaki • 04/13/2017 #

    hi, thank you for the code. when i go through the code, i dont see the condition for 1. The current stock price is above both the 150-day (30-week) and the 200-day (40-week) moving average price lines. would you please advise which line in the code?

    • Nicolas • 04/13/2017 #

      Conditions c1 and c2 are the ones you’re looking for.

  14. quacker • 04/13/2017 #

    How could I add a filter to this to screen for stocks within a price range?

    • DStyles • 04/13/2017 #

      Just add more variables and conditions. Variable: priceupper=200; pricelower=1. c7 = close [greater than] pricelower and close [less than] price higher. Add c7 to trendtemplate.

  15. Hervs • 04/13/2017 #

    Bonjour Nicolas, je souhaiterais tester ce screener avec la variable date[JOUR], serais t’il svp possible de me modifier le screener, merci pour votre aide

    • Nicolas • 04/13/2017 #

      qu’est-ce que signifie “variable date[jour]” svp?

  16. Hervs • 04/13/2017 #

    Dsl, je n’avais pas mis le lien du post (“https://www.prorealcode.com/topic/tester-un-screener-avec-une-variable-date/”) pour expliquer ma demande. Je souhaite mettre en place la variable JOUR (JOUR=nombre de jours antérieurs) dans le screener, pour qu’il me renvoie une liste d’actions à une date précise.

    • Nicolas • 04/13/2017 #

      Merci dans ce cas d’ouvrir un sujet dans le forum ProScreener svp.

  17. Andrea • 04/13/2017 #

    Hi Nicolas, thx for your code. Please i need your help to understand this part of your code:

    c4 = summation[20](ma200>ma200[1])=20

    Thx

    • Nicolas • 04/13/2017 #

      the MA200 is ascending since 20 periods.

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar avatar

+28 more likes

Related users ' posts
pyhrus P.S : IG , que j'ai contacté ,m'indique que la version V11 , ne sera pas disponible avant un...
Hasardeur Dear Nicolas, is there someting at the arry to modify in order to run the trend at the actu...
MALIMALO Dear Nicolas, just try touse your indicator with backtest but it's not working. is anybody...
ribes65 Bonjour Nicolas, Merci pour votre travail. Est-il envisageable de créer un screener pour ...
Nicolas Bien sûr, merci de formuler une demande dans le forum des screeners pour prorealtime. En res...
ipbvba Est il possible de le transformer en indicateur (pour ne plus avoir les lignes mais uniqueme...
supertiti Bonjour Nicolas, Je ne comprend pas bien , le trend change de couleur quand les prix sont a...
Nicolas Oui ce serait possible, cependant l'indicateur est bien prévu pour conserver la couleur de l...
supertiti Quand tu pourras si tu peux nous coder la troisième couleur cela améliorerait les trades cou...
Nicolas How to import file page: in the help section of the website explains howto
kenssa import through the indicator page/window in the Proreal time
chicoteca Buenas, no consigo que se me muestre en el chart de DAX. ¿Cómo procedo? Gracias.-
frenqle Hi There.. It seems the TSL stop loss is not working.. it does not respond is that correct?
Ciccarelli Franco Per lasciare che la strategia venga eseguita (dopo aver importato il file): Basta eliminare...
JADINVEST Hello Jan, hello everyone, Thanks Jan for this strategy! Since 2020, have any of you found a...
Stockastiss Can this code be simply transferred into Backtestingcode so one doesnt need to use call ? (i...
Vonasi Sorry for the late reply. Add the code to your strategy and remove line 5 and line 39. Chang...
viktorthunss Hi! How many averages are there? Can I see the somewhere?
FXmike hey my friends, thank you for this great code. my problem is he make no trade open. backtest...
FXmike Can i put a Action that my start contract is smaller than 1 ? 0.3 or 0.5 ? In wich Position...
phoentzs I wrote the code for M15 back then and also variants in H1 and M1. Everything works so far....
leofi https://www.prorealcode.com/topic/simple-average-with-visual-color/
leofi Go visit www.prorealcode.com/topic/simple-average-with-visual-color/ and watch 2em post
Dritan Hi,I am new on Prorealtime and coding.I downloaded the indi but I have it on a separate wind...
Alps007 Hi Nicolas. Happy New Year. Can you please program me several MACD divergence screeners ...
Arlei Zanin Hello Nicolas, would it be possible to convert the Cloud to Pascal language? Thank you.
ashee i want it in MT4
Marie-Eve Vergoz Bonsoir - Voici l'erreur qui est signalée lorsque je souhaite utiliser cet indicateur : il...
Nicolas Just add it on the price series.
yomisadiku Hello Nicolas, Can I use high and low price at lines hh=max(hh,close) and ll=min(ll,close) ...
Nicolas Yes you can do that, the impact will be that the trailing stop line will be much close to th...
Byggtrader Hi Nicolas! How do I get the indicator in the price chart? It only stays under i new chart.
Nicolas Just add it on the price chart by using the wrench on the left upper side of the chart (pric...
Dom Hello, hello....je commence le trading et découvre par la même occasion le codage....et ce n...
Nicolas Merci, ça fait plaisir !
Be-n Bonjour tout le monde ! Dans l'indicateur de tendance, j'ai du mal à saisir la nuance entre ...
Vonasi Sure that is possible. I will code it and make a post in the English ProBuilder forum and pu...
Vonasi Vama v2 with Hull moving average included can be found here: https://www.prorealcode.com/top...
JMat45 Thank you, Vonasi.
Globalmarkets79 Thank you Vonasi for the answer. I have an other question. When i tried to run the indicator...
Vonasi Lines is either 0 or 1 to turn on or off the drawing of them. Once again if you download and...
Globalmarkets79 Thank you Vonasi, this indicator is very helpful!!!
Nicolas
5 years ago
Bateson Merci pour la réponse Nicolas. C'est bien ce que j'ai fait mais ça ne fonctionne toujours pa...
Enzo Paliotti Veramente ottimo, era quello che cercavo, si potrebbe modificare inserendo come variazione a...
Nicolas Perché no, chiedetelo con una descrizione dettagliata nel forum degli indicatori, per favore!
Nicolas
5 years ago
LRMA
LRMA
0
Indicators
jiddan78 how to convert to afl amibroker ?
Nicolas We do not supply free coding assistance for AFL Amibroker on the website. You can ask for pa...
Ngomsi @ Vonasi, how to use timeframe , 13 minutes ,21 minutes, 34 minutes,et 55 minutes with this...
manchokcity can we have it in mql4 platform? or how or which platform do we use it?
camporan I don't use MetaTrader so I won't be able to do the translation myself. Sorry!
Alexander9 This can for amibroker ? . Thanks
riz001 thnk u
geroniman bonjour Nicolas, j ai un indicateur le Tiger . J aiemrai placer des fleches buy et sell dire...
Nicolas Merci de formuler les demandes sur le forum. ça n'est pas le bon endroit et hors sujet ici ! ;)

Top