当前位置:网站首页>Common content of pine script script
Common content of pine script script
2022-06-24 03:44:00 【A fat yard makes a strong man】
1、 Set indicator name
study(" My indicators ") // Index name

2、 Draw line
plot(close, color=osc_color, style=line, linewidth=2)
Four parameters , Data in sequence 、 Color 、 type 、 Line width , I wish there were other parameters that are not commonly used , In addition to data parameters , Anything else can be omitted .
among style There are several types :
- line: curve
- histogram: Histogram
- Others need to be explored
Official explanation :
style (plot_style) Type of plot. Possible values are: plot.style_line, plot.style_stepline, plot.style_stepline_diamond, plot.style_histogram, plot.style_cross, plot.style_area, plot.style_columns, plot.style_circles, plot.style_linebr, plot.style_areabr. Default value is plot.style_line.
3、 Fill between lines
p1 = plot(open)
p2 = plot(close)
fill(p1, p2, color=color.new(color.green, 90))

There's a lot more , Continue to update later ...
3、 Parameter input
Generally speaking , We don't need to define variables , Just use it directly , As shown on the left of the following code . But variables always have an input source , That is parameter setting , Use input function .
length = input.int(9, minval=1)
length2 = input.int(2, minval=1)
length3 = input.int(3, minval=1)

边栏推荐
- Coding CD of Devops
- How to build glasses website what are the functions of glasses website construction
- ClickHouse(02)ClickHouse架构设计介绍概述与ClickHouse数据分片设计
- Supply chain system platform: two management areas
- [competition experience sharing] design of intelligent guide rod
- 内存泄漏之KOOM-Shark中的Hprof信息
- Several key tools for cloud native implementation
- 【代码随想录-动态规划】T392.判断子序列
- Typera cooperates with picgo to upload pictures to its own server with one click and obtain external links at the same time
- NLP task summary introduction and understanding
猜你喜欢

618 promotion: mobile phone brand "immortal fight", high-end market "who dominates the ups and downs"?

黑帽SEO实战搜索引擎快照劫持

内存泄漏之KOOM

Modstartcms theme introductory development tutorial

Ar 3D map technology

Koom of memory leak

618大促:手机品牌“神仙打架”,高端市场“谁主沉浮”?

Black hat SEO actual combat search engine snapshot hijacking

Sorting out of key vulnerabilities identified by CMS in the peripheral management of red team (I)

你了解TLS协议吗?
随机推荐
hprofStringCache
The medical technology giant was blackmailed and Microsoft announced 74 security vulnerabilities | global network security hotspot
The importance of the computer room to the stable operation of the server
[congratulations] rock solid! A new generation of AMD Blackstone architecture instance is launched!
4. go deep into tidb: detailed explanation of the implementation process of the implementation plan
ClickHouse Buffer
Received status code 502 from server: Bad Gateway
在pycharm中pytorch的安装
Chapter 5: key led demo case of PS bare metal and FreeRTOS case development
Prometheus PushGateway 碎碎念
Technical dry goods - how to use AI technology to accurately identify mining Trojans
What does cloud computing elasticity mean? What are its functions?
黑帽实战SEO之永不被发现的劫持
Live broadcast Reservation: cloud hosting or cloud function, how can the business do a good job in technology selection?
Cloud development RMB 1 purchase activity is in progress
Do you understand TLS protocol?
LeetCode 129. Find the sum of numbers from root node to leaf node
Create a telepresence USB drive using the DD command
LeetCode 1281. Difference of sum of bit product of integer
Grpc: how to make grpc provide restful API services?