커뮤니티

3.1베타 - 지표 칼라표시

프로필 이미지
높새
2007-07-23 12:07:03
1131
글번호 200324
답변완료
수고 많으십니다! 3.0 버전에서는 지표의 칼라 표시가 문제 없이 지원 되는데, 3.1 베타 버전에서는 예약어 외에는 지원 되지 않는군요. 3.0 버전 처럼 지원되었으면 함니다. -- 아래의 코드 참조 바람니다 --- Input : Period(20),prc(0),AVR(0),cols(1); var : price(0),colr(0),ma1(0),ucol(0),dcol(0); If Prc == 0 then Price = C; else if Prc == 1 then Price = (H+L+C)/3; else if prc == 2 then Price = (H+L)/2; else if prc == 3 then Price = (H+L+O+C)/4; else if prc == 4 then Price = H; else Price = L; if index() < 1 then { if cols == 0 then { Ucol = 17919; //GoldenRod,DG Dcol = 755384; } else if cols == 1 then { Ucol = 16775408; //Aliceblue,Dogerblue Dcol = 16748574; } if cols == 2 then { Ucol = 7451452; //LimeGreen,DGeen Dcol = 25600; } if cols == 3 then { Ucol = 14772545; //Blue,DBlue Dcol = 9109504; } if cols == 4 then { Ucol = 255; //Red,DRed Dcol = 139; } } if AVR == 0 then ma1 = ma(price,Period); else if AVR == 1 then ma1 = sma(price,Period); else if AVR == 2 then ma1 = ema(price,Period); else ma1 = wma(price,Period); COLR = iff(ma1>=ma1[1],ucol,dcol); //GoldenRod,DarkG Plot1(ma1, "이평",colr);
예스트레이더 (iM증권)
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2007-07-26 16:19:23

안녕하십니까.예스스탁입니다. 말씀하신 내용의 오류를 확인하였습니다. 빠른 시일내에 조치하도록 하겠습니다. 감사합니다.