Download Pine Script Language Tutorial PDF

TitlePine Script Language Tutorial
TagsParameter (Computer Programming) Scope (Computer Science) Function (Mathematics) Computer Programming Physics & Mathematics
File Size2.8 MB
Total Pages70
Document Text Contents
Page 36

Please note that you cannot plot Kagi lines from Pine script exactly as they look. You can just

get a series of numbers that are somewhat OHLC values for Kagi chart and use them in your

algorithms.

For detailed reference on all 'kagi' arguments go here.

'pointfigure' function

Point and Figure (PnF) chart type only plots price movements, without taking time into

consideration. A column of X’s is plotted as the price rises — and O’s as the price drops.

Please note that you cannot plot PnF X's and O's from Pine script exactly as they look. You can

 just get a series of numbers that are somewhat OHLC values for PnF chart and use them in

your algorithms. Every column of X's or O's are represented with four numbers, you may think of

them as some imaginary OHLC PnF values. In Pine script you may request and get those

numbers and plot them on chart.

study("Example 10", overlay=true)

pnf_t = pointfigure(tickerid, "hl", "ATR", 14, 3)

pnf_open = security(pnf_t, period, open, true)

pnf_close = security(pnf_t, period, close, true)

35

Similer Documents