vline() Function for Pine Script v4.0+It's been a long time coming, but here is a versatile vline() function applicable to PSv4.0+ utilizing line.new(). I decided to finally figure this out at the request of another member recently. I have been waiting myself for months, but it's now time for an idea who's time has come to unleash upon planet Pine Script. It's a handy little function I believe will be very useful in the future. It only requires 4 parameters of BarIndex, Color, LineStyle, and LineWidth. Make sure you place it in an appropriate if() block to use it properly. As displayed above, this plots every 10 bars using a conditional statement employing the rarely used modulus operator.
Use it as you please, this is free code to implement into your new Pine projects. I don't require an credit for any one to use this function. I simply don't want any credit. I would however like to see some great ideas utilizing this when I randomly and accidentally come across them in the public library. I didn't know where to put this script, so I just tossed into the "Trend Analysis" category. I'm pondering we members need a "Miscellaneous" category some time in the future.
The comments section below is solely just for commenting and other remarks, ideas, compliments, etc... regarding only this indicator, not others. If you do have any questions or comments regarding this indicator, I will consider your inquiries, thoughts, and concepts presented below in the comments section, when time provides it. When my indicators achieve more prevalent use by TV members, I will implement more ideas when they present themselves as worthy additions. As always, "Like" it if you simply just like it with a proper thumbs up, and also return to my scripts list occasionally for additional postings. Have a profitable future everyone!
Cari dalam skrip untuk "bar"
Current Price Bar LabelA simple Indicator to display the current price of the asset above the current bar. It shows a green label if the close is equal or greater than the open, red otherwise.
Differential Price Counter for Bullish/Bearish BarsThis script can show the cumulative differential price of both bullish/bearish bars with the 0.1pip precision for the currencies having five decimal precision. However, can be useful for all markets.
Inside BarsMark Inside Bars with a triangle above the calendar. This indicator supports having different colors and alerts for 1, 2 or 3 consecutive inside bars.
Color Bars VolumeThe bars are colored exclusively according to volume average:
Ultra high Volume = Volume > Mean Volume * 3.5;
Very high Volume = Volume > (Mean Volume * 2.5) and Volume <= (Mean Volume * 3.5);
High Volume = Volume > (Mean Volume * 1.5) and Volume <= (Mean Volume *2.5);
Medium Volume = Volume > (Mean Volume * 0.5) and volume <= (Mean Volume *1.5);
Low Volume = (Volume > (Mean Volume * 0.5).
candle barsI am trying to count volumes over a period of time. So that turned out awkwardly.
Why is it, I do not understand. I did not see anything special about this topic. If someone digs on this topic, I ask for links. Why publish, well, if I take something from the community, I have to return something). Russian himself, so google translation. With zeros do not know on input. By default I enter numbers of candles, like draws
Trend bars with SMA trend linejust changing the colour of the candles based on a SMA trendline
Basic changes made to Chris Moody's trend bars setup
Third attempt by me to do this.
C Volume BarsOk do not take this one as serious as I made it as a joke .Its a volume bar that give you such great results and you can call it with fancy names and even hide the code . as there is no signals no one will pay attention that its repaint . And folks can even pay you money for it as its look so good. I even give you the script to show you how generous I am :)
its even better then the fancy name one as it actually give you time frames to choose from.
but on the other hand who said that repainting is bad?
mine look better:)))
5 Consecutive bars up and down pattern This indicator mark the reversal bar after 5 or more consecutive bars.
Color Bars (SMA = HILO)A simple bar color indicator (red green, you can change), which shows when a candle is above or bellow an sma envelop of highs and lows (4, 8 etc, you can set the periods). It is meant to be a sort of "visual alarm" that can be used together with HILO Activator, to trigger trades or to see trends.
Margin Changes Per BarBased on
Made a few changes to better show why price might be going up or down.
Increase in longs (lime) and decrease in shorts (teal) are added up and plotted above 0
Increase in shorts (red) and decrease in longs (gray) are added up and plotted below 0
Percent change bar chart Backtest This histogram displays price or % change from previous bar.
You can change long to short in the Input Settings
WARNING:
- For purpose educate only
- This script to change bars colors.
Percent change bar chart Strategy This histogram displays price or % change from previous bar.
WARNING:
- This script to change bars colors.
Super Gupper Bar I modified the script of Madrid ,to make a super guppy, the interpretation is the same except that here the super guppy is in linear format. You can still see the pullback and the bullish and bearish trends as with a super guppy! The EMA 200 is placed just above the EMA 70, otherwise it was a big empty space between the last 2 EMA!
You can chose between EMA or MA
1. Red : A downtrend in progress
2. Green: Trend reversal warning
3. Lime : An uptrend in progress
4. Maroon: Trend reversal warning
www.tradingview.com
Ichimoku on closing price without current bar @bhutanoThis is the "Ichimoku" rivisited.
The current bar is not considerated on the plotting (so less chance to confusion) and the averages are calculated on the closing prices. It seems to be more precise then the original one.
Leave me a comment please based on your experience