lotst:Asset*risk*0.001/(n*2*multiplier),linethick0;
SS:=if(risk=0,1,INTPART(lotst)); //
请问实盘时ASSET读取的是实际账户的资金还是软件上设定的资金? 这里应该用ASSET还是TACCOUNT( 6) ?
谢谢!
老师好!按照这两句后面的两个参数应该怎么修改成为最新价和收盘价, context.long_period = 20//收盘价
context.short_period = 5 //最新价
#获取交易品种价格
close = history_bars(context.s1, context.long_period+1, 'self', 'close',True)