Measuring the success of a Pop Gun pattern
Forums › ProRealTime English forum › ProScreener support › Measuring the success of a Pop Gun pattern
- This topic has 1 reply, 2 voices, and was last updated 3 years ago by robertogozzi.
Viewing 2 posts - 1 through 2 (of 2 total)
-
-
10/17/2020 at 4:27 PM #147627
Like a time ago we designed a screener for Pop Gun patterns. For the sake of simplicity here is the screener for PG Long
PG Long12345678910111213PG = High[2]>High[1] and Low[2]<Low[1] and High>High[1] and Low<Low[1]PGLong = PG and close>openx = 0IF PGLong Thenx = 1EndifSCREENER[x](x as "PG Long")and the indicator
PG final123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960// PopGun Indikator// coded by JohnScher//for the graphicsPIP = 10*pipsizeLIN = 6//percentrange = Support or Resistance in Percent og the Range High-Low = 25% default//percentrange = 25 // defaultSupport = (High-Low)*percentrange/100Resistance = (High-Low)*percentrange/100//indicator PopGunPG = High[2]>High[1] and Low[2]<Low[1] and High>High[1] and Low<Low[1]// the second outside candlePGLong = PG and Close>open // greencandle = long , as rerversal shortPGShort = PG and Close<Open //redcandle = short, as reversal long// timewindow to show the popgun// tstart = 080000 fefautl// tend = 220000//IF time >= tstart and time <= tend thenIF PGLong ThenrL=250gL=0bL=0DRAWARROWUP(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 = Longrs=0gs=0bs=250DRAWARROWDOWN(barindex,HIGH+PIP)coloured(rs,gs,bs)DRAWSEGMENT(barindex,High+Resistance,barindex+LIN, High+Resistance )coloured(rs,gs,bs)EndifIF PGShort thenrS=0gS=0bS=250DRAWARROWDOWN(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 = LongrL=250gL=0bL=0DRAWARROWUP(barindex,LOW-PIP)coloured(rL,gL,bL)DRAWSEGMENT(barindex,LOW-SUPPORT,barindex+LIN, LOW-SUPPORT )coloured(rL,gL,bL)ENDIF//ENDIFreturnTo check the result see: See at ScreenShot_a
…………….
My question is:
Does the following code1234567891011121314151617181920p = 5PG = High[p+2]>High[p+1] and Low[p+2]<Low[p+1] and High [p]>High[p+1] and Low [p]<Low[p+1]PGLong = PG and Close>opend = 0.25 // distance 0.1 0.25 0.5 0.75 ...distance = (High [p] - Low [p]) *dq = p-1c = Highest [q] (high) < (High [p] + distance)x = 0IF PGLong and c Thenx = 1EndifSCREENER[x](x as "PG")screen all (long) PopGuns of the last 5 weeks that broke out above the high of the trigger candle and exceeded 25% of the range high-low of the trigger candle?
In use of the screener PG Long5 please see at ScreenShot_b
And if not, how would it be to program correctly?
10/18/2020 at 8:28 AM #147647Lines 10-13 should read (not tested):
12distance = range *dc = (Highest[p](high[1]) + distance) < High1 user thanked author for this post.
-
AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)
Find exclusive trading pro-tools on
Similar topics: