Ma20:=MA(close,20);
maind20:=MA(indexc,20);
大盘强弱:=(INDEXC-MAind20)/MAind20;
个股强弱:(close-MA20)/MA20,colorred,linethick3;
STICKLINE(大盘强弱>0 ,0,大盘强弱 ,8,00),colorgreen,linethick2;
STICKLINE(大盘强弱<0 ,0,大盘强弱 ,8,00),colorffff00,linethick2;
{
选股公式:
Ma20:=MA(close,20);
maind20:=MA(indexc,20);
大盘强弱:=(INDEXC-MAind20)/MAind20;
个股强弱:=(close-MA20)/MA20;
个股强于大盘:个股强弱>0 and 个股强弱>大盘强弱;
}