BTC智胜3号
// @version=2
// 该脚本仅作为自动化交易能力展示,不构成投资建议,请审慎进行投资,注意控制风险
// BTC 智胜3号
// 更多指标胜率实盘代码,可访问 https://www.aicoin.com/article/373215.html 获取
ws = security("win:bitcoin:ai_win_three", "", signal)
// 开多信号
lentry = ws == 0
// 平多信号
lexit = ws == 1
// 开空信号
sentry = ws == 2
// 平空信号
sexit = ws == 3
// 执行交易指令
// 合约平多 / 现货卖出
exitLong(lexit, price="market", amount=1)
// 合约平空
exitShort(sexit, price="market", amount=1)
// 合约开多 / 现货买入
enterLong(lentry, price="market", amount=1)
// 合约开空
enterShort(sentry, price="market", amount=1)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32