//@version=4
strategy(title="Trend Trailing" , overay=false, calc_on_every_tick=true, default_qty_value=3, precision=4, initial_capital=17000, default_qty_type=strategy.fixed, default_qty_value=1)
EntryLine = ((close[2] + close[1] + close)/3)-((close[2]+close[1])/2)*100/ close[2]
LongLine= 0.05
if (crossover(EntryLine,LongLine))
strategy.entry(id="EL", long=true, qty=1)
strategy.exit(id="OL", from_entry="EL", qty=1, trail_points=0.3)
这个脚本有什么问题? 我是 pine 脚本的新手..
答案 0 :(得分:0)
您在参数 overlay
中有一个拼写错误。