首页 > 解决方案 > 模拟更长的时间

问题描述

美好的一天,我有一个在 1 分钟图形中运行的脚本,但是在模拟时,它只模拟一周,我如何编辑它(如果可以的话)以模拟更多时间,所以看看一个月的列表以前(例如)


strategy("Conjunto C-V", overlay=true)

lenv = input(20, minval=1, title="Tiempo StochasticV")
smoothKv = input(1, minval=1, title="SmoothK StochasticV")
smoothDv = input(1, minval=1, title="SmoothD StochasticV")
kv = sma(stoch(close, high, low, lenv), smoothKv)
dv = sma(kv, smoothDv)
//minv = input(2, minval=1, title="MinV")
maxv = input(90, minval=1, title="MaxV")

sellv = (crossover(kv, maxv))

if (sellv)
    strategy.entry("short", strategy.short, comment="short")
cierrev = input(6, minval=1, title="Min")
if (sellv[cierrev])
    strategy.close("short")

谢谢你们!

标签: datepine-script

解决方案


推荐阅读