아래 시스템식을 시스템신호대신 삼각표시 지표로 부탁드립니다
감사합니다
var : cnt(0),Bcnt(0),Scnt(0);
Bcnt = 0;
Scnt = 0;
for cnt = 0 to 20{
if sdate == EntryDate(cnt) and MarketPosition(cnt) == 1 then
Bcnt = Bcnt+1;
if sdate == EntryDate(cnt) and MarketPosition(cnt) == -1 then
Scnt = Scnt+1;
}
if MarketPosition <= 0 and Bcnt < 1 Then
buy("b",atlimit,daylow-1);
if MarketPosition >= 0 and Scnt < 1 Then
sell("s",atlimit,DayHigh+1);
답변 1
예스스탁
예스스탁 답변
2020-11-16 13:30:35
안녕하세요
예스스탁입니다.
var : cnt(0),Bcnt(0),Scnt(0),T(0),tx(0);
if Bdate != Bdate[1] Then
{
Bcnt = 0;
Scnt = 0;
}
if T <= 0 and Bcnt < 1 and L <= DayLow(0)[1]-1 Then
{
T = 1;
Bcnt = Bcnt+1;
tx = Text_New(sDate,sTime,L,"▲");
Text_SetStyle(tx,2,0);
Text_SetColor(tx,RED);
}
if T >= 0 and Scnt < 1 and H >= DayHigh(0)[1]+1 Then
{
T = -1;
Scnt = Scnt+1;
tx = Text_New(sDate,sTime,L,"▼");
Text_SetStyle(tx,2,1);
Text_SetColor(tx,BLUE);
}
즐거운 하루되세요
> gopang 님이 쓴 글입니다.
> 제목 : 문의 드립니다
> 아래 시스템식을 시스템신호대신 삼각표시 지표로 부탁드립니다
감사합니다
var : cnt(0),Bcnt(0),Scnt(0);
Bcnt = 0;
Scnt = 0;
for cnt = 0 to 20{
if sdate == EntryDate(cnt) and MarketPosition(cnt) == 1 then
Bcnt = Bcnt+1;
if sdate == EntryDate(cnt) and MarketPosition(cnt) == -1 then
Scnt = Scnt+1;
}
if MarketPosition <= 0 and Bcnt < 1 Then
buy("b",atlimit,daylow-1);
if MarketPosition >= 0 and Scnt < 1 Then
sell("s",atlimit,DayHigh+1);