Tradingview Pine Code Course Description
TradingView is one of the most well-known online charting platforms across the globe. This document aims to provide information that will be useful for newcomers to the Pine Script programming language. Pine Script is the programming language used on the TradingView charting platform.
Pine is a specialized language used to write scripts that can take two very different forms:
studies (a.k.a. indicators, as we will name them) or backtesting strategies. Indicators are
used to show graphic information on a chart or in an indicator Pane. If you wish to write a
MACD indicator in Pine, you do that by creating a script using the Indicator() declaration
statement at the beginning of the script. Strategies use the strategy() declaration statement
and can display visual information on charts or in panes in the same way an indicator would, but they also contain additional Pine statements to simulate trades in order to run backtests.
If you want to design a trading system that trades on MACD setups, you may write a strategy to test it,
and then convert it to an indicator to generate alerts in order to discretionary trade on them, or send
them to a third-party execution bot for relaying orders to markets. Be sure to look at the PineCoders
Backtesting and Trading Engine if this is your objective.
Because it is specialized, Pine is very powerful. You can write two lines of Pine to do what could take hundreds in other languages. The same specialization that makes Pine powerful also implies a high abstraction level; until you understand a few key concepts about Pine and its runtime environment, it will be difficult to make sense of Pine code.
We,Occtans Gives you standard format to include all indicator like RSI,MACD,EMA,Bollinger Band ,Supertrend,ADx etc.. also define profit, loss & Trailing stop loss point and include all broker. As per your logic you can develop your own indicators and strategies with Occtans Trading Service