开仓指令是market。
怎样设定在盈利超过开仓价X%止盈,低于X%止损呢?
if c>enterprice*(1+0.0x) then sell(1,0,marketr);
if c<enterprice*(1-0.0x) then sell(1,0,marketr);
if c>enterprice*(1+0.005) then sell(1,0,marketr);
if c<enterprice*(1-0.001) then sell(1,0,marketr);
请问,这个公式和如下图的设置是一个结果吗?区别在哪里呢??
设定计算的是什么内容呢?
利润率不就是=价差/开仓价*100%吗?