盘中出现新的最大值和最小值品种,更换交易品种(以下是找人帮编写的程序,看图用的,但不知如何实现交易)
rb今开:=callstock('rb10',vtopen,6);
rb价差:=callstock('rb10',vtclose,datatype)-rb今开,noaxis;
rb:rb价差/rb今开*100;
fg今开:=callstock('fg09',vtopen,6);
fg价差:=callstock('fg09',vtclose,datatype)-fg今开,noaxis;
fg:fg价差/fg今开*100;
j今开:=callstock('j09',vtopen,6);
j价差:=callstock('j09',vtclose,datatype)-j今开,noaxis;
j:j价差/j今开*100;
sr今开:=callstock('srx09',vtopen,6);
sr价差:=callstock('srx09',vtclose,datatype)-sr今开,noaxis;
sr:sr价差/sr今开*100;
cu今开:=callstock('cu09',vtopen,6);
cu价差:=callstock('cu09',vtclose,datatype)-cu今开,noaxis;
cu:cu价差
rb今开:=callstock('rb10',vtopen,6);
rb价差:=callstock('rb10',vtclose,datatype)-rb今开,noaxis;
rb:rb价差/rb今开*100;
fg今开:=callstock('fg09',vtopen,6);
fg价差:=callstock('fg09',vtclose,datatype)-fg今开,noaxis;
fg:fg价差/fg今开*100;
j今开:=callstock('j09',vtopen,6);
j价差:=callstock('j09',vtclose,datatype)-j今开,noaxis;
j:j价差/j今开*100;
sr今开:=callstock('srx09',vtopen,6);
sr价差:=callstock('srx09',vtclose,datatype)-sr今开,noaxis;
sr:sr价差/sr今开*100;
cu今开:=callstock('cu09',vtopen,6);
cu价差:=callstock('cu09',vtclose,datatype)-cu今开,noaxis;
cu:cu价差/ cu今开*100;
ru今开:=callstock('ru09',vtopen,6);
ru价差:=callstock('ru09',vtclose,datatype)-ru今开,noaxis;
ru:ru价差/ru今开*100;今开*100;
ru今开:=callstock('ru09',vtopen,6);
ru价差:=callstock('ru09',vtclose,datatype)-ru今开,noaxis;
ru:ru价差/ru今开*100;