以下是副图可调百分比坐标
C/C++ Code复制内容到剪贴板
- 参数取值意义:
- 沪指=1;深指=2;
- 高点天数:确定所选顶点;低点天数:确定所选低点;
- CC:=IF(沪深=1{1,2,1},(“999999$C”),(“399001$C”));
- HH:=IF(沪深=1,(“999999$H”),(“399001$H”));
- LL:=IF(沪深=1,(“999999$L”),(“399001$L”));
- OO:=IF(沪深=1,(“999999$O”),(“399001$O”));
- STICKLINE(OO>=CC,HH,LL,0,0),COLORCYAN;
- STICKLINE(OO<=CC,HH,LL,0,0),COLOR0000FF;
- STICKLINE(OO>=CC,OO,CC,3,0),COLORCYAN;
- STICKLINE(OO<=CC,OO,CC,3,1),COLOR0000FF;
- HV:=HHV(HH,高点天数{1,2000,30}); LV:=LLV(LL,低点天数{1,2000,20});
- {高}天线:=CONST(HHV(HH,高点天数));
- {低}地线:=CONST(LLV(LL,低点天数));
- 上涨点:=BARSSINCE(BACKSET(ISLASTBAR,BARSLAST(LL=LV)+1));
- 下跌点:=BARSSINCE(BACKSET(ISLASTBAR,BARSLAST(HH=HV)+1));
- 高点:=天线; 低点:=地线;
- H1:=高点-(高点-低点)*0.1; H2:=高点-(高点-低点)*0.2;
- H3:=高点-(高点-低点)*0.3; H4:=高点-(高点-低点)*0.4;
- H5:=高点-(高点-低点)*0.5; H6:=高点-(高点-低点)*0.6; H7:=高点-(高点-低点)*0.7;
- H8:=高点-(高点-低点)*0.8; H9:=高点-(高点-低点)*0.9;
- DRAWTEXT(下跌点=0,高点,’高’),COLORRED;
- DRAWTEXT(下跌点=0,H1,’90%’),COLORYELLOW;
- DRAWTEXT(下跌点=0,H2,’80%’),COLORYELLOW;
- DRAWTEXT(下跌点=0,H3,’70%’),COLORYELLOW;
- DRAWTEXT(下跌点=0,H4,’60%’),COLORYELLOW;
- DRAWTEXT(下跌点=0,H5,’50%’),COLORYELLOW;
- DRAWTEXT(下跌点=0,H6,’40%’),COLORYELLOW;
- DRAWTEXT(下跌点=0,H7,’30%’),COLORYELLOW;
- DRAWTEXT(下跌点=0,H8,’20%’),COLORYELLOW;
- DRAWTEXT(下跌点=0,H9,’10%’),COLORYELLOW;
- DRAWTEXT(下跌点=0,低点,’低’),COLORRED;
- DRAWTEXT(上涨点=0,高点,’高’),COLORRED;
- DRAWTEXT(上涨点=0,H1,’90%’),COLORCYAN;
- DRAWTEXT(上涨点=0,H2,’80%’),COLORGRAY;
- DRAWTEXT(上涨点=0,H3,’70%’),COLORYELLOW;
- DRAWTEXT(上涨点=0,H4,’60%’),COLORLIRED;
- DRAWTEXT(上涨点=0,H5,’50%’),COLORMAGENTA;
- DRAWTEXT(上涨点=0,H6,’40%’),COLORRED;
- DRAWTEXT(上涨点=0,H7,’30%’),COLORCYAN;
- DRAWTEXT(上涨点=0,H8,’20%’),COLORGRAY;
- DRAWTEXT(上涨点=0,H9,’10%’),COLORYELLOW;
- DRAWTEXT(上涨点=0,低点,’低’),COLORRED;
- EMA(CC,5);
C/C++ Code复制内容到剪贴板
- 有选择输出坐标
- 参数取值意义:
- 沪指=1;深指=2;
- 高点天数:确定所选顶点;低点天数:确定所选低点;
- 选:选择输出坐标;
- CC:=IF(沪深=1{1,2,1},(“999999$C”),(“399001$C”));
- HH:=IF(沪深=1,(“999999$H”),(“399001$H”));
- LL:=IF(沪深=1,(“999999$L”),(“399001$L”));
- OO:=IF(沪深=1,(“999999$O”),(“399001$O”));
- STICKLINE(OO>=CC,HH,LL,0,0),COLORCYAN;
- STICKLINE(OO<=CC,HH,LL,0,0),COLOR0000FF;
- STICKLINE(OO>=CC,OO,CC,3,0),COLORCYAN;
- STICKLINE(OO<=CC,OO,CC,3,1),COLOR0000FF;
- HV:=HHV(HH,高点天数{1,2000,30}); LV:=LLV(LL,低点天数{1,2000,20});
- {高}天线:=CONST(HHV(HH,高点天数));
- {低}地线:=CONST(LLV(LL,低点天数));
- 上涨点:=BARSSINCE(BACKSET(ISLASTBAR,BARSLAST(LL=LV)+1));
- 下跌点:=BARSSINCE(BACKSET(ISLASTBAR,BARSLAST(HH=HV)+1));
- 高点:=天线; 低点:=地线;
- H1:=高点-(高点-低点)*0.1; H2:=高点-(高点-低点)*0.2;
- H3:=高点-(高点-低点)*0.3; H4:=高点-(高点-低点)*0.4;
- H5:=高点-(高点-低点)*0.5; H6:=高点-(高点-低点)*0.6; H7:=高点-(高点-低点)*0.7;
- H8:=高点-(高点-低点)*0.8; H9:=高点-(高点-低点)*0.9;
- DRAWTEXT(选=1{1,2,1}&&下跌点=0,高点,’高’),COLORRED;
- DRAWTEXT(选=1&&下跌点=0,H1,’90%’),COLORYELLOW;
- DRAWTEXT(选=1&&下跌点=0,H2,’80%’),COLORYELLOW;
- DRAWTEXT(选=1&&下跌点=0,H3,’70%’),COLORYELLOW;
- DRAWTEXT(选=1&&下跌点=0,H4,’60%’),COLORYELLOW;
- DRAWTEXT(选=1&&下跌点=0,H5,’50%’),COLORYELLOW;
- DRAWTEXT(选=1&&下跌点=0,H6,’40%’),COLORYELLOW;
- DRAWTEXT(选=1&&下跌点=0,H7,’30%’),COLORYELLOW;
- DRAWTEXT(选=1&&下跌点=0,H8,’20%’),COLORYELLOW;
- DRAWTEXT(选=1&&下跌点=0,H9,’10%’),COLORYELLOW;
- DRAWTEXT(选=1&&下跌点=0,低点,’低’),COLORRED;
- DRAWTEXT(选=2&&上涨点=0,高点,’高’),COLORRED;
- DRAWTEXT(选=2&&上涨点=0,H1,’90%’),COLORCYAN;
- DRAWTEXT(选=2&&上涨点=0,H2,’80%’),COLORGRAY;
- DRAWTEXT(选=2&&上涨点=0,H3,’70%’),COLORYELLOW;
- DRAWTEXT(选=2&&上涨点=0,H4,’60%’),COLORLIRED;
- DRAWTEXT(选=2&&上涨点=0,H5,’50%’),COLORMAGENTA;
- DRAWTEXT(选=2&&上涨点=0,H6,’40%’),COLORRED;
- DRAWTEXT(选=2&&上涨点=0,H7,’30%’),COLORCYAN;
- DRAWTEXT(选=2&&上涨点=0,H8,’20%’),COLORGRAY;
- DRAWTEXT(选=2&&上涨点=0,H9,’10%’),COLORYELLOW;
- DRAWTEXT(选=2&&上涨点=0,低点,’低’),COLORRED;
- EMA(CC,5);
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
评论(0)