커뮤니티

안녕하세요^^재질문 드려봅니다

프로필 이미지
말라
2020-08-20 11:27:15
941
글번호 141544
답변완료

첨부 이미지

var : VV(0); var : A1(False),A2(False),A3(False),A4(False),A5(False),A6(False),A7(False),A8(False),A9(False),A10(False),A11(False),A12(False),A13(False); var : B1(False),B2(False),B3(False),B4(False),B5(False),B6(False),B7(False),B8(False),B9(False),B10(False),B11(False); VV = AccumN(DownVol,3)[1]/AccumN(Volume,3)[1]; A1 = C[1] >= C[10]*1.06; A2 = Highest(H,6)[4] >= C[10]*1.06; A3 = Accumn(H-O,3)[7] > Accumn(H-O,3)[4]; A4 = Highest(H,6)[4] > Highest(H,3)[1]; A5 = AccumN(v,3)[1] >= AccumN(v,6)[4]*0.25 and AccumN(v,3)[1] <= AccumN(v,6)[4]*0.30; A6 = AccumN(v,3)[1] >= AccumN(v,6)[4]*0.20 and AccumN(v,3)[1] <= AccumN(v,6)[4]*0.25; A7 = AccumN(v,3)[1] >= AccumN(v,6)[4]*0.15 and AccumN(v,3)[1] <= AccumN(v,6)[4]*0.20; A8 = AccumN(v,3)[1] >= AccumN(v,6)[4]*0.10 and AccumN(v,3)[1] <= AccumN(v,6)[4]*0.15; A9 = AccumN(v,3)[1] >= AccumN(v,6)[4]*0.05 and AccumN(v,3)[1] <= AccumN(v,6)[4]*0.10; A10 = AccumN(v,3)[1] >= AccumN(v,6)[4]*0.01 and AccumN(v,3)[1] <= AccumN(v,6)[4]*0.05; A11 = AccumN(V,3)[4] > AccumN(V,3)[1]; A12 = C[1] <= C[4]*1.01 and C[1] >= C[4]*0.99; A13 = 0.59 >= VV and VV >= 0.46; B1 = C[1] < C[10]*1.06; B2 = Highest(H,6)[4] >= C[10]*1.06; B3 = Accumn(H-O,3)[7] > Accumn(H-O,3)[4]; B4 = Highest(H,6)[4] > Highest(H,3)[1]; B5 = AccumN(v,3)[1] >= AccumN(v,6)[4]*0.25 and AccumN(v,3)[1] <= AccumN(v,6)[4]*0.30; B6 = AccumN(v,3)[1] >= AccumN(v,6)[4]*0.20 and AccumN(v,3)[1] <= AccumN(v,6)[4]*0.25; B7 = AccumN(v,3)[1] >= AccumN(v,6)[4]*0.15 and AccumN(v,3)[1] <= AccumN(v,6)[4]*0.20; B8 = AccumN(v,3)[1] >= AccumN(v,6)[4]*0.10 and AccumN(v,3)[1] <= AccumN(v,6)[4]*0.15; B9 = AccumN(v,3)[1] >= AccumN(v,6)[4]*0.05 and AccumN(v,3)[1] <= AccumN(v,6)[4]*0.10; B10 = AccumN(v,3)[1] >= AccumN(v,6)[4]*0.01 and AccumN(v,3)[1] <= AccumN(v,6)[4]*0.05; B11 = AccumN(V,3)[4] > AccumN(V,3)[1]; if A1 and A2 and A3 and A4 and A5 and A11 and (A12 or A13) Then Buy("A6"); if A1 and A2 and A3 and A4 and A6 and A11 and (A12 or A13) Then Buy("A5"); if A1 and A2 and A3 and A4 and A7 and A11 and (A12 or A13) Then Buy("A4"); if A1 and A2 and A3 and A4 and A8 and A11 and (A12 or A13) Then Buy("A3"); if A1 and A2 and A3 and A4 and A9 and A11 and (A12 or A13) Then Buy("A2"); if A1 and A2 and A3 and A4 and A10 and A11 and (A12 or A13) Then Buy("A1"); if B1 and B2 and B3 and B4 and B5 and B11 Then Buy("B6"); if B1 and B2 and B3 and B4 and B6 and B11 Then Buy("B5"); if B1 and B2 and B3 and B4 and B7 and B11 Then Buy("B4"); if B1 and B2 and B3 and B4 and B8 and B11 Then Buy("B3"); if B1 and B2 and B3 and B4 and B9 and B11 Then Buy("B2"); if B1 and B2 and B3 and B4 and B10 and B11 Then Buy("B1"); #A1매수진입후 if MarketPosition == 1 and IsEntryName("A1") == true Then { #12% 수익이면 청산 ExitLong("C1",AtLimit,EntryPrice*1.12); #2% 이상 수익이후에 7% 하락하면 청산 if Highest(H,BarsSinceEntry) >= EntryPrice*1.02 Then ExitLong("C2",AtStop,Highest(H,BarsSinceEntry)*0.93); #7% 손실시 청산 ExitLong("C3",AtStop,EntryPrice*0.93); } #A2매수진입후 if MarketPosition == 1 and IsEntryName("A2") == true Then { #12% 수익이면 청산 ExitLong("D1",AtLimit,EntryPrice*1.12); #2% 이상 수익이후에 7% 하락하면 청산 if Highest(H,BarsSinceEntry) >= EntryPrice*1.02 Then ExitLong("D2",AtStop,Highest(H,BarsSinceEntry)*0.93); #7% 손실시 청산 ExitLong("D3",AtStop,EntryPrice*0.93); } #A3매수진입후 if MarketPosition == 1 and IsEntryName("A3") == true Then { #12% 수익이면 청산 ExitLong("E1",AtLimit,EntryPrice*1.12); #2% 이상 수익이후에 7% 하락하면 청산 if Highest(H,BarsSinceEntry) >= EntryPrice*1.02 Then ExitLong("E2",AtStop,Highest(H,BarsSinceEntry)*0.93); #7% 손실시 청산 ExitLong("E3",AtStop,EntryPrice*0.93); } #A4매수진입후 if MarketPosition == 1 and IsEntryName("A4") == true Then { #12% 수익이면 청산 ExitLong("F1",AtLimit,EntryPrice*1.12); #2% 이상 수익이후에 7% 하락하면 청산 if Highest(H,BarsSinceEntry) >= EntryPrice*1.02 Then ExitLong("F2",AtStop,Highest(H,BarsSinceEntry)*0.93); #7% 손실시 청산 ExitLong("F3",AtStop,EntryPrice*0.93); } #A5매수진입후 if MarketPosition == 1 and IsEntryName("A5") == true Then { #12% 수익이면 청산 ExitLong("G1",AtLimit,EntryPrice*1.12); #2% 이상 수익이후에 7% 하락하면 청산 if Highest(H,BarsSinceEntry) >= EntryPrice*1.02 Then ExitLong("G2",AtStop,Highest(H,BarsSinceEntry)*0.93); #7% 손실시 청산 ExitLong("G3",AtStop,EntryPrice*0.93); } #A6매수진입후 if MarketPosition == 1 and IsEntryName("A6") == true Then { #12% 수익이면 청산 ExitLong("H1",AtLimit,EntryPrice*1.12); #2% 이상 수익이후에 7% 하락하면 청산 if Highest(H,BarsSinceEntry) >= EntryPrice*1.02 Then ExitLong("H2",AtStop,Highest(H,BarsSinceEntry)*0.93); #7% 손실시 청산 ExitLong("H3",AtStop,EntryPrice*0.93); } #B1매수진입후 if MarketPosition == 1 and IsEntryName("B1") == true Then { #12% 수익이면 청산 ExitLong("I1",AtLimit,EntryPrice*1.12); #2% 이상 수익이후에 7% 하락하면 청산 if Highest(H,BarsSinceEntry) >= EntryPrice*1.02 Then ExitLong("I2",AtStop,Highest(H,BarsSinceEntry)*0.93); #7% 손실시 청산 ExitLong("I3",AtStop,EntryPrice*0.93); } #B2매수진입후 if MarketPosition == 1 and IsEntryName("B2") == true Then { #12% 수익이면 청산 ExitLong("J1",AtLimit,EntryPrice*1.12); #2% 이상 수익이후에 7% 하락하면 청산 if Highest(H,BarsSinceEntry) >= EntryPrice*1.02 Then ExitLong("J2",AtStop,Highest(H,BarsSinceEntry)*0.93); #7% 손실시 청산 ExitLong("J3",AtStop,EntryPrice*0.93); } #B3매수진입후 if MarketPosition == 1 and IsEntryName("B3") == true Then { #12% 수익이면 청산 ExitLong("K1",AtLimit,EntryPrice*1.12); #2% 이상 수익이후에 7% 하락하면 청산 if Highest(H,BarsSinceEntry) >= EntryPrice*1.02 Then ExitLong("K2",AtStop,Highest(H,BarsSinceEntry)*0.93); #7% 손실시 청산 ExitLong("K3",AtStop,EntryPrice*0.93); } #B4매수진입후 if MarketPosition == 1 and IsEntryName("B4") == true Then { #12% 수익이면 청산 ExitLong("L1",AtLimit,EntryPrice*1.12); #2% 이상 수익이후에 7% 하락하면 청산 if Highest(H,BarsSinceEntry) >= EntryPrice*1.02 Then ExitLong("L2",AtStop,Highest(H,BarsSinceEntry)*0.93); #7% 손실시 청산 ExitLong("L3",AtStop,EntryPrice*0.93); } #B5매수진입후 if MarketPosition == 1 and IsEntryName("B5") == true Then { #12% 수익이면 청산 ExitLong("M1",AtLimit,EntryPrice*1.12); #2% 이상 수익이후에 7% 하락하면 청산 if Highest(H,BarsSinceEntry) >= EntryPrice*1.02 Then ExitLong("M2",AtStop,Highest(H,BarsSinceEntry)*0.93); #7% 손실시 청산 ExitLong("M3",AtStop,EntryPrice*0.93); } #B6매수진입후 if MarketPosition == 1 and IsEntryName("B6") == true Then { #12% 수익이면 청산 ExitLong("N1",AtLimit,EntryPrice*1.12); #2% 이상 수익이후에 7% 하락하면 청산 if Highest(H,BarsSinceEntry) >= EntryPrice*1.02 Then ExitLong("N2",AtStop,Highest(H,BarsSinceEntry)*0.93); #7% 손실시 청산 ExitLong("N3",AtStop,EntryPrice*0.93); } ----------------------------------------------------------------- 안녕하세요 아까 질문에 대한 답변을 받아 제가 수정해서 완성시켜 봤는데요 질문이 다시 생겨서 글남깁니다. 이렇게 작성했는데 일단 검증은 되서 다행이긴 한데요 뭘 잘못한건지 ㅍ.ㅍ 예상과는 달라서요 질문 1. 파일을 보면 A3 A2의 청산은 나타나지 않고 A5의 청산인 G1만 동시에 3개가 뜹니다. 즉,왜 H1, D1이 나타나지 않는지 나타나게 하려면 어케해야하는지 알려주세요 따로따로 뜨게해주세요 ㅠ.ㅠ왜 수익선이 한곳에 몰려있는지 후아,,,, 2. G1보다 먼저 2봉전에 A3의 청산조건인 H1이 충족(12프로이상됨)되어 차트상 떠야하는데 왜 안뜨는지 알려주세요 3. 시스템 변수 설정창에서 당일청산에서 시간으로 3:00PM으로 설정하면 매도청산이 그 시점까지만 이루어지는지 알려주세요 4. 이건 기본 차트 질문인데요. 차트 오른쪽에 가격이 뜨는것을 퍼센티지로 변경하려면 어케해야하는지 알려주세요 첨부파일을 보면 7000~9000원이 아닌 0프로에서 30프로로 이런식으로..뜨게요 정말 항상 노고에 감사드리며 첨부파일 올립니다
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2020-08-20 14:00:34

안녕하세요 예스스탁입니다. 1 작성해 드린 수식은 피라미딩은 하지 않는 수식을 염두에 두고 답변드린식입니다. IsEntryName은 첫진입의 이름만 구별합니다. 피라미딩을 하시는 상황이면 식이 다르게 작성되어야 합니다. 2 각 진입마다 별도로 진입가와 최대가를 저장해야 하는데 한봉에 2개이상의 진입이 동시발생을 하면 해당 부분은 체크하지 못합니다. 만약 작성하신 진입이 피라미딩 시에 한봉에 2개이상이 동시 발생하는 경우가 있으면 진입별로 이름을 별도로 부여하지 못하고 해당 청산은 강제청산함수를 사용하셔야 합니다. 강제청산함수는 기본설정이 각 진입별로 발생합니다. 다만 이름별로 별도 이름 지정이 가능하지 않습니다. SetStopProfittarget(12,PercentStop); SetStopProfittarget(7,2,PercentStop,1); SetStopLoss(7,PercentStop); 3 한봉에는 하나의 진입만 발생한다면 아래식 사용하시면 됩니다. 청산함수의 4번째 매개변수가 진입명을 지정하는 옵션입니다. 4번째 옵션에 진입명을 지정하시면 해당이름의 진입이 있을 경우만 발생하고 해당진입으로 들어간 수량만 청산하게 됩니다. 죄송하지만 청산 2개에 대해서만 작성해 드립니다. 내용 참고하셔서 추가하시기 바랍니다. var : A1Price(0),A1high(0); var : A2Price(0),A2high(0); if MarketPosition == 1 Then { #A1진입 발생 #보유수량이 증가하고 최근 발생한 진입명이 A1이면 if CurrentContracts > CurrentContracts[1] and LatestEntryName(0) == "A1" Then { #진입가 저장 A1Price = LatestEntryPrice(0); #진입이후 최고가의 초기값으로 현재봉 고가저장 A1high = H; } #새로운 고가가 발생하면 변수의 값을 새로운 고가를 변경 if A1high > 0 and H > A1high Then A1high = H; #12% 수익이면 청산 ExitLong("C1",AtLimit,A1Price*1.12,"A1"); #2% 이상 수익이후에 7% 하락하면 청산 if A1high >= A1Price*1.02 Then ExitLong("C2",AtStop,A1high*0.93,"A1"); #7% 손실시 청산 ExitLong("C3",AtStop,A1Price*0.93,"A1"); #A2진입 if CurrentContracts > CurrentContracts[1] and LatestEntryName(0) == "A2" Then { A2Price = LatestEntryPrice(0); A2high = H; } if A2high > 0 and H > A2high Then A2high = H; ExitLong("D1",AtLimit,A2Price*1.12,"A2"); if A2high >= A2Price*1.02 Then ExitLong("D2",AtStop,A2high*0.93,"A2"); ExitLong("D3",AtStop,A2Price*0.93,"A2"); } Else { A1Price = 0; A1high = 0; A2Price = 0; A2high = 0; } 4 당일청산은 해당시점에서만 동작합니다. 5 %차트는 제공하지 않아 차트를 %로 보실수는 없습니다. 즐거운 하루되세요 > 말라 님이 쓴 글입니다. > 제목 : 안녕하세요^^재질문 드려봅니다 > var : VV(0); var : A1(False),A2(False),A3(False),A4(False),A5(False),A6(False),A7(False),A8(False),A9(False),A10(False),A11(False),A12(False),A13(False); var : B1(False),B2(False),B3(False),B4(False),B5(False),B6(False),B7(False),B8(False),B9(False),B10(False),B11(False); VV = AccumN(DownVol,3)[1]/AccumN(Volume,3)[1]; A1 = C[1] >= C[10]*1.06; A2 = Highest(H,6)[4] >= C[10]*1.06; A3 = Accumn(H-O,3)[7] > Accumn(H-O,3)[4]; A4 = Highest(H,6)[4] > Highest(H,3)[1]; A5 = AccumN(v,3)[1] >= AccumN(v,6)[4]*0.25 and AccumN(v,3)[1] <= AccumN(v,6)[4]*0.30; A6 = AccumN(v,3)[1] >= AccumN(v,6)[4]*0.20 and AccumN(v,3)[1] <= AccumN(v,6)[4]*0.25; A7 = AccumN(v,3)[1] >= AccumN(v,6)[4]*0.15 and AccumN(v,3)[1] <= AccumN(v,6)[4]*0.20; A8 = AccumN(v,3)[1] >= AccumN(v,6)[4]*0.10 and AccumN(v,3)[1] <= AccumN(v,6)[4]*0.15; A9 = AccumN(v,3)[1] >= AccumN(v,6)[4]*0.05 and AccumN(v,3)[1] <= AccumN(v,6)[4]*0.10; A10 = AccumN(v,3)[1] >= AccumN(v,6)[4]*0.01 and AccumN(v,3)[1] <= AccumN(v,6)[4]*0.05; A11 = AccumN(V,3)[4] > AccumN(V,3)[1]; A12 = C[1] <= C[4]*1.01 and C[1] >= C[4]*0.99; A13 = 0.59 >= VV and VV >= 0.46; B1 = C[1] < C[10]*1.06; B2 = Highest(H,6)[4] >= C[10]*1.06; B3 = Accumn(H-O,3)[7] > Accumn(H-O,3)[4]; B4 = Highest(H,6)[4] > Highest(H,3)[1]; B5 = AccumN(v,3)[1] >= AccumN(v,6)[4]*0.25 and AccumN(v,3)[1] <= AccumN(v,6)[4]*0.30; B6 = AccumN(v,3)[1] >= AccumN(v,6)[4]*0.20 and AccumN(v,3)[1] <= AccumN(v,6)[4]*0.25; B7 = AccumN(v,3)[1] >= AccumN(v,6)[4]*0.15 and AccumN(v,3)[1] <= AccumN(v,6)[4]*0.20; B8 = AccumN(v,3)[1] >= AccumN(v,6)[4]*0.10 and AccumN(v,3)[1] <= AccumN(v,6)[4]*0.15; B9 = AccumN(v,3)[1] >= AccumN(v,6)[4]*0.05 and AccumN(v,3)[1] <= AccumN(v,6)[4]*0.10; B10 = AccumN(v,3)[1] >= AccumN(v,6)[4]*0.01 and AccumN(v,3)[1] <= AccumN(v,6)[4]*0.05; B11 = AccumN(V,3)[4] > AccumN(V,3)[1]; if A1 and A2 and A3 and A4 and A5 and A11 and (A12 or A13) Then Buy("A6"); if A1 and A2 and A3 and A4 and A6 and A11 and (A12 or A13) Then Buy("A5"); if A1 and A2 and A3 and A4 and A7 and A11 and (A12 or A13) Then Buy("A4"); if A1 and A2 and A3 and A4 and A8 and A11 and (A12 or A13) Then Buy("A3"); if A1 and A2 and A3 and A4 and A9 and A11 and (A12 or A13) Then Buy("A2"); if A1 and A2 and A3 and A4 and A10 and A11 and (A12 or A13) Then Buy("A1"); if B1 and B2 and B3 and B4 and B5 and B11 Then Buy("B6"); if B1 and B2 and B3 and B4 and B6 and B11 Then Buy("B5"); if B1 and B2 and B3 and B4 and B7 and B11 Then Buy("B4"); if B1 and B2 and B3 and B4 and B8 and B11 Then Buy("B3"); if B1 and B2 and B3 and B4 and B9 and B11 Then Buy("B2"); if B1 and B2 and B3 and B4 and B10 and B11 Then Buy("B1"); #A1매수진입후 if MarketPosition == 1 and IsEntryName("A1") == true Then { #12% 수익이면 청산 ExitLong("C1",AtLimit,EntryPrice*1.12); #2% 이상 수익이후에 7% 하락하면 청산 if Highest(H,BarsSinceEntry) >= EntryPrice*1.02 Then ExitLong("C2",AtStop,Highest(H,BarsSinceEntry)*0.93); #7% 손실시 청산 ExitLong("C3",AtStop,EntryPrice*0.93); } #A2매수진입후 if MarketPosition == 1 and IsEntryName("A2") == true Then { #12% 수익이면 청산 ExitLong("D1",AtLimit,EntryPrice*1.12); #2% 이상 수익이후에 7% 하락하면 청산 if Highest(H,BarsSinceEntry) >= EntryPrice*1.02 Then ExitLong("D2",AtStop,Highest(H,BarsSinceEntry)*0.93); #7% 손실시 청산 ExitLong("D3",AtStop,EntryPrice*0.93); } #A3매수진입후 if MarketPosition == 1 and IsEntryName("A3") == true Then { #12% 수익이면 청산 ExitLong("E1",AtLimit,EntryPrice*1.12); #2% 이상 수익이후에 7% 하락하면 청산 if Highest(H,BarsSinceEntry) >= EntryPrice*1.02 Then ExitLong("E2",AtStop,Highest(H,BarsSinceEntry)*0.93); #7% 손실시 청산 ExitLong("E3",AtStop,EntryPrice*0.93); } #A4매수진입후 if MarketPosition == 1 and IsEntryName("A4") == true Then { #12% 수익이면 청산 ExitLong("F1",AtLimit,EntryPrice*1.12); #2% 이상 수익이후에 7% 하락하면 청산 if Highest(H,BarsSinceEntry) >= EntryPrice*1.02 Then ExitLong("F2",AtStop,Highest(H,BarsSinceEntry)*0.93); #7% 손실시 청산 ExitLong("F3",AtStop,EntryPrice*0.93); } #A5매수진입후 if MarketPosition == 1 and IsEntryName("A5") == true Then { #12% 수익이면 청산 ExitLong("G1",AtLimit,EntryPrice*1.12); #2% 이상 수익이후에 7% 하락하면 청산 if Highest(H,BarsSinceEntry) >= EntryPrice*1.02 Then ExitLong("G2",AtStop,Highest(H,BarsSinceEntry)*0.93); #7% 손실시 청산 ExitLong("G3",AtStop,EntryPrice*0.93); } #A6매수진입후 if MarketPosition == 1 and IsEntryName("A6") == true Then { #12% 수익이면 청산 ExitLong("H1",AtLimit,EntryPrice*1.12); #2% 이상 수익이후에 7% 하락하면 청산 if Highest(H,BarsSinceEntry) >= EntryPrice*1.02 Then ExitLong("H2",AtStop,Highest(H,BarsSinceEntry)*0.93); #7% 손실시 청산 ExitLong("H3",AtStop,EntryPrice*0.93); } #B1매수진입후 if MarketPosition == 1 and IsEntryName("B1") == true Then { #12% 수익이면 청산 ExitLong("I1",AtLimit,EntryPrice*1.12); #2% 이상 수익이후에 7% 하락하면 청산 if Highest(H,BarsSinceEntry) >= EntryPrice*1.02 Then ExitLong("I2",AtStop,Highest(H,BarsSinceEntry)*0.93); #7% 손실시 청산 ExitLong("I3",AtStop,EntryPrice*0.93); } #B2매수진입후 if MarketPosition == 1 and IsEntryName("B2") == true Then { #12% 수익이면 청산 ExitLong("J1",AtLimit,EntryPrice*1.12); #2% 이상 수익이후에 7% 하락하면 청산 if Highest(H,BarsSinceEntry) >= EntryPrice*1.02 Then ExitLong("J2",AtStop,Highest(H,BarsSinceEntry)*0.93); #7% 손실시 청산 ExitLong("J3",AtStop,EntryPrice*0.93); } #B3매수진입후 if MarketPosition == 1 and IsEntryName("B3") == true Then { #12% 수익이면 청산 ExitLong("K1",AtLimit,EntryPrice*1.12); #2% 이상 수익이후에 7% 하락하면 청산 if Highest(H,BarsSinceEntry) >= EntryPrice*1.02 Then ExitLong("K2",AtStop,Highest(H,BarsSinceEntry)*0.93); #7% 손실시 청산 ExitLong("K3",AtStop,EntryPrice*0.93); } #B4매수진입후 if MarketPosition == 1 and IsEntryName("B4") == true Then { #12% 수익이면 청산 ExitLong("L1",AtLimit,EntryPrice*1.12); #2% 이상 수익이후에 7% 하락하면 청산 if Highest(H,BarsSinceEntry) >= EntryPrice*1.02 Then ExitLong("L2",AtStop,Highest(H,BarsSinceEntry)*0.93); #7% 손실시 청산 ExitLong("L3",AtStop,EntryPrice*0.93); } #B5매수진입후 if MarketPosition == 1 and IsEntryName("B5") == true Then { #12% 수익이면 청산 ExitLong("M1",AtLimit,EntryPrice*1.12); #2% 이상 수익이후에 7% 하락하면 청산 if Highest(H,BarsSinceEntry) >= EntryPrice*1.02 Then ExitLong("M2",AtStop,Highest(H,BarsSinceEntry)*0.93); #7% 손실시 청산 ExitLong("M3",AtStop,EntryPrice*0.93); } #B6매수진입후 if MarketPosition == 1 and IsEntryName("B6") == true Then { #12% 수익이면 청산 ExitLong("N1",AtLimit,EntryPrice*1.12); #2% 이상 수익이후에 7% 하락하면 청산 if Highest(H,BarsSinceEntry) >= EntryPrice*1.02 Then ExitLong("N2",AtStop,Highest(H,BarsSinceEntry)*0.93); #7% 손실시 청산 ExitLong("N3",AtStop,EntryPrice*0.93); } ----------------------------------------------------------------- 안녕하세요 아까 질문에 대한 답변을 받아 제가 수정해서 완성시켜 봤는데요 질문이 다시 생겨서 글남깁니다. 이렇게 작성했는데 일단 검증은 되서 다행이긴 한데요 뭘 잘못한건지 ㅍ.ㅍ 예상과는 달라서요 질문 1. 파일을 보면 A3 A2의 청산은 나타나지 않고 A5의 청산인 G1만 동시에 3개가 뜹니다. 즉,왜 H1, D1이 나타나지 않는지 나타나게 하려면 어케해야하는지 알려주세요 따로따로 뜨게해주세요 ㅠ.ㅠ왜 수익선이 한곳에 몰려있는지 후아,,,, 2. G1보다 먼저 2봉전에 A3의 청산조건인 H1이 충족(12프로이상됨)되어 차트상 떠야하는데 왜 안뜨는지 알려주세요 3. 시스템 변수 설정창에서 당일청산에서 시간으로 3:00PM으로 설정하면 매도청산이 그 시점까지만 이루어지는지 알려주세요 4. 이건 기본 차트 질문인데요. 차트 오른쪽에 가격이 뜨는것을 퍼센티지로 변경하려면 어케해야하는지 알려주세요 첨부파일을 보면 7000~9000원이 아닌 0프로에서 30프로로 이런식으로..뜨게요 정말 항상 노고에 감사드리며 첨부파일 올립니다