Three lower (and higher) Closes John Carter’s Scalping Indicator

v10.3
Three lower (and higher) Closes John Carter’s Scalping Indicator

Hi to all,

I’m reading chapter 14 of John Carter’s “Mastering The Trade” (2nd edition), which describes a setup to open position after trend has changed and a three candle pattern has been formed.

For example, to go short following new trend when old trend was bullish, Carter says that you have to check for three consecutive lower closes, that means that reversal has been confirmed and trader has to go short at market.

At the same way, reversed rules are valid for bullish signal: after a reversal from a bearish to bullish, you have to check for three consecutive higher closes.

Carter adds a filter to avoid “Flags” (consolidation situations): in case of three lower closes, the close of the last two candles must be lower than the low of the first candle of the pattern; at the same way for bullish, the close of the last two candles must be higher than the high of the first candle of the pattern.

Using that rules, I tried to write an indicator that paint green (for bullish) an red (for bearish) arrows on the chart.

Note that when the first arrow is painted after a market reversal, You are on the market so You must ignore the following candles having the same color.

The original John Carter’s indicator for Trade Station put the signal to the first candle of the pattern. My indicator put the arrow to the third candle of the pattern, that is the entry candle.

Here’s the code:

 

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. zilliq • 03/06/2017 #

    Hi Francesco,
    Thanks for your code,
    There is a little error. You need to add the notion of reversal (-1/+1). Because without this you will have too much signal as you see on your picture
    Carter advice to take position to the third and exit wit hthe other signal
    Sadly, I do an algo last week and the results are not very fantastic…May be the things change since his book
    Regards
    Zilliq
     
    https://www.zilliqtradingresearch.fr/
    Coding is not a crime 😉
     

    • mikael • 03/06/2017 #

      Hi Zilliq!
      I don`t understand were to put the notion of  reversal (-1/+1). Can you please exlain or show in the code?
       
      Regards Mikael

  2. Sofitech • 03/06/2017 #

    Hello. How can we modify the code to have an alert on each arrow buy and sell…? RETURN…..So we can test it with an alert in Prorealtime ?

avatar
Register or

Likes

avatar avatar avatar avatar avatar avatar
Related users ' posts
gidien
4 months ago
Cram13 Bonjour, qu'elles sont les valeurs des variables ? Avec mes remerciements Marc
gidien This indicator will not return any value. You can change the last line to : return ao...
gidien SMA1 = MovingAverage Length applied to the source candles (high , low, op...
Fgats quelques explications en Français ici : Some explanations in French here : https://www.p...
Nicolas Merci pour cette contribution, j'apprécie ! :)
Fgats Merci Nicolas pour ces encouragements et merci aussi pour le commentaire en Anglais accompa...
Msport71 Thank You very much
luxrun A question: what are the initial (or default) values ​​of maximum and minimum in the executi...
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
6 months ago
Bateson
6 months ago
Quino
6 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
7 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
7 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...

Top