답변완료
Re : 선긋기 부탁드립니다.
적극 도와주셔서 감사드립니다.
아래 내용의 결과가 맞을때도 있지만 대부분 틀리게 나타납니다.(그림 참조)
다시한번 더 검토를 부탁드리며 컬러로도 예약어든 RGB든 선택할 수 있도록 부탁드립니다.
감사합니다.
input : p(2),굵기(1);
var : cnt(0),sum(0),mav(0);
var : TL1(0),TL2(0),TL3(0),TL4(0);
sum = 0;
For cnt = 0 to P-1
{
sum = sum + DayClose(cnt);
}
mav = sum/P;
if Index == 0 or (sTime >= 143000 and sTime[1] < 143000) Then
{
var1 = sDate;
Var2 = stime;
}
if Bdate != Bdate[1] Then
{
if var1 > 0 and Var2 > 0 Then
{
TL1 = TL_New(var1,Var2,mav,sDate,sTime,mav);
TL_SetColor(TL1,RGB(255,0,0));
TL_SetSize(TL1, 굵기);
}
}
Else
{
if sTime < 103000 Then
{
TL_SetBegin(TL1,var1,Var2,mav);
TL_SetEnd(TL1,sDate,sTime,mav);
}
}
> 포보스 님이 쓴 글입니다.
> 제목 : Re : Re : 선긋기 부탁드립니다.
> 빠른 답변 감사드립니다.
그런데
분봉(틱)챠트에서 당일 시초가 데이터가 반영되어 그려지는 일봉의 2일선이 맞는지요?
데이터가 다른 것 같습니다.
다시한번 검토 부탁드립니다.
선 굵기도 선택할 수 있었으면 합니다.
감사합니다.
2021-05-05
1234
글번호 148696
지표
답변완료
문의 드립니다.
안녕하세요
항상 빠른 답변 감사드립니다.
영웅문 지표식 변환 문의 드립니다.
상단
A = SUM(1);
A1 = ValueWhen(1, date(1)!=date, A(1));
A2 = A- A1;
B = (O+C+H+L)/4;
B1 = SUM(B);
B2 = ValueWhen(1, date(1)!=date, B1(1));
B3 = B1-B2;
(B3/A2)+((B3/A2)*Percent/100);
(중심)
A = SUM(1);
A1 = ValueWhen(1, date(1)!=date, A(1));
A2 = A- A1;
B = (O+C+H+L)/4;
B1 = SUM(B);
B2 = ValueWhen(1, date(1)!=date, B1(1));
B3 = B1-B2;
하단
A1 = ValueWhen(1, date(1)!=date, A(1));
A2 = A- A1;
B = (O+C+H+L)/4;
B1 = SUM(B);
B2 = ValueWhen(1, date(1)!=date, B1(1));
B3 = B1-B2;
(B3/A2)-((B3/A2)*Percent/100);
지표조건설정>
Percent 3
스케일>
가격
그럼 수고하세요^^
2021-05-05
1248
글번호 148695
지표
답변완료
수식작성
input : StartTime(103000),EndTime(213000);
input : 익절틱수(70),손절틱수(20);
Input : 당일수익틱수(120);
Var : N1(0),dayPl(0),당일수익(0),Xcond(false);
var : T(0),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;
Xcond = false;
N1 = NetProfit;
IF Endtime <= starttime Then
{
SetStopEndofday(0);
}
}
당일수익 = PriceScale*당일수익틱수;
daypl = NetProfit-N1;
if TotalTrades > TotalTrades[1] then
{
if daypl >= 당일수익 Then
Xcond = true;
if IsExitName("dbp",1) == true then
Xcond = true;
}
var1 = ma(C,5);
if C > O or (C == O and C >= C[1]) Then
T = 1;
Else
T = -1;
if Tcond == true Then
{
if MarketPosition == 0 and C > O and CountIf(T == 1,9) >= 5 and C > var1 Then
Buy("b");
if MarketPosition == 1 and C < O and CountIf(T == -1,9) >= 5 and C < var1 Then
ExitLong("bx");
if MarketPosition == 1 then
{
ExitLong("dbp",atlimit,EntryPrice+((당일수익-daypl)/CurrentContracts));
}
}
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);
1-2
input : StartTime(220000),EndTime(035000);
input : 익절틱수(70),손절틱수(20);
Input : 당일수익틱수(120);
Var : N1(0),dayPl(0),당일수익(0),Xcond(false);
var : T(0),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;
Xcond = false;
N1 = NetProfit;
IF Endtime <= starttime Then
{
SetStopEndofday(0);
}
}
당일수익 = PriceScale*당일수익틱수;
daypl = NetProfit-N1;
if TotalTrades > TotalTrades[1] then
{
if daypl >= 당일수익 Then
Xcond = true;
if IsExitName("dbp",1) == true then
Xcond = true;
}
var1 = ma(C,5);
if C > O or (C == O and C >= C[1]) Then
T = 1;
Else
T = -1;
if Tcond == true Then
{
if MarketPosition == 0 and C > O and CountIf(T == 1,9) >= 5 and C > var1 Then
Buy("b");
if MarketPosition == 1 and C < O and CountIf(T == -1,9) >= 5 and C < var1 Then
ExitLong("bx");
if MarketPosition == 1 then
{
ExitLong("dbp",atlimit,EntryPrice+((당일수익-daypl)/CurrentContracts));
}
}
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);
----------------------
True Strength Index 지표의 +30.5 ~-30.5 사이 진입신호금지 수식어의 추가와 매매시간을 10시부터 익일 05시까지로 수정을 부탁드립니다.
늘 감사합니다.
2021-05-06
1192
글번호 148693
시스템
답변완료
수식작성
input : StartTime(223000),EndTime(0350000);
input : 익절틱수(70),손절틱수(20);
Input : 당일수익틱수(120);
Var : N1(0),dayPl(0),당일수익(0),Xcond(false);
var : T(0),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;
Xcond = false;
N1 = NetProfit;
IF Endtime <= starttime Then
{
SetStopEndofday(0);
}
}
당일수익 = PriceScale*당일수익틱수;
daypl = NetProfit-N1;
if TotalTrades > TotalTrades[1] then
{
if daypl >= 당일수익 Then
Xcond = true;
if IsExitName("dbp",1) == true or IsExitName("dsp",1) == true then
Xcond = true;
}
var1 = ma(C,5);
if C > O or (C == O and C >= C[1]) Then
T = 1;
Else
T = -1;
if Tcond == true Then
{
if MarketPosition <= 0 and C > O and CountIf(T == 1,9) >= 5 and C > var1 Then
Buy("b");
if MarketPosition >= 0 and C < O and CountIf(T == -1,9) >= 5 and C < var1 Then
Sell("s");
if MarketPosition == 1 then
{
ExitLong("dbp",atlimit,EntryPrice+((당일수익-daypl)/CurrentContracts));
}
if MarketPosition == -1 then
{
ExitShort("dsp",atlimit,EntryPrice-((당일수익-daypl)/CurrentContracts));
}
}
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);
-------------------
매매시간 이외에 진입신호가 있습니다.
수정 부탁드려요~
2021-05-06
1083
글번호 148688
시스템