예스스탁
예스스탁 답변
2023-01-11 08:46:19
안녕하세요
예스스탁입니다.
var : ma1(0),ma2(0),ma3(0);
var : GridID(0), pst("");
ma1 = ma(C,5);
ma2 = ma(C,10);
ma3 = ma(C,20);
if ma1 > ma2 and ma2 > ma3 Then
pst = "정배";
Else if ma1 < ma2 and ma2 < ma3 Then
pst = "역배";
Else
pst = "혼조";
if LastBarOnChart == 1 Then
{
GridID = Grid_New(7,2,3,Gray, Black,1,0,0);
Grid_SetTransparency(GridID,190);
Grid_Cell(GridID,0,0,"배열",0,0,Red,Gray);
Grid_Cell(GridID,1,0,pst,0,0,Red,Gray);
}
즐거운 하루되세요
> 올독 님이 쓴 글입니다.
> 제목 : 문의 드립니다
> 안녕하세요.
궁금한것이 있어서 문의 드립니다.
Grid_Cell(GridID,0,0,"배열",0,0,Red,Gray);
Grid_Cell(GridID,1,0, ??????? ,0,0,Red,Gray);
ma5 > ma10 > ma20 일때 정배
ma5 < ma10 < ma20 일때 역배
아닐때 혼조
??????? 부분에 위 조건일때 "정배" "역배" "혼조"로 텍스트 출력할수 있을까요?
감사합니다^^