Ideas Scripts Chart Stock Screener Forex Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators For the WEB Widgets Stock Charting Library Feature Request FAQ Help & Wiki Twitter
TradingView

CM_Price-Action-Bars-Price Patterns That Work!

24700 59
Price Action Indicator - Price Patterns That Work!
9 Minute Video Goes Into Detailed Explanation

4 Simple but Effective Price Patterns!
Yellow = Inside Bar – Breakout Patterns
Orange = Outside Bar – Breakout Patterns
Green/Red = Pin Bars
Aqua/Fuchsia = Shaved Bars

***MANY Features and Customizing Options…Detailed Overview In Video.
How To Turn Bars Patterns On And Off.
Ways To Customize.
General Thought Process of the 4 Price Action Patterns.
What Each Setting in the Inputs Tab Does.

***Special Announcement. Video Below Just Updated. Received a Special Promotion from the creator of these Price Action Bars and Many other Price Action Setups. Hedge Fund Manager and Founder of 2ndSkiesForex.com Chris Capre.

1st 10 minutes of Video is covering throughout process and how to implement the Indicators.
2nd 12 minutes covers a Special Promotion offered to TradingView members directly from Chris Capre.

Video Link Below.
http://vimeopro.com/user32804960/tradingview-indicators/video/117308294

This Version of the video will be taken down 2/01/2015 and the original video will be uploaded again.
//Created By ChrisMoody on 1-20-2014
//Credit Goes To Chris Capre from 2nd Skies Forex

study("CM_Price-Action-Bars", overlay=true)

pctP = input(66, minval=1, maxval=99, title="Percentage Input For PBars, What % The Wick Of Candle Has To Be")
pblb = input(6, minval=1, maxval=100, title="PBars Look Back Period To Define The Trend of Highs and Lows")
pctS = input(5, minval=1, maxval=99, title="Percentage Input For Shaved Bars, Percent of Range it Has To Close On The Lows or Highs")
spb = input(false, title="Show Pin Bars?")
ssb = input(false, title="Show Shaved Bars?")
sib = input(false, title="Show Inside Bars?")
sob = input(false, title="Show Outside Bars?")
sgb = input(false, title="Check Box To Turn Bars Gray?")

//PBar Percentages
pctCp = pctP * .01
pctCPO = 1 - pctCp

//Shaved Bars Percentages
pctCs = pctS * .01
pctSPO = pctCs

range = high - low

///PinBars
pBarUp() => spb and open > high - (range * pctCPO) and close > high - (range * pctCPO) and low <= lowest(pblb) ? 1 : 0
pBarDn() => spb and open < high - (range *  pctCp) and close < high-(range * pctCp) and high >= highest(pblb) ? 1 : 0

//Shaved Bars
sBarUp() => ssb and (close >= (high - (range * pctCs)))
sBarDown() => ssb and close <= (low + (range * pctCs))

//Inside Bars
insideBar() => sib and high <= high[1] and low >= low[1] ? 1 : 0
outsideBar() => sob and (high > high[1] and low < low[1]) ? 1 : 0

//PinBars
barcolor(pBarUp() ? lime : na)
barcolor(pBarDn() ? red : na)
//Shaved Bars
barcolor(sBarDown() ? fuchsia : na)
barcolor(sBarUp() ? aqua : na)
//Inside and Outside Bars
barcolor(insideBar() ? yellow : na )
barcolor(outsideBar() ? orange : na )

barcolor(sgb and close ? gray : na)
Nice !
Reply
Great candlestick identifiers. No guess work involved.
Reply
Great one Chris thanks
Reply
I like these bars when they are combined with larger than average volume, would you be able to add a volume filter ?
Reply
TASAVANT
I can add a volume filter to anything...however...I posted this for any of Chris Capre's Students to have...and he trades Forex so we can't reference Forex Volume...
Reply
thanks Chris
Reply
Thanks Chris: Very Helpful!

Where can I find an explanation of empty brackets ( ) That you utilized throughout this indicator's code?

Thanks, Michael
Reply
StockSwinger
Oh...I didn't understand the question in the PM you sent me....

If your referring to the brackets under PinBars, Shaved Bars etc...if you want to do a highlight bar...you could skip that step and put the code in the barcolor plot statement....OR you can write out the statement and then just put the name followed by the open/Close Parenthesis in the barcolor plot statement.

It's useful for creating True/False conditions...b/c in the barcolor plot the question mark is followed by the color you want to use. So to highlight only 1 bar based on a TrueFalse Condition...that's the way I do it anyways.

Also note the Open/Close Parenthesis after the name are followed by the Equals sign and Greater than sign...

Let me know if that is not what you meant...or if I didn't answer it clearly
Reply
ChrisMoody
Note...the last barcolor plot is turning ALL the bars Gray..so in that situation I didn't need to use the method mentioned above.
Reply
ChrisMoody
it is similar in concept to writing a function and then calling that function.
Reply
ChrisMoody
As always Chris, I am grateful for your assistance - Michael....... You too BallsOut ;√)
Reply
StockSwinger
No Problem...Great Question..will make sure I show this example in PineScript video Tutorials I'm recording...
Reply
Hey ChrisMoody, I just wanted to say that the video that you posted about the CHF big move and how it affected you, really opened up my eyes and has completely changed my perspective of the FX market. I really appreciate you for posting your experience with such an unexpected move. I certainly have learned a lot from this and I hope other traders did too. I wish you the very BEST and thank you once again for sharing the video. Good Luck to You!!
Reply
moneymaking
Any time...
Reply
Thank you, will exercise it definitely.
Reply
You are on a roll - and love it when you include the video. Looking for that 2nd video on the pivot levels and how you used them for several years! I am thinking these would go well with those.
Reply
Alphaoptions
Thanks...and the videos on Pivots are coming well...should be done soon...Possibly today.
Reply
Hey Guys...

Just got a email from Chris Capre....I'm going to update the video with a special announcement from Chris. It will take sever hours from when this post hits...

I WILL POST BELOW AFTER VIDEO IS UPDATED.
Reply
***Special Announcement. Video Below Just Updated. Received a Special Promotion from the creator of these Price Action Bars and Many other Price Action Setups. Hedge Fund Manager and Founder of 2ndSkiesForex.com Chris Capre.

1st 10 minutes of Video is covering throughout process and how to implement the Indicators.
2nd 12 minutes covers a Special Promotion offered to TradingView members directly from Chris Capre.

Video Link Below.
http://vimeopro.com/user32804960/tradingview-indicators/video/117308294

This Version of the video will be taken down 2/01/2015 and the original video will be uploaded again.
Reply
ChrisMoody
Guys,

Check out the video above. The first 10 minutes goes into a little more depth of the use of the indicators. The last 12 minutes goes into depth on a fantastic offer Chris Capre made to TradingView members.

PLUS...I had one big favor to ask...In the end of the video I listed Chris Capres email address, Send Chris and email telling him how we would LOVE to have him on TradingView' Live Webinar. Chris Gives Fantastic Information!!!
Reply
Hi Chris, I just signed up to the site today. Being completely new to trading I have been reading up on Binary Options on the MT4 platform. Precisely BO for currencies.
Reading up on the comments by our fellow traders it seems you are god-send :). I have just a few teething questions if you may... these may already be asked and answered by you. I have yet to test the waters.

what charting software can I use with the VIX FIX script
how do I attach this script or any other script to a chart

Can the scripts be ported to MT4.

Many thanks and kudos to the great work you are doing!
Reply
Chris, Please interpret what this line is saying: pBarUp() => spb and open > high - (range * pctCPO) and close > high - (range * pctCPO) and low <= lowest(pblb) ? 1 : 0 (New to this stuff)
Thanks.
Reply
rmwaddelljr
@rmwaddelljr, The spb and open... at beginning refers to the code in the inputs section:
spb = input(false, title="Show Pin Bars?")
So if the checkbox is checked it will show pin bar...the false after input means the box is un checked by default.

In English:
pBarUp() => is plot statement to show a Highlight bar.
spb and open > high...etc the spb as described above lets you turn the paint bar on and off.

The rest is just the conditions...gets a little technical to explain but it's saying what the bar has to do ( or how it has to form) and then it references the percent of the range created in the definitions right under the inputs section.

The ? 1 : 0 ... at the end if the entire condition is true (including turning on the show Bars then it will plot...else it won't.
Reply
GRACIAS
Reply
I like this price action Filter. Is it possible to change it somehow so the the bullish outside bar has a different color than the bearish outside bar. I'm a very bad programmer and have no clou how to add this. Would be very nice. Thanks for the filter anyway.
Reply
michel1
It's easy...No coding required. All you have to do is put the indicator on the chart. Then right by the name click on the little gear wheel and go to the Styles Tab. Adjust however you want...and TradingView will remember your preference so the next time you put the indicator on a chart..it will look the same way you had it last time.
Reply
Hi
How can i get this indicator?
Reply
KavneetSingh
When you look at the chart you see the name of the indicator. All you have to do is go to indicators at the top of the screen on your chart...then in the top left box type in the name of the indicator that is on the screen. Then you will see it in the Public Library.

Try that out...there are additional ways. But here is the link,

Reply
ChrisMoody
Also at the top of the page...under the chart...where you see the code...in the top right Click On Add To Favorite Scripts. Then it will be in your Favorites Section under the indicators Tab. That's the easiest way.
Reply
is it working for amibroker
Reply
hello, how do you have the indicator for mt4?
Reply
EmanueleSmoothDePascale
Respectfully...We only support TradingView here. Hope you understand. Although the code is open sourced...so it would be a easy conversion.
Reply
Hi ChirsMoody, great work. Does this indicator repaint?
Reply
franciskim
If you look at the code....it has to meet a specific criteria. So it can repaint Intra-Bar ( The Current Bar It's On ). But once the Bar Closes IT WILL NEVER REPAINT IN HINDSIGHT!!! I would never code an indicator or Strategy that would do that. You would be surprised at how many "Top Educators" code indicators that do this and they look great in hindsight...But it's misleading and flat out unethical in my opinion.
Reply
Nice, thanks.

what do you think of this EMA6 strategy;
https://www.youtube.com/watch?v=1xi-8ggs1o0

Can you put it into a script?

Reply
Peter73
Peter,

Thanks for the question. Unfortunately....and I'm honored by this...But I get so many requests I can't answer them all.

What I am interested in doing is speaking to the Founders of TradingView and offering to do Free Webinars for people who want to learn how to code. That way I can help Every One Who Wants Help..at the Same Time.

If you think this is something you would be interested in...Or anyone else...Let me know...Just respond below.
Reply
ChrisMoody
ok thxs
Reply
ChrisMoody
sounds great! i would be interested
Reply
WarrenHartigan
Thanks Warren...I believe we will do something at some point. I like dealing with Traders who want to learn. As mentioned above...I'm Honored...but I receive so many PM's I can't return them all. The only option for me to really contribute is to do Webinars. I'm happy to do Free ones for the community. I'm sure we can get something going that would benefit a lot of traders....
Reply
ChrisMoody
Hey Chris!

I know this is a little old, but I would love to be part of your Webinars to learn how to code. That would be so awesome and such a great idea! I use your scripts all the time, and would love to learn from someone who is as experienced as you. Let me know if this ever happens, and I'll sign up immediately.

Thank You,
Thomas
Reply
ChrisMoody
I also would be interested Chris.
Reply
Amazing, thank u thank u thank u!!!!!
Reply
Chris; This video has a great source of information as someone can learn by purchasing what is needed or keep going to all of the classes. Thanks a lot.
Reply
Sir Really good work i like it the moost but I am facing an issue that when I compile it .It is give unidentified bugs
Reply
can u tell me that where to paste it PLease
Reply
Hi Chris, Great work. I wanted to ask is it possible to add some code to the script to show a Pin Bar when the condition of "Open and Close within the previous candle" has been met.
Thankyou.
Reply
when i add this to my chart it doesnt do anything. nothing has changed. what have i done wrong
Reply
liamtwine
By default is disabled you have to enable it in the settings. Watch the video link given above is very helpfull. Good luck.
Reply
liamtwine
it is need to change setting
Reply
Hi everybody! I've been struggling to make the Pin Bar alert work, have this until now but it's not working:

//PinBars
barcolor(pBarUp() ? lime : na)
barcolor(pBarDn() ? red : na)

Barup() => spb and open > high - (range * pctCPO) and close > high - (range * pctCPO) and low <= lowest(pblb) ? 1 : 0
Bardown() => spb and open < high - (range * pctCp) and close < high-(range * pctCp) and high >= highest(pblb) ? 1 : 0

condH = Barup() and Bardown() ? 1 : 0

alertcondition(condH ,title="Pin Bar",message="Pin Bar Alert")

Hope anyone of you could help me change or add something to make it work.

Thanks to ChrisMoody.
Reply
I am in TradingView, added Price Action Indicator, the "Check Box To Turn Bars Gray" does not turn the bars gray. Out of the others, only the "Show Pin Bars" colors these candles green. None others work... Any suggestions?

Reply
vhilford
@vhilford,

Don't know what to say. Chart below...PBars Work, Shaved Bars Work, Inside and Outside bars work...turning bars gray works...

Reply
vhilford
@vhilford

Having the same problem. New to Trading View so it could be due to my unfamiliarity with everything. Have you found a solution?
Reply
jascom
@jascom, same here. graying dont working. it looks like it trying to paint over the candle with gray mixing color
Reply
Why are my pinbars at the bottom hardly ever green, but in the video they are?
Reply
JENPO1975
@JENPO1975, I mean they are never green indicating a reversal, or red at the top of an uptrend to indicate a possible reversal. I am specifically referring to the indicator, because it is claiming to do this.
Reply
JENPO1975
@JENPO1975,

In the video I stated This setup came from Chris Capre but BY Default I wasn't using the same settings he uses....that is taught in his course.

The setup is great for 2 things.

1. Finding market Tops and Bottoms...This takes a skill set of being able to analyze the market....with the Bars confirming the analysis...
2. It's a great reversion to the mean setup as shown in the chart below...but you need a filter.

I plotted on the chart the same moving average that Chris Capre uses. All Green Bars Below the moving avg resulted i a move back to the moving avg. All red Bars Above the Moving Avg resulted in price moving back down to the moving avg.

Different symbols on different timeframes trade differently. I just picked the same exact symbol on the same exact timeframe I posted 2 years ago...Looks decent to me.

Reply
Hi @ChrisMoody ,

I have added this to my Favorite and applied it but im not seeing any changes. Could you please help me on the same
Reply
VidhyapathyNatarajan
Hi Chirs,

I just watched video and updated setting . thanks for your wonderful script
Reply
Ideas Scripts Chart
United States
United Kingdom
India
España
France
Italia
Polska
Brasil
Россия
Türkiye
Indonesia

한국
Home Stock Screener Forex Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators For the WEB Widgets Stock Charting Library Priority Support Feature Request Blog & News FAQ Help & Wiki Twitter