Pine Script Chart ViewerDisplay your custom charts exported from anywhere in TradingView.
Put your candles on candles :
var Candle candles = array.from(...)
For instance:
var Candle candles = array.from(Candle.new(2.0, 4.0, 1.0, 3.0), Candle.new(3.0, 5.0, 2.0, 4.0))
Candle details:
Candle.new(open_1, high_1, low_1, close_1)
View
TRADING VIEW INDICATOR - PINE TUTORIAL 5After a long gap, I have written the 5th tutorial for the pine script. You can find the others below, if you read through all of these you should be good to do your own writing.
This script mimics the Trading View Indicator . For example this one below.
www.tradingview.com
It shows the net result of the 28 indicator, either as buy or sell. I have worked hard to make sure it matches the trading view results but I am not in hundred percent agreement with tradingView on SMA, EMA and Ichimoku indicator.
There are many commented plots because I needed to check separately if each indicator is working correctly.
Someone else wrote this code but they did not make it public. It took me about 3 weeks to write this and to be honest it could be cleaner and better commented.
If you find any mistake please let me know. I hope it will be useful in your learning.
AutoView - Hodl to SodlWrite your own strategy and use Hodl to Sodl to send Alerts for when to buy & sell, and automatically plot your anticipated buys/sells to the chart. A must have for AutoView users. Requires Pine Script coding. Not compatible with "Strategy Tester" tab and "Paper Trading" tab in TradingView.
Hodl-Sodl itself is not a strategy. It is a framework for building AutoView strategies. For demonstration purposes, the image featured with this script shows an example of a very simple CCI strategy (and not a very good one), but you would presumably replace that with your own ideas. If you'd like a little help plugging in your own strategy, contact jdhadwin for custom coding.