커뮤니티

수정요청 드립니다.

프로필 이미지
대구어린울프
2019-11-14 00:00:27
256
글번호 133621
답변완료

첨부 이미지

안녕하세요? 답변 감사히 잘 받았습니다. 아래수식에서 문제점이있어 수정부탁 드립니다. 진입이 의도와 다르게 되더라구요. ***진입 1)매수 : 음봉 몸통길이가 (외부변수)틱이 나온후, 그 음봉의 시가를 한틱 돌파해서 마감하는 양봉출현시 진입. 2)매도 : 양봉 몸통길이가 (외부변수)틱이 나온후, 그 양봉의 시가를 한틱 돌파해서 마감하는 음봉 출현시 진입. ***문제점 현재 기준봉과 진입봉이 서로 아무관계없이 진입하고있고, 기준봉을 외부변수로 지정하면 그 지정한틱수에 진입을 하고있습니다. 문제점 살펴보시어 수정 부탁드립니다. 감사합니다. ---------------------------------------------------------------------------------------- input : 진입횟수(3),n(2); var : Entry(0),BuySetup(false),SellSetup(false); var : BuyPrice(0),SellPrice(0); if bdate != bdate[1] Then { entry = 0; BuySetup = false; SellSetup = false; } if MarketPosition != 0 and MarketPosition != MarketPosition[1] Then entry = entry+1; if C > O and abs(C-O) == PriceScale*n Then { BuySetup = true; BuyPrice = O; } if C < O and abs(C-O) == PriceScale*n Then { SellSetup = true; SellPrice = O; } if entry < 진입횟수 and BuySetup == true and C > O and C >= BuyPrice+PriceScale*1 Then { buy(); BuySetup = false; } if entry < 진입횟수 and SellSetup == true and C < O and C <= SellPrice-PriceScale*1 Then { Sell(); SellSetup = false; }
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2019-11-14 10:54:19

안녕하세요 예스스탁입니다. 양봉음봉기준이 매수매도가 반대로 되어 있어 수정했습니다. 1번 수식은 n틱음봉 뒤에 음봉의 시가를 1틱이상 돌파하는 양봉이 발생시에 신호가 발생합니다. n틱양봉 뒤에 음봉의 시가를 1틱이상 돌파하는 음봉이 발생시에 신호가 발생합니다. 돌파봉이 정확히 한틱 돌파해서 마감된 봉이면 2번식 사용하시기 바랍니다. 1 input : 진입횟수(3),n(2),돌파틱(1); var : Entry(0),BuySetup(false),SellSetup(false); var : BuyPrice(0),SellPrice(0); if bdate != bdate[1] Then { entry = 0; BuySetup = false; SellSetup = false; } if MarketPosition != 0 and MarketPosition != MarketPosition[1] Then entry = entry+1; if C < O and abs(C-O) == PriceScale*n Then { BuySetup = true; BuyPrice = O; } if C > O and abs(C-O) == PriceScale*n Then { SellSetup = true; SellPrice = O; } if entry < 진입횟수 and BuySetup == true and C > O and C >= BuyPrice+PriceScale*돌파틱 Then { buy(); BuySetup = false; } if entry < 진입횟수 and SellSetup == true and C < O and C <= SellPrice-PriceScale*돌파틱 Then { Sell(); SellSetup = false; } 2 input : 진입횟수(3),n(2),돌파틱(1); var : Entry(0),BuySetup(false),SellSetup(false); var : BuyPrice(0),SellPrice(0); if bdate != bdate[1] Then { entry = 0; BuySetup = false; SellSetup = false; } if MarketPosition != 0 and MarketPosition != MarketPosition[1] Then entry = entry+1; if C < O and abs(C-O) == PriceScale*n Then { BuySetup = true; BuyPrice = O; } if C > O and abs(C-O) == PriceScale*n Then { SellSetup = true; SellPrice = O; } if entry < 진입횟수 and BuySetup == true and C > O and C == BuyPrice+PriceScale*돌파틱 Then { buy(); BuySetup = false; } if entry < 진입횟수 and SellSetup == true and C < O and C == SellPrice-PriceScale*돌파틱 Then { Sell(); SellSetup = false; } 즐거운 하루되세요 > 대구어린울프 님이 쓴 글입니다. > 제목 : 수정요청 드립니다. > 안녕하세요? 답변 감사히 잘 받았습니다. 아래수식에서 문제점이있어 수정부탁 드립니다. 진입이 의도와 다르게 되더라구요. ***진입 1)매수 : 음봉 몸통길이가 (외부변수)틱이 나온후, 그 음봉의 시가를 한틱 돌파해서 마감하는 양봉출현시 진입. 2)매도 : 양봉 몸통길이가 (외부변수)틱이 나온후, 그 양봉의 시가를 한틱 돌파해서 마감하는 음봉 출현시 진입. ***문제점 현재 기준봉과 진입봉이 서로 아무관계없이 진입하고있고, 기준봉을 외부변수로 지정하면 그 지정한틱수에 진입을 하고있습니다. 문제점 살펴보시어 수정 부탁드립니다. 감사합니다. ---------------------------------------------------------------------------------------- input : 진입횟수(3),n(2); var : Entry(0),BuySetup(false),SellSetup(false); var : BuyPrice(0),SellPrice(0); if bdate != bdate[1] Then { entry = 0; BuySetup = false; SellSetup = false; } if MarketPosition != 0 and MarketPosition != MarketPosition[1] Then entry = entry+1; if C > O and abs(C-O) == PriceScale*n Then { BuySetup = true; BuyPrice = O; } if C < O and abs(C-O) == PriceScale*n Then { SellSetup = true; SellPrice = O; } if entry < 진입횟수 and BuySetup == true and C > O and C >= BuyPrice+PriceScale*1 Then { buy(); BuySetup = false; } if entry < 진입횟수 and SellSetup == true and C < O and C <= SellPrice-PriceScale*1 Then { Sell(); SellSetup = false; }