PopGun Indicator

v10.3
PopGun Indicator

Jeffrey Kennedy from Elliot Wave International shared the PopGun Bar Pattern. He meant it as a way to find impulse waves for Elliot wave  traders.

To trade the Popgun bar pattern, you must know what is an inside bar and an outside bar. (see attached screenshot)

An insidebar  is one that is completely engulfed by the bar before it. It represents a contraction in range and a pause in directional trading activity.

An outside bar is one that completely engulfs the bar before it. It shows strength in both directions. Depending on the context, it is a sign of strength or a precursor to erratic movements.

The Popgun bar pattern consists of an inside bar followed by an outside bar.

Trading Rules – Popgun Bar Pattern

Long Trading Setup

  1. An inside bar
  2. An outside bar that closed higher than it opened
  3. Buy on close of outside bar

Short Trading Setup

  1. An inside bar
  2. An outside bar that closed lower than it opened
  3. Sell on close of outside bar

(In my opinion, if you want you can also trade the just direct reversal of the second outside. Maybe take profit with first close after second outside.)

In this way you have to go long direct after a red candle and you have to go direct short on green candle. Possible to close the trade with close of reversal candle.)

until then

JohnScher

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. JohnScher • 06/25/2018 #

    It seems a little mistake has crept in.
    Here is the code in plain text.

    // PopGun Indikator
    // coded by JohnScher

    //for the graphics
    PIP = 10*pipsize
    LIN = 3

    //percentrange = Support or Resistance in Percent og the Range High-Low = 25% default
    //percentrange = 25 // default
    Support = (High-Low)*percentrange/100
    Resistance = (High-Low)*percentrange/100

    //indicator PopGun
    PG = High[2]>High[1] and Low[2]High[1] and Lowopen // greencandle = long , as rerversal short
    PGShort = PG and Close= tstart and time <= tend then

    IF PGLong Then
    rL=0
    gL=0
    bL=250
    DRAWARROWUP(barindex,LOW-PIP)coloured(rL,gL,bL)
    DRAWSEGMENT(barindex,LOW-SUPPORT,barindex+LIN, LOW-SUPPORT )coloured(rL,gL,bL)
    // to trade as reversal red candle = Long
    rL=250
    gL=0
    bL=0
    DRAWARROWDOWN(barindex,HIGH+PIP)coloured(rs,gs,bs)
    DRAWSEGMENT(barindex,High+Resistance,barindex+LIN, High+Resistance )coloured(rs,gs,bs)
    Endif

    IF PGShort then
    rS=0
    gS=0
    bS=250
    DRAWARROWDOWN(barindex,HIGH+PIP)coloured(rs,gs,bs)
    DRAWSEGMENT(barindex,High+Resistance,barindex+LIN, High+Resistance )coloured(rs,gs,bs)
    // to trade as reversal red candle = Long
    rL=250
    gL=0
    bL=0
    DRAWARROWUP(barindex,LOW-PIP)coloured(rL,gL,bL)
    DRAWSEGMENT(barindex,LOW-SUPPORT,barindex+LIN, LOW-SUPPORT )coloured(rL,gL,bL)

    ENDIF

    ENDIF
    return

    If you have any problems, please feel freee to contact me again.

  2. Carlos Garcia • 06/25/2018 #

    Doesn´t work on PRT V10.3

  3. Alai-n • 06/25/2018 #

    Hello … Error Syntax Line 14

  4. JohnScher • 06/25/2018 #
  5. JohnScher • 06/25/2018 #

    // PopGun Indikator
    // coded by JohnScher
    // without timewindow, working on prt10.3
    //for the graphics
    PIP = 10*pipsize
    LIN = 5

    //percentrange = Support or Resistance in Percent og the Range High-Low = 25% default
    //percentrange = 25 // default
    Support = (High-Low)*percentrange/100
    Resistance = (High-Low)*percentrange/100

    //indicator PopGun
    PG = High[2]>High[1] and Low[2]High[1] and Lowopen // greencandle = long , as rerversal short
    PGShort = PG and Close<Open //redcandle = short, as reversal long

    // timewindow to show the popgun
    // tstart = 080000 fefautl
    // tend = 220000

    IF PGLong Then
    rL=250
    gL=0
    bL=0
    DRAWARROWUP(barindex,LOW-PIP)coloured(rL,gL,bL)
    DRAWSEGMENT(barindex,LOW-SUPPORT,barindex-LIN, LOW-SUPPORT )coloured(rL,gL,bL)
    // to trade as reversal red candle = Long
    rL=250
    gL=0
    bL=0
    DRAWARROWDOWN(barindex,HIGH+PIP)coloured(rs,gs,bs)
    DRAWSEGMENT(barindex,High+Resistance,barindex-LIN, High+Resistance )coloured(rs,gs,bs)
    Endif

    IF PGShort then
    rS=0
    gS=0
    bS=250
    DRAWARROWDOWN(barindex,HIGH+PIP)coloured(rs,gs,bs)
    DRAWSEGMENT(barindex,High+Resistance,barindex-LIN, High+Resistance )coloured(rs,gs,bs)
    // to trade as reversal red candle = Long
    rL=250
    gL=0
    bL=0
    DRAWARROWUP(barindex,LOW-PIP)coloured(rL,gL,bL)
    DRAWSEGMENT(barindex,LOW-SUPPORT,barindex-LIN, LOW-SUPPORT )coloured(rL,gL,bL)

    ENDIF

    return

  6. Alai-n • 06/25/2018 #

    Re … Error syntax line 14 (Low [2] (<) High [1]) I guess. And how to define lowopen and pglong ???

    • JohnScher • 06/25/2018 #

      //indicator PopGun
      PG = High[2]>High[1] and Low[2]High[1] and LowHigh[1] and Low[2]High[1] and Lowopen // greencandle = long , as rerversal short
      PGShort = PG and Close<Open //redcandle = short, as reversal long

      // timewindow to show the popgun
      // tstart = 080000 fefautl
      // tend = 220000

      IF PGLong Then
      rL=250
      gL=0
      bL=0
      DRAWARROWUP(barindex,LOW-PIP)coloured(rL,gL,bL)
      DRAWSEGMENT(barindex,LOW-SUPPORT,barindex-LIN, LOW-SUPPORT )coloured(rL,gL,bL)
      // to trade as reversal red candle = Long
      rL=250
      gL=0
      bL=0
      DRAWARROWDOWN(barindex,HIGH+PIP)coloured(rs,gs,bs)
      DRAWSEGMENT(barindex,High+Resistance,barindex-LIN, High+Resistance )coloured(rs,gs,bs)
      Endif

      IF PGShort then
      rS=0
      gS=0
      bS=250
      DRAWARROWDOWN(barindex,HIGH+PIP)coloured(rs,gs,bs)
      DRAWSEGMENT(barindex,High+Resistance,barindex-LIN, High+Resistance )coloured(rs,gs,bs)
      // to trade as reversal red candle = Long
      rL=250
      gL=0
      bL=0
      DRAWARROWUP(barindex,LOW-PIP)coloured(rL,gL,bL)
      DRAWSEGMENT(barindex,LOW-SUPPORT,barindex-LIN, LOW-SUPPORT )coloured(rL,gL,bL)

      ENDIF

      return

  7. JohnScher • 06/25/2018 #

    @nicolas

    Here are some problems with the code.
    Can you put in the correct code as attached?

    // PopGun Indikator
    // coded by JohnScher

    //for the graphics
    PIP = 10*pipsize
    LIN = 5

    //percentrange = Support or Resistance in Percent og the Range High-Low = 25% default
    //percentrange = 25 // default
    Support = (High-Low)*percentrange/100
    Resistance = (High-Low)*percentrange/100

    //indicator PopGun
    PG = High[2]>High[1] and Low[2]<Low[1] and High>High[1] and Low<Low[1]

    // the second outside candle
    PGLong = PG and Close>open // greencandle = long , as rerversal short
    PGShort = PG and Close<Open //redcandle = short, as reversal long

    // timewindow to show the popgun
    // tstart = 080000 fefautl
    // tend = 220000

    IF PGLong Then
    rL=250
    gL=0
    bL=0
    DRAWARROWUP(barindex,LOW-PIP)coloured(rL,gL,bL)
    DRAWSEGMENT(barindex,LOW-SUPPORT,barindex-LIN, LOW-SUPPORT )coloured(rL,gL,bL)
    // to trade as reversal red candle = Long
    rL=250
    gL=0
    bL=0
    DRAWARROWDOWN(barindex,HIGH+PIP)coloured(rs,gs,bs)
    DRAWSEGMENT(barindex,High+Resistance,barindex-LIN, High+Resistance )coloured(rs,gs,bs)
    Endif

    IF PGShort then
    rS=0
    gS=0
    bS=250
    DRAWARROWDOWN(barindex,HIGH+PIP)coloured(rs,gs,bs)
    DRAWSEGMENT(barindex,High+Resistance,barindex-LIN, High+Resistance )coloured(rs,gs,bs)
    // to trade as reversal red candle = Long
    rL=250
    gL=0
    bL=0
    DRAWARROWUP(barindex,LOW-PIP)coloured(rL,gL,bL)
    DRAWSEGMENT(barindex,LOW-SUPPORT,barindex-LIN, LOW-SUPPORT )coloured(rL,gL,bL)

    ENDIF

    return

    • Nicolas • 06/25/2018 #

      Hi, please send it to contact[at]prorealcode.com . Many thanks.

  8. JohnScher • 06/25/2018 #

    @nicolas
    done, in this moment

  9. JohnScher • 06/25/2018 #

    After a small error crept in, a correct itf.file has been uploaded.

  10. dougie80 • 06/25/2018 #

    Great Indicator, Is there a way to use this as an alert ?

    • JohnScher • 06/25/2018 #

      I created the screener with some help here from PRT. It is surely somewhere in one of the forum posts.On the start page of the ProRealcode-website there is a search function. In the library it is not to be found.
      Helpful are the PopGuns the higher the time unit is. In stocks best daily and higher up.

avatar
Register or

Likes

avatar avatar avatar avatar
Related users ' posts
Finning Hi JuanJ, just a question about the tollerance*pointsize. I know what it is/what it does (in...
JOKAMAURICE Hi I am looking to number bars in a chart to ease analysis. Any idea if a program has been d...
goldenfish67 Hi guys just copied the code but I keep getting an error message: "Line 15 one of the fo...
avatar
Anonymous This is very useful, look forward to testing it out. Thank you very much
idunnomuch IS this working in the latest version of prorealtime? I get the indicator, but not over my c...
bernardmorel egalement apparait en dessous du graphique mais vide
bernardmorel Bonjour est t il possible de remettre en ligne the strat car il y a une indication qui d...
afanitro424 its not plotting on chart but instead as it's own histogram directly below chart? How to fix...
Nicolas by adding the indicator on the chart :)
bibifricotin Je pense avoir compris dans la première colonne exemple 92 le 9 indique la période et le 2 ...
Leo_da_Pisa It seems to work very well. Good for confirmation. Thanks for sharing Vivien.
jimkn0pf Christopher, wie saehe denn die Formel ohne Kontrollkerze (3. Kerze) aus?
bobanteo Hi Cristofer, thanks for sharing. Would it be possible to delete the confirmation candle af...
joguemon Buenas, he instalado el screener pero no me aparecen los números que indicas...tengo que mon...
enriquem Hola, No, los numeros no aparecen, Proscreener no permite rotular, Lo que devuelve el sc...
PeytoLake Hi Enriquem, How do I change the timeframe from 'Daily' to "5 min"? Thank you.
Ciccio Have a look here https://issuu.com/yesakhtar/docs/quick_reference_candlestick
Wolf I don't know why the indicator does not work for me. It gives me an error about RETURN... ...
sergibilbo Great job thanks!!!
quibe56 Bonjour, à priori les couleurs pour le Katana ne fonctionnent pas ( départ haussier ou élan...
swapping Bonjour quibe56, n'ayant pas rencontré ce défaut je continu néanmoins à structurer le code p...
Pablo Carmona del Moral hola juanjo, muchas gracias por este screener que nos has compartido. creo que lo voy a util...
Pablo Carmona del Moral para el volumen he cambiado: // Volumen significativo VS=volume>2*(average[10](volume[1...
Juanjo Muchas Gracias Pablo, ...Tengo varios screener, uno lo tengo adaptado para operar intradía, ...
RGKP Hi Vonasi, great work! But what I do not understand is that the statistics change according ...
mr_delta Hi https://www.prorealcode.com/user/vonasi/ I am interested in in scanning for a similar set...
Vonasi Minor Bug Fix Please download an updated version with a minor bug fix from here: https://www...
ckat55 Thank you Nicolas, is there any way that an alert can be set for when the dot appears?
Nicolas yes, change the last line with: RETURN wrb,qh and set an alarm with the alert tool for ea...
ckat55 Thank you Nicolas, I will try it.
Ravindra Khanna copied it to pro real time not working. what to do?
Nicolas Screeners dont plot anything on charts.
jobswaps Hola puedes agragar marcos temporales como minimo y maximo en temporalidad del triangulo par...
p3sc4d0r c3 = Average[40](close*volume) > 3000000 Hi to everyone. I need some help with this co...
GraHal Wow! Thank you Vonasi, great idea!
Vonasi No Problem GraHal. Please share anything interesting that you find using it.
Vonasi I've made a small improvement by adding a Buy and Hold line for comparison. This line can be...
Vonasi Thanks for your thanks Real Pro and yes everyone should import the itf file to make sure tha...
Pepsmile Good job, which could be applied for a spectrum of another indicators.
Pepsmile As to better understand which parameters are better for an indicators in a specific period (...

Top