设为首页 收藏本站 切换语言 切换语言

// 本 Mine Script® 代码受 Mozilla 公共许可证 2.0 条款约束 var tab = table.new (position=position.top_right, columns=7, ...

| 发表于 2025-8-15 13:59:07 | 显示全部楼层 |复制链接
// 本 Mine Script® 代码受 Mozilla 公共许可证 2.0 条款约束
var tab = table.new (position=position.top_right, columns=7, rows=30, frame_color=na, frame_width=1)
msg (int row, int col, string msg_str, clr=color.blue) =>
//if (barstate.islast)
table.cell (table_id=tab, column=col, row=row, text=msg_str, text_color=clr)
// 可四舍五入到最接近的 1、5、10、20……
round_up (pp, round_to=0) => round_to <= 0 ? pp : math.ceil (pp/round_to) * round_to
round_down (pp, round_to=0) => round_to <= 0 ? pp : math.floor (pp/round_to) * round_to
t(val) => str.tostring(val)
tr(val) => str.tostring(math.round(val, 2))
r(val) => math.round_to_mintick(val)
method f(float f) => str.tostring(f)
method f(int i) => str.tostring(i)
method f(bool b) => str.tostring(b)
method f(string s) => str.tostring(s)
BBC904EF2961C1A0B3ACAC49CFA9B9A3.jpg
举报

评论 使用道具

精彩评论3

峰玲
DD
| 发表于 2025-8-15 16:05:53 来自手机 | 显示全部楼层
这是什么代码?
举报

点赞 评论 使用道具

bigwin
DDD
 楼主 | 发表于 2025-8-15 16:42:35 | 显示全部楼层
Mine Script
举报

点赞 评论 使用道具

bigwin
DDD
 楼主 | 发表于 2025-8-15 16:43:50 | 显示全部楼层
峰玲 发表于 2025-8-15 16:05
这是什么代码?

tradingvue的Mine Script。  专门做量化的语言,简洁高效易上手。
举报

点赞 评论 使用道具

发新帖
EA交易
您需要登录后才可以评论 登录 | 立即注册

 简体中文国旗 简体中文
 繁體中文国旗 繁體中文
 English国旗 English(英语)
 日本語国旗 日本語(日语)
 Deutsch国旗 Deutsch(德语)
 Русский язык国旗 Русский язык(俄语)
 بالعربية国旗 بالعربية(阿拉伯语)
 Türkçe国旗 Türkçe(土耳其语)
 Português国旗 Português(葡萄牙语)
 ภาษาไทย国旗 ภาษาไทย(泰国语)
 한어国旗 한어(朝鲜语/韩语)
 Français国旗 Français(法语)
翻译