3 bar play, 4 bar play
Forums › ProRealTime English forum › ProScreener support › 3 bar play, 4 bar play
- This topic has 23 replies, 4 voices, and was last updated 3 years ago by prosign.
-
-
11/25/2020 at 9:06 AM #151486
Yes, I added a picture.
So, the stock is open up with a gap, and it takes out yesterdays high. This is very important. So this strategy only works on stocks.Then, the 3 bar play is only “used” on the first bars, so the code should not execute later.
In the picture you also se that the stoploss is set below candle 2.
One problem, is that we want to enter as soon as candle 3 takes out candle 2, i guess this is not possible, we can only enter on candle close? right?
Did this makes it more clear @robertogozzi?
11/25/2020 at 10:58 AM #151507Do not use the “@” sign unless many peiople are discussing and it’s very difficult to know what post is aimed to who.
I will study it and will let you know as soon as possible.
11/28/2020 at 12:28 PM #151998So you need a strategy, not a screener?
Moreover, I coded the indicator and screener having only the screenshot as a reference fior the 4 patterns, I did not watch the video.
Actually the guy on the video talks about the first bar (the IGNITION bar) as a wide range bar, no matter the colour as long as it breaks (with just either OPEN or CLOSE, or with HIGH?) the resistance level (which I did not check).
So, what pattern do you want to trade?
And what about resuistance/support level to be broken by those patterns, how do you want them to be detected?
07/29/2021 at 3:46 PM #174343Hi all,
The issue at the start of the thread is that the code is a literal interpretation of the picture provided, if you go back to the original video by Jerad Wesley from Live Traders he is describing a set of conditions. I have coded a indicator for the three bar play going long or short, the point is that an entry is made as soon as the current candle breaks above the pervious two candles, and it tends to go in a rush. so if you are wanting to use it as a screener you will need lightning reflexes on lower time frames. it should work fine on longer time frames. The code is for an indicator but I believe the conversion should be simple enough
Three Bar Play1234567891011121314151617Body = abs(close - open)a=0ThreeBarPlayLong = Body[2]>Body[3]And Close[2] > open[2] And close[1] < open[1]And close > open And ((High[2]-low[2]) > ((High[1]-low[1]) *2)) And High[2]>=high[1] and Low > low[2] And Close > High[1] And Close > High[2]ThreeBarPlayShort = Body[2]>Body[3]And Close[2] < open[2] And close[1] > open[1]And close < open And ((High[2]-low[2]) > ((High[1]-low[1]) *2)) And low[2]<=low[1] And High < High[2] And Close < low[1] And Close < low[2]if ThreeBarPlayLong Thena=1endifIf ThreebarPlayShort Thena=-1EndifReturn AEnjoy!
07/29/2021 at 3:59 PM #174346Oh, and while we are on the subject, if you want to put a fabulous golden arrow onto your chart just check out this code
Three Bar play gold arrow1234567891011121314151617181920// code for three bar playsBody = abs(close - open)a=0ThreeBarPlayLong = Body[2]>Body[3]And Close[2] > open[2] And close[1] < open[1]And close > open And ((High[2]-low[2]) > ((High[1]-low[1]) *2)) And High[2]>=high[1] and Low > low[2] And Close > High[1] And Close > High[2]ThreeBarPlayShort = Body[2]>Body[3]And Close[2] < open[2] And close[1] > open[1]And close < open And ((High[2]-low[2]) > ((High[1]-low[1]) *2)) And low[2]<=low[1] And High < High[2] And Close < low[1] And Close < low[2]IF ThreeBarPlayLong THENDRAWARROWUP(barindex,low-3)coloured(252, 186, 3)ENDIFIF ThreeBarPlayShort THENDRAWARROWDOWN(barindex,high+3)coloured(252, 186, 3)ENDIFReturn07/29/2021 at 4:47 PM #174349Use only the SELECT FILE button to attach files.
Embedding them in your posts will slow down the forum.
Thank you 🙂
07/29/2021 at 4:56 PM #17435007/29/2021 at 5:28 PM #174351There you go:
123456789101112131415Body = abs(close - open)a=0ThreeBarPlayLong = Body[2]>Body[3]And Close[2] > open[2] And close[1] < open[1]And close > open And ((High[2]-low[2]) > ((High[1]-low[1]) *2)) And High[2]>=high[1] and Low > low[2] And Close > High[1] And Close > High[2]ThreeBarPlayShort = Body[2]>Body[3]And Close[2] < open[2] And close[1] > open[1]And close < open And ((High[2]-low[2]) > ((High[1]-low[1]) *2)) And low[2]<=low[1] And High < High[2] And Close < low[1] And Close < low[2]if ThreeBarPlayLong Thena=1endifIf ThreebarPlayShort Thena=2EndifScreener[A](A as “1=Long,2=Short”)Screeners do not allow negative numbers, so I replaced -1 with 2.
07/29/2021 at 5:47 PM #174352 -
AuthorPosts
Find exclusive trading pro-tools on