旧函数改写是这么改么?//多头开仓
//ENTERLONG:MJ,TFILTER;
//EXITLONG:pc,TFILTER;
//KD:=Mj AND SUM(MJ,BARSLAST(EXITLONG))=1;
//KK:=PC AND SUM(PC,BARSLAST(ENTERLONG))=1;
改成
IF MJ AND SUM(MJ,BARSLAST(BUY))=1 AND HOLDING=0 THEN
KD:BUY(HOLDING=0,SS,THISCLOSE);
IF PC AND SUM(PC,BARSLAST(BUYSHORT))=1 AND HOLDING=0 THEN
KK:BUYSHORT(HOLDING=0,SS,THISCLOSE);
IF MJ and HOLDING=0 THEN
KD:BUY(HOLDING=0,SS,THISCLOSE);
IF PC and HOLDING=0 THEN
KK:BUYSHORT(HOLDING=0,SS,THISCLOSE);
SUM(MJ,BARSLAST(EXITLONG))=1;这句是什么意思?
MJ:=CLOSE>LLV(U,NEWHBARS(U,1));
在30周期内取60根K线的高低点,画出黄金分割点位,如何写?
没有函数可以写黄金分割,用画线工具自带的黄金分割功能

此主题相关图片如下:4.png