커뮤니티

파라볼릭 선

프로필 이미지
고성
2024-07-17 07:58:53
887
글번호 181573
답변완료

첨부 이미지

Input : af(0.02), maxAF(0.2); var : T(0),B(0),S(0),tx(0),HH(0),LL(0),box(0),B1(0),S1(0),H1(0),L1(0),TL(0); var1 = CSar(af,maxAF); if CrossUp(C,var1) Then { T = 1; B = var1; B1 = B[1]; HH = H; H1 = HH[1]; if abs(S-LL) < 0.9 Then Text_Delete(tx); tx = Text_New(sDate,sTime,HH,NumToStr(abs(HH-B),2)); Text_SetColor(tx,Red); Text_SetSize(tx,25); Text_SetStyle(tx,1,1); Text_SetBold(tx,1); box = Box_New(sDate,sTime,B,NextBarSdate,NextBarStime,HH); Condition2 = False; if MarketPosition == 1 Then ExitLong(); } if CrossDown(C,var1) Then { T = -1; S = var1; S1 = S[1]; LL = L; L1 = LL[1]; if abs(B-HH) < 0.8 Then Text_Delete(tx); tx = Text_New(sDate,sTime,LL,NumToStr(abs(LL-S),2)); Text_SetColor(tx,Blue); Text_SetSize(tx,25); Text_SetStyle(tx,1,0); Text_SetBold(tx,1); box = Box_New(sDate,sTime,S,NextBarSdate,NextBarStime,LL); Condition1 = False; if MarketPosition == -1 Then ExitShort(); } Else { if T == 1 Then { if H > HH Then HH = H; Text_SetString(tx,NumToStr(abs(HH-B),2)); Text_SetLocation(tx,sDate,sTime,HH); Box_SetEnd(box,NextBarSdate,NextBarStime,hh); if HH < B+0.6 Then { Box_SetColor(box,Orange); Box_SetFill(box,true,90); } Else if HH >= B+0.6 and HH < B+0.8 Then { Box_SetColor(box,Gray); Box_SetFill(box,true,80); } Else if HH >= B+0.8 and HH < B+1.3 Then { Box_SetColor(box,Magenta); Box_SetFill(box,true,50); } Else if HH >= B+1.3 and HH < B+1.9 Then { Box_SetColor(box,Gray); Box_SetFill(box,true,60); } Else { Box_SetColor(box,Pink); Box_SetFill(box,true,90); } if B1 > 0 and B > B1 and H > H1 and Condition1 == False Then { Condition1 = true; TL_Delete(TL); TL =TL_New(sDate,sTime,0,sDate,sTime,999); TL_SetColor(TL,Lime); TL_SetSize(TL,3); Sell(); } } if T == -1 Then { if L < LL Then LL = L; Text_SetString(tx,NumToStr(abs(LL-S),2)); Text_SetLocation(tx,sDate,sTime,LL); Box_SetEnd(box,NextBarSdate,NextBarStime,LL); if LL > S-0.6 Then { Box_SetColor(box,Cyan); Box_SetFill(box,true,120); } Else if LL <= S-0.6 and ll > S-0.9 Then { Box_SetColor(box,Yellow); Box_SetFill(box,true,150); } Else if LL <= S-0.9 and ll > S-1.3 Then { Box_SetColor(box,Lime); Box_SetFill(box,true,120); } Else if LL <= S-1.3 and ll > S-1.6 Then { Box_SetColor(box,Cyan); Box_SetFill(box,true,90); } Else if LL <= S-1.6 and ll > S-1.9 Then { Box_SetColor(box,Blue); Box_SetFill(box,true,30); } Else { Box_SetColor(box,Yellow); Box_SetFill(box,true,120); } if S1 > 0 and S < S1 and L < L1 and Condition1 == False Then { Condition1 = true; TL_Delete(TL); TL =TL_New(sDate,sTime,0,sDate,sTime,999); TL_SetColor(TL,Gold); TL_SetSize(TL,3); Buy(); } } } 1.파라볼릭 선 추가 표시. plot1(var1, "CSAR",IFF(c>var1,Red,Blue)); 2.선물 80틱에서, 반등이 작을 때 박스 상단 오류. (상승시는 하단 오류) 감사합니다.
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2024-07-17 16:07:41

안녕하세요 예스스탁입니다. 1 시스템식에는 plot사용을 할 수 없습니다. 지표로 보고자 하시면 오리신 수식에서 진입청산식 제거하고 추가해서 지표식 만드시면 됩니다. 혹은 별도로 기본으로 제공되는 종가파라볼릭 지표 적용하시면 됩니다. 해당 내용은 간단한 내용입니다. 추가로 지표식 작성해 드리지 않습니다. 2 0.80미만인데 하락구간 종료 후 0.90미만을 지우게 되어 있어 해당 부분만 수정해 드립니다. 다른 부분은 어떤 오류가 있는지 모르겠습니다. Input : af(0.02), maxAF(0.2); var : T(0),B(0),S(0),tx(0),HH(0),LL(0),box(0),B1(0),S1(0),H1(0),L1(0),TL(0); var1 = CSar(af,maxAF); if CrossUp(C,var1) Then { T = 1; B = var1; B1 = B[1]; HH = H; H1 = HH[1]; if abs(S-LL) < 0.8 Then Text_Delete(tx); tx = Text_New(sDate,sTime,HH,NumToStr(abs(HH-B),2)); Text_SetColor(tx,Red); Text_SetSize(tx,25); Text_SetStyle(tx,1,1); Text_SetBold(tx,1); box = Box_New(sDate,sTime,B,NextBarSdate,NextBarStime,HH); Condition2 = False; if MarketPosition == 1 Then ExitLong(); } if CrossDown(C,var1) Then { T = -1; S = var1; S1 = S[1]; LL = L; L1 = LL[1]; if abs(B-HH) < 0.8 Then Text_Delete(tx); tx = Text_New(sDate,sTime,LL,NumToStr(abs(LL-S),2)); Text_SetColor(tx,Blue); Text_SetSize(tx,25); Text_SetStyle(tx,1,0); Text_SetBold(tx,1); box = Box_New(sDate,sTime,S,NextBarSdate,NextBarStime,LL); Condition1 = False; if MarketPosition == -1 Then ExitShort(); } Else { if T == 1 Then { if H > HH Then HH = H; Text_SetString(tx,NumToStr(abs(HH-B),2)); Text_SetLocation(tx,sDate,sTime,HH); Box_SetEnd(box,NextBarSdate,NextBarStime,hh); if HH < B+0.6 Then { Box_SetColor(box,Orange); Box_SetFill(box,true,90); } Else if HH >= B+0.6 and HH < B+0.8 Then { Box_SetColor(box,Gray); Box_SetFill(box,true,80); } Else if HH >= B+0.8 and HH < B+1.3 Then { Box_SetColor(box,Magenta); Box_SetFill(box,true,50); } Else if HH >= B+1.3 and HH < B+1.9 Then { Box_SetColor(box,Gray); Box_SetFill(box,true,60); } Else { Box_SetColor(box,Pink); Box_SetFill(box,true,90); } if B1 > 0 and B > B1 and H > H1 and Condition1 == False Then { Condition1 = true; TL_Delete(TL); TL =TL_New(sDate,sTime,0,sDate,sTime,999); TL_SetColor(TL,Lime); TL_SetSize(TL,3); Sell(); } } if T == -1 Then { if L < LL Then LL = L; Text_SetString(tx,NumToStr(abs(LL-S),2)); Text_SetLocation(tx,sDate,sTime,LL); Box_SetEnd(box,NextBarSdate,NextBarStime,LL); if LL > S-0.6 Then { Box_SetColor(box,Cyan); Box_SetFill(box,true,120); } Else if LL <= S-0.6 and ll > S-0.9 Then { Box_SetColor(box,Yellow); Box_SetFill(box,true,150); } Else if LL <= S-0.9 and ll > S-1.3 Then { Box_SetColor(box,Lime); Box_SetFill(box,true,120); } Else if LL <= S-1.3 and ll > S-1.6 Then { Box_SetColor(box,Cyan); Box_SetFill(box,true,90); } Else if LL <= S-1.6 and ll > S-1.9 Then { Box_SetColor(box,Blue); Box_SetFill(box,true,30); } Else { Box_SetColor(box,Yellow); Box_SetFill(box,true,120); } if S1 > 0 and S < S1 and L < L1 and Condition1 == False Then { Condition1 = true; TL_Delete(TL); TL =TL_New(sDate,sTime,0,sDate,sTime,999); TL_SetColor(TL,Gold); TL_SetSize(TL,3); Buy(); } } } 즐거운 하루되세요 > 고성 님이 쓴 글입니다. > 제목 : 파라볼릭 선 > Input : af(0.02), maxAF(0.2); var : T(0),B(0),S(0),tx(0),HH(0),LL(0),box(0),B1(0),S1(0),H1(0),L1(0),TL(0); var1 = CSar(af,maxAF); if CrossUp(C,var1) Then { T = 1; B = var1; B1 = B[1]; HH = H; H1 = HH[1]; if abs(S-LL) < 0.9 Then Text_Delete(tx); tx = Text_New(sDate,sTime,HH,NumToStr(abs(HH-B),2)); Text_SetColor(tx,Red); Text_SetSize(tx,25); Text_SetStyle(tx,1,1); Text_SetBold(tx,1); box = Box_New(sDate,sTime,B,NextBarSdate,NextBarStime,HH); Condition2 = False; if MarketPosition == 1 Then ExitLong(); } if CrossDown(C,var1) Then { T = -1; S = var1; S1 = S[1]; LL = L; L1 = LL[1]; if abs(B-HH) < 0.8 Then Text_Delete(tx); tx = Text_New(sDate,sTime,LL,NumToStr(abs(LL-S),2)); Text_SetColor(tx,Blue); Text_SetSize(tx,25); Text_SetStyle(tx,1,0); Text_SetBold(tx,1); box = Box_New(sDate,sTime,S,NextBarSdate,NextBarStime,LL); Condition1 = False; if MarketPosition == -1 Then ExitShort(); } Else { if T == 1 Then { if H > HH Then HH = H; Text_SetString(tx,NumToStr(abs(HH-B),2)); Text_SetLocation(tx,sDate,sTime,HH); Box_SetEnd(box,NextBarSdate,NextBarStime,hh); if HH < B+0.6 Then { Box_SetColor(box,Orange); Box_SetFill(box,true,90); } Else if HH >= B+0.6 and HH < B+0.8 Then { Box_SetColor(box,Gray); Box_SetFill(box,true,80); } Else if HH >= B+0.8 and HH < B+1.3 Then { Box_SetColor(box,Magenta); Box_SetFill(box,true,50); } Else if HH >= B+1.3 and HH < B+1.9 Then { Box_SetColor(box,Gray); Box_SetFill(box,true,60); } Else { Box_SetColor(box,Pink); Box_SetFill(box,true,90); } if B1 > 0 and B > B1 and H > H1 and Condition1 == False Then { Condition1 = true; TL_Delete(TL); TL =TL_New(sDate,sTime,0,sDate,sTime,999); TL_SetColor(TL,Lime); TL_SetSize(TL,3); Sell(); } } if T == -1 Then { if L < LL Then LL = L; Text_SetString(tx,NumToStr(abs(LL-S),2)); Text_SetLocation(tx,sDate,sTime,LL); Box_SetEnd(box,NextBarSdate,NextBarStime,LL); if LL > S-0.6 Then { Box_SetColor(box,Cyan); Box_SetFill(box,true,120); } Else if LL <= S-0.6 and ll > S-0.9 Then { Box_SetColor(box,Yellow); Box_SetFill(box,true,150); } Else if LL <= S-0.9 and ll > S-1.3 Then { Box_SetColor(box,Lime); Box_SetFill(box,true,120); } Else if LL <= S-1.3 and ll > S-1.6 Then { Box_SetColor(box,Cyan); Box_SetFill(box,true,90); } Else if LL <= S-1.6 and ll > S-1.9 Then { Box_SetColor(box,Blue); Box_SetFill(box,true,30); } Else { Box_SetColor(box,Yellow); Box_SetFill(box,true,120); } if S1 > 0 and S < S1 and L < L1 and Condition1 == False Then { Condition1 = true; TL_Delete(TL); TL =TL_New(sDate,sTime,0,sDate,sTime,999); TL_SetColor(TL,Gold); TL_SetSize(TL,3); Buy(); } } } 1.파라볼릭 선 추가 표시. plot1(var1, "CSAR",IFF(c>var1,Red,Blue)); 2.선물 80틱에서, 반등이 작을 때 박스 상단 오류. (상승시는 하단 오류) 감사합니다.