답변완료
문의 드립니다
input : starttime(60000),endtime(0000),n(10);
var : Tcond(false),hh(0),h1(0),ll(0),l1(0);
IF Endtime > starttime Then
SetStopEndofday(Endtime);
Else
{
if sDate != sDate[1]and Tcond == true 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;
hh = h;
ll = l;
h1 = hh[1];
l1 = ll[1];
IF Endtime <= starttime Then
{
SetStopEndofday(0);
}
}
input : 익절틱수(0),손절틱수(0);
if NextBarSdate != sDate Then
{
if NextBarOpen != C Then
{
Buy("b",AtStop,NextBarOpen+PriceScale*10);
}
}
ExitLong("bx",AtMarket);
if NextBarOpen != C Then
{
Buy("b1",AtStop,NextBarOpen+PriceScale*10);
}
ExitLong("bx1",AtMarket);
if NextBarSdate != sDate Then
{
if NextBarOpen != C Then
{
Sell("s",AtStop,NextBarOpen-PriceScale*10);
}
}
ExitShort("sx",AtMarket);
if NextBarOpen != C Then
{
Sell("s1",AtStop,NextBarOpen-PriceScale*10);
}
ExitShort("sx1",AtMarket);
if NextBarSdate == sDate Then
{
if NextBarOpen == C Then
{
Buy("b2",AtStop,NextBarOpen+PriceScale*10);
}
}
ExitLong("bx2",AtMarket);
if NextBarOpen == C Then
{
Buy("b3",AtStop,NextBarOpen+PriceScale*10);
}
ExitLong("bx3",AtMarket);
if NextBarSdate == sDate Then
{
if NextBarOpen == C Then
{
Sell("s2",AtStop,NextBarOpen-PriceScale*10);
}
}
ExitShort("sx2",AtMarket);
if NextBarOpen == C Then
{
Sell("s3",AtStop,NextBarOpen-PriceScale*10);
}
ExitShort("sx3",AtMarket);
-------
위 수식어를 아래 변경된 2가지로 부탁 드립니다.
- 아래 -
1.
캔들 다음 시가가 같거나 다를때
매수는 시가에서 -50틱에서 매수후 봉의 완성에 청산
매도는 시가에서 +50틱에서 매도후 봉의 완성에 청산이 각각 2회의 수식어
2.
캔들 다음 시가가 같거나 다를때
매수는 시가에서 -50틱에서 매수후 봉의 완성에 청산
매도는 시가에서 +50틱에서 매도후 봉의 완성에 청산이 무한대의 수식어
2024-03-21
798
글번호 177738
시스템
답변완료
키움지표 변환
항상 감사드립니다
아래 키움지표를 변환해 주시기바랍니다
/***************************************************/
1_수렴지표
상승(red) : avg(c,5)/(jas=avg(c,20)/100)
하락(blue) : avg(c,20)/(jas=avg(c,5)/100)
기준선 : 100
2_obv(일목균형표_틱봉적용)
obv(상승/red) : obv()
s(하락/blue) : ma(obv(),signal,이평종류)
signa: 9
3_주름챠트 일목균형표
상승(red) :
상단선=tema(c,기간1);
중심선=tema(c,기간2);
이격값=상단선-중심선;
중심선+(상단선-중심선)*0.5
하락(blue) :
상단선=tema(c,기간1);
중심선=tema(c,기간2);
이격값=상단선-중심선;
중심선
기간1 : 5
기간2 :20
/*******************************************************/
2024-03-20
573
글번호 177731
지표