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
francis59 Hello Ivan, thanks for this very nice and powerfull indicator. Could you have time to create...
Iván Hi We could find stocks with sweep on: //PRC_Sweep Institucional //version = 0 //28.0...
inverse Like the way you think Ivan ... :)
Iván Hi You should delete from the indicator code all drawing functions and all variables not us...
Iván I've created a screener to show [longcondition or shortcondition]
Chrisinobi Hallo Ivan, Danke das ist Perfekt !! Kannst du bitte in der Screener-Bibliothek die itf. hoc...
Gio56 Super idée. j'ai juste un souci. j'ai pas de barre verte mais plusieurs lignes de couleurs.....
DeathMetal change line in histgram, (click on indicator name, click on tool (
Gio56 Super merci.
KumoNoJuzza Thank you @philippe59139 !! We finally have the VAL / VAH to play with. Could you attach th...
yanntorp Merci @pilippe59139 pour le travail que vous partagez. Vos programmes sont vraiment au top.
philippe59139 Merci Yanntorp
MaoRai54 Thanks, now it's OK. in your first code at line 15-16 it's missing.
Madrosat Hello Ivan Did you try a strategy with this indicator
Iván Hi. No I didn't. This is a code translation requested by an user a few days ago.
Fgats https://www.prorealcode.com/topic/indicateur-3-sigma-documentation/ lien pour la documentat...
DELBERT Bonjour , merci pour le partage et la traduction , je vais essayer d'assimiler ce nouvelle i...
Iván
3 months ago
cjr30 Simplemente modifica las lineas 19 y 21 por las siguientes: drawtext("▲",barindex,low-0.1*a...
groelandes Gracias!!
WhyAskOZ i copied the code into strategy and it gives error on line 21 and 23. it says " Line 1: ...
Iván
3 months ago
Madrosat Hello Ivan You have interesting topics on indicators , smart supertrend, optimised trend t...
Iván Hi! thanks. All of these codes are translations requested in the forum. I've on mind to back...
Raspete01 Buenos días Iván, estoy intentando llevar el código eliminando los colores y pasando un Back...
jacquesgermain sì da aggiungere
Maik2404 auf welchen Wert muss ich die Kompresionsperiode stellen?
jacquesgermain — Période de compression : ce paramètre détermine la période de rétrospection utilisée pour ...
Iván
3 months ago
ARLEQUIN49 Hello Ivan, Would it be possible to convert the code of this QQE MOD indicator which accomp...
ARLEQUIN49 here is the code: //@version=4 //By Glaz, Modified // study("QQE MOD") RSI_Period = i...
Iván Hi, Yes I can translate it but please, create a new topic for it.
philippe59139 Bravo super travail
gidien
4 months ago
gidien Thanks for the hint. I think i know now, why this happen. The "settings" block was added by ...
LucasBest Thank you for sharing your work, both original and very disconcerting. When I went through t...
gidien Hello LucasBest, thanks for your comment. Point 1: Yes your are right. The Zigzag ve...
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...

Top