답변완료
문의
data2 외국인 선물 순매수금액
data3 외군인 KP 순매수금액
data4 기관 KP 순매수금액
var:GridID(0);
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,Black,Yellow);
Grid_Cell(GridID,0,1,"외인현물",0,0,Black,Yellow);
Grid_Cell(GridID,0,2,"기관현물",0,0,Black,Yellow);
Grid_Cell(GridID,1,0,NumToStr(data2(C),0),0,0,Black,Yellow);
Grid_Cell(GridID,1,1,NumToStr(data3(C),0),0,0,Black,Yellow);
Grid_Cell(GridID,1,2,NumToStr(data4(C),0),0,0,Black,Yellow);
}
여기서 개인현물을 추가로 표현 하는법 부탁드립니다
2022-12-22
1199
글번호 164801
지표
답변완료
문의 드립니다.
1.
input : StartTime(200000),EndTime(50000);
var : Tcond(false);
IF Endtime > starttime Then
SetStopEndofday(Endtime);
Else
{
if sDate != sDate[1] Then
SetStopEndofday(Endtime);
}
if (sdate != sdate[1] and stime >= EndTime) or
(sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then
Tcond = False;
if (sdate != sdate[1] and stime >= StartTime) or
(sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then
{
Tcond = true;
IF Endtime <= starttime Then
{
SetStopEndofday(0);
}
}
Inputs: VtyPercent(0.05),ATRperiod(5);
If MarketPosition() <> 1 Then
Buy ("Vty_LE", AtStop, Close + (VtyPercent * ATR(ATRperiod)));
If MarketPosition() <> -1 Then
Sell ("Vty_SE)", AtStop, Close - (VtyPercent * ATR(ATRperiod)));
If MarketPosition() == 1 Then
Buy ("Vty_LE1", AtStop, Close + (VtyPercent * ATR(ATRperiod)));
If MarketPosition() == -1 Then
Sell ("Vty_SE1)", AtStop, Close - (VtyPercent * ATR(ATRperiod)));
if MarketPosition == 1 Then
Sell("bs",AtStop,EntryPrice-PriceScale*0);
if MarketPosition == -1 Then
Buy("sb",AtStop,EntryPrice+PriceScale*0);
2.
input:length(5),a틱(10),b틱(10),c틱(5);
Var:j(0),lastHiVal(0),lastLoVal(0),sBar(0),eBar(0),TL1(0),Text1(0),process(0),T(0);
Array:HH[10,2](0),LL[10,2](0);
input : StartTime(150000),EndTime(60000);
var : Tcond(false);
IF Endtime > starttime Then
SetStopEndofday(Endtime);
Else
{
if sDate != sDate[1] Then
SetStopEndofday(Endtime);
}
if (sdate != sdate[1] and stime >= EndTime) or
(sdate == sdate[1] and stime >= EndTime and stime[1] < EndTime) Then
Tcond = False;
if (sdate != sdate[1] and stime >= StartTime) or
(sdate == sdate[1] and stime >= StartTime and stime[1] < StartTime) Then
{
Tcond = true;
IF Endtime <= starttime Then
{
SetStopEndofday(0);
}
}
process = 0;
If Highest(H,length) == H and lastHiVal <> H and Lowest(L,length) == L and lastLoVal <> L Then
{
If LL[1,1] > L Then process = -1;
If HH[1,1] < H Then process = 1;
}
Else If Highest(H,length) == H and lastHiVal <> H Then process = 1;
Else If Lowest(L,length) == L and lastLoVal <> L Then process = -1;
If process == 1 Then
{
T = 1;
lastHiVal = H;
If HH[1,2] < LL[1,2] Then
{
For j = 10 DownTo 2
{
HH[j,1] = HH[j-1,1];
HH[j,2] = HH[j-1,2];
}
}
If HH[1,2] < LL[1,2] or HH[1,1] < H Then
{
HH[1,1] = H;
HH[1,2] = Index;
sBar = Index - LL[1,2];
eBar = 0;
If TL_GetBeginDate(TL1) == sDate[sBar] and TL_GetBeginTime(TL1) == sTime[sBar] Then
{
TL_Delete(TL1);
Text_Delete(Text1);
}
if LL[1,1] > 0 Then
{
TL1 = TL_New(sDate[sBar],sTime[sBar],LL[1,1],sDate[eBar],sTime[eBar],HH[1,1]);
Text1 = Text_New(sDate[eBar],sTime[eBar],HH[1,1],"+"+NumToStr(abs(HH[1,1]-LL[1,1])/PriceScale,0));
Text_SetStyle(Text1, 2, 1);
}
Else
{
Text_Delete(text1);
Text1 = Text_New(sDate[eBar],sTime[eBar],HH[1,1],"+"+NumToStr(abs(HH[1,1]-LL[1,1])/PriceScale,2));
Text_SetStyle(Text1, 2, 1);
}
Text_SetStyle(Text1, 2, 1);
}
if MarketPosition <= 0 and
HH[2,1] >= LL[2,1]+PriceScale*a틱 and
LL[1,1] <= HH[2,1]-PriceScale*b틱 and
Tcond == true Then
Buy("b",AtStop,HH[2,1]+PriceScale*c틱);
}
If process == -1 Then
{
T = -1;
lastLoVal = L;
If LL[1,2] < HH[1,2] Then
{
For j = 10 DownTo 2
{
LL[j,1] = LL[j-1,1];
LL[j,2] = LL[j-1,2];
}
}
If LL[1,2] < HH[1,2] or LL[1,1] > L Then
{
LL[1,1] = L;
LL[1,2] = Index;
sBar = Index - HH[1,2];
eBar = 0;
If TL_GetBeginDate(TL1) == sDate[sBar] and TL_GetBeginTime(TL1) == sTime[sBar] Then
{
TL_Delete(TL1);
Text_Delete(Text1);
}
if HH[1,1] > 0 Then
{
TL1 = TL_New(sDate[sBar],sTime[sBar],HH[1,1],sDate[eBar],sTime[eBar],LL[1,1]);
Text1 = Text_New(sDate[eBar],sTime[eBar],LL[1,1],"-"+NumToStr(abs(HH[1,1]-LL[1,1])/PriceScale,0));
Text_SetStyle(Text1, 2, 0);
}
Else
{
Text_Delete(text1);
Text1 = Text_New(sDate[eBar],sTime[eBar],LL[1,1],"-"+NumToStr(abs(HH[1,1]-LL[1,1])/PriceScale,0));
Text_SetStyle(Text1, 2, 0);
}
}
if MarketPosition >= 0 and
LL[2,1] <= HH[2,1]-PriceScale*a틱 and
HH[1,1] >= LL[2,1]+PriceScale*b틱 and
Tcond == true Then
Sell("s",AtStop,LL[2,1]-PriceScale*c틱);
}
위 2가지 수식어의 진입후 20틱내 청산금지와 손절40틱의 수식어를 추가 하고자 합니다.
---------------------------
아래 수식어를 추가로 부탁드리며 봉 완성시 기준입니다.
3.
10분선 아래에서 샛별형, 관통형, 강세장악형의 봉패턴중 하나 일때
1분 10분선 골든크로스 2회에서 매수
10분선 위에서 저녁별형, 흑운형, 약세장악형의 봉패턴중 하나 일때
1분 10분선 데드크로스 2회에서 청산
매매시간은 해외선물 10 :00 ~ 익일 06 :00 , 익절 100 , 손절50
4.
10분선 위에서 저녁별형, 흑운형, 약세장악형의 봉패턴중 하나 일때
1분 10분선 데드크로스 2회에서 매도
10분선 아래에서 샛별형, 관통형, 강세장악형의 봉패턴중 하나 일때
1분 10분선 골든크로스 2회에서 청산
매매시간은 해외선물 10 :00 ~ 익일 06 :00 , 익절 100 , 손절50
2022-12-22
1361
글번호 164787
시스템
답변완료
종목 검색식 부탁드립니다.
var : 전환선(0),기준선(0),후행스팬(0),선행스팬1(0),선행스팬2(0),기준선2(0),전환선2(0);
Input : Period1(9), Period2(26),Period3(52);
전환선 = (highest(high,Period1)+lowest(low,Period1))/2;
기준선 = (highest(high,Period2)+lowest(low,Period2))/2;
기준선2 = (highest(high,Period2)+lowest(low,Period2))/2;
후행스팬 = C;
선행스팬1 = (전환선+기준선)/2;
선행스팬2 = (highest(high,Period3)+lowest(low,Period3))/2;
전환선2 = (highest(high,Period1)+lowest(low,Period1))/2;
Plot1(전환선, "전환선");
Plot2(기준선, "기준선");
Plot3(후행스팬, "후행스팬");
Plot4(선행스팬1, "선행스팬1");
Plot5(선행스팬2, "선행스팬2");
Plot6(기준선2, "기준선2");
Plot7(전환선2, "전환선2");
/*
지표속성창 차트표시탭
후행스팬 수평이동 -25
선행스팬1 수평이동 +25
선행스팬2 수평이동 +25
기준선2 수평이동 +25
*?
위 지표에서 오늘봉 기준 기준선2가 선행스팬1을 골든크로스 하는 검색식을 부탁드립니다
( 오늘봉기준 26일 전 기준선2가 26일 전 선행스팬1을 골든크로스 하는 종목입니다.
꼭 부탁드립니다.)
2022-12-22
1707
글번호 164786
종목검색