当前位置:网站首页>TradingView_学习笔记

TradingView_学习笔记

2022-08-10 16:34:00 4change

TradingView教学系统班,了解TradingView,熟悉PINE编程

Pine 脚本语言

实例1:收盘价绘制成线

// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
//  gm4gxf

//@version=5
indicator("我的脚本", overlay=true)
plot(close)

实例2:变色均线

// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
//  gm4gxf

//@version=5
indicator("我的脚本", overlay=true)

// technical analysis 技术分析
ma7 = ta.sma(close, 7)  // Simple Moving Average

_color = if ma7 > ma7[1]
    color.green
else
    color.red

plot(ma7, color=_color, linewidth=2)
原网站

版权声明
本文为[4change]所创,转载请带上原文链接,感谢
https://blog.csdn.net/CSDN_FlyYoung/article/details/126225387