커뮤니티

문의

프로필 이미지
자라도
2015-11-19 10:08:44
169
글번호 92545
답변완료
아래수식 문제점이 먼가요? sto 지표주기 100,100,40 이 매수일때 sto 지표주기 10,5 에서 매수진입 매도청산 sto 지표주기 100,100,40 이 매도일때 sto 지표주기 10,5 에서 매도진입 매수청산 sto 지표주기 10,5 에서 진입보유시 지표주기 100,100,40 신호바뀔시 무조건청산 하려고 하는데 신호가 안나오내요??? input:b_time1(000000),e_time1(240000),목표청산1(3), stoK_p11(100),stoK_p12(100),stoK_p13(40),sto1(10),sto2(5), ma_p11(35),ma_p12(15),ma_p13(25),ma_p14(300),ma_p15(50),ma_p16(30),ma_p17(55); Var:stoK(0),stoD(0),TRIXv(0),TRIXsig(0),stokk(0); stokk = StochasticsK(sto1,sto2); If b_time1 <= Time and Time <= e_time1 Then { stoK = StochasticsK(stoK_p11,stoK_p12); stoD = StochasticsD(stoK_p11,stoK_p12,stoK_p13); If countif(ma(C,ma_p11)[1] < ma(C,ma_p11),1) == 1 and (ma(C,ma_p12)[1] <= ma(C,ma_p13)[1] and ma(C,ma_p12) > ma(C,ma_p13)) and countif(ma(C,ma_p14)[1] < ma(C,ma_p14),1) == 1 and countif(ma(C,ma_p15)[1] < ma(C,ma_p15),1) == 1 and countif(ma(C,ma_p16)[1] < ma(C,ma_p16),1) == 1 and countif(ma(C,ma_p17)[1] < ma(C,ma_p17),1) == 1 Then { If !(ExitName(1) == "StopProfitTarget" and (EntryName(1) == "매수" or EntryName(1) == "매수2" or EntryName(1) == "매수3") and MarketPosition == 0) Then if countif(stokk>stokk[1],2) == 1 and stokk[1] < 10 Then buy("b매수"); if countif(stokk<stokk[1],2) == 1 and stokk[1] > 90 Then exitlong("b매도"); # Buy("매수",AtMarket); } If countif(ma(C,ma_p11)[1] > ma(C,ma_p11),1) == 1 and (ma(C,ma_p12)[1] >= ma(C,ma_p13)[1] and ma(C,ma_p12) < ma(C,ma_p13)) and countif(ma(C,ma_p14)[1] > ma(C,ma_p14),1) == 1 and countif(ma(C,ma_p15)[1] > ma(C,ma_p15),1) == 1 and countif(ma(C,ma_p16)[1] > ma(C,ma_p16),1) == 1 and countif(ma(C,ma_p17)[1] > ma(C,ma_p17),1) == 1 Then { If !(ExitName(1) == "StopProfitTarget" and (EntryName(1) == "매도" or EntryName(1) == "매도2" or EntryName(1) == "매도3") and MarketPosition == 0) Then if countif(stokk<stokk[1],2) == 1 and stokk[1] > 90 Then exitlong("s매도"); if countif(stokk>stokk[1],2) == 1 and stokk[1] < 10 Then buy("s매수"); # Sell("매도",AtMarket); } SetStopProfittarget(목표청산1); }
시스템
답변 3
프로필 이미지

예스스탁 예스스탁 답변

2015-11-19 13:18:28

안녕하세요 예스스탁입니다. 올려주신 내용과 수식이 내용이 맞지 않고 작성된 수식도 청산에 불필 수식에는 없는 진입명으로 조건이 있어 수식을 어떻게 수정해 드려야 할지 모르겟습니다. 작성하고자 하시는 수식의 내용을 글로 올려주시기 바랍니다. 특정지표 매수라고만 하시면 전략내용을 알수가 없습니다. 좀더 자세한 내용 올려주시기 바랍니다. 즐거운 하루되세요 > 자라도 님이 쓴 글입니다. > 제목 : 문의 > 아래수식 문제점이 먼가요? sto 지표주기 100,100,40 이 매수일때 sto 지표주기 10,5 에서 매수진입 매도청산 sto 지표주기 100,100,40 이 매도일때 sto 지표주기 10,5 에서 매도진입 매수청산 sto 지표주기 10,5 에서 진입보유시 지표주기 100,100,40 신호바뀔시 무조건청산 하려고 하는데 신호가 안나오내요??? input:b_time1(000000),e_time1(240000),목표청산1(3), stoK_p11(100),stoK_p12(100),stoK_p13(40),sto1(10),sto2(5), ma_p11(35),ma_p12(15),ma_p13(25),ma_p14(300),ma_p15(50),ma_p16(30),ma_p17(55); Var:stoK(0),stoD(0),TRIXv(0),TRIXsig(0),stokk(0); stokk = StochasticsK(sto1,sto2); If b_time1 <= Time and Time <= e_time1 Then { stoK = StochasticsK(stoK_p11,stoK_p12); stoD = StochasticsD(stoK_p11,stoK_p12,stoK_p13); If countif(ma(C,ma_p11)[1] < ma(C,ma_p11),1) == 1 and (ma(C,ma_p12)[1] <= ma(C,ma_p13)[1] and ma(C,ma_p12) > ma(C,ma_p13)) and countif(ma(C,ma_p14)[1] < ma(C,ma_p14),1) == 1 and countif(ma(C,ma_p15)[1] < ma(C,ma_p15),1) == 1 and countif(ma(C,ma_p16)[1] < ma(C,ma_p16),1) == 1 and countif(ma(C,ma_p17)[1] < ma(C,ma_p17),1) == 1 Then { If !(ExitName(1) == "StopProfitTarget" and (EntryName(1) == "매수" or EntryName(1) == "매수2" or EntryName(1) == "매수3") and MarketPosition == 0) Then if countif(stokk>stokk[1],2) == 1 and stokk[1] < 10 Then buy("b매수"); if countif(stokk<stokk[1],2) == 1 and stokk[1] > 90 Then exitlong("b매도"); # Buy("매수",AtMarket); } If countif(ma(C,ma_p11)[1] > ma(C,ma_p11),1) == 1 and (ma(C,ma_p12)[1] >= ma(C,ma_p13)[1] and ma(C,ma_p12) < ma(C,ma_p13)) and countif(ma(C,ma_p14)[1] > ma(C,ma_p14),1) == 1 and countif(ma(C,ma_p15)[1] > ma(C,ma_p15),1) == 1 and countif(ma(C,ma_p16)[1] > ma(C,ma_p16),1) == 1 and countif(ma(C,ma_p17)[1] > ma(C,ma_p17),1) == 1 Then { If !(ExitName(1) == "StopProfitTarget" and (EntryName(1) == "매도" or EntryName(1) == "매도2" or EntryName(1) == "매도3") and MarketPosition == 0) Then if countif(stokk<stokk[1],2) == 1 and stokk[1] > 90 Then exitlong("s매도"); if countif(stokk>stokk[1],2) == 1 and stokk[1] < 10 Then buy("s매수"); # Sell("매도",AtMarket); } SetStopProfittarget(목표청산1); }
프로필 이미지

자라도

2015-11-19 13:45:45

input:b_time1(000000),e_time1(240000),목표청산1(3), stoK_p11(50),stoK_p12(50),stoK_p13(10), ma_p11(25),ma_p12(5),ma_p13(15),ma_p14(100),ma_p15(10),ma_p16(20),ma_p17(15); Var:stoK(0),stoD(0),TRIXv(0),TRIXsig(0),stokk(0); If b_time1 <= Time and Time <= e_time1 Then { stoK = StochasticsK(stoK_p11,stoK_p12); stoD = StochasticsD(stoK_p11,stoK_p12,stoK_p13); If countif(ma(C,ma_p11)[1] < ma(C,ma_p11),1) == 1 and (ma(C,ma_p12)[1] <= ma(C,ma_p13)[1] and ma(C,ma_p12) > ma(C,ma_p13)) and countif(ma(C,ma_p14)[1] < ma(C,ma_p14),1) == 1 and countif(ma(C,ma_p15)[1] < ma(C,ma_p15),1) == 1 and countif(ma(C,ma_p16)[1] < ma(C,ma_p16),1) == 1 and countif(ma(C,ma_p17)[1] < ma(C,ma_p17),1) == 1 Then { If !(ExitName(1) == "StopProfitTarget" and (EntryName(1) == "매수" or EntryName(1) == "매수2" or EntryName(1) == "매수3") and MarketPosition == 0) Then Buy("매수",AtMarket); } If countif(ma(C,ma_p11)[1] > ma(C,ma_p11),1) == 1 and (ma(C,ma_p12)[1] >= ma(C,ma_p13)[1] and ma(C,ma_p12) < ma(C,ma_p13)) and countif(ma(C,ma_p14)[1] > ma(C,ma_p14),1) == 1 and countif(ma(C,ma_p15)[1] > ma(C,ma_p15),1) == 1 and countif(ma(C,ma_p16)[1] > ma(C,ma_p16),1) == 1 and countif(ma(C,ma_p17)[1] > ma(C,ma_p17),1) == 1 Then { If !(ExitName(1) == "StopProfitTarget" and (EntryName(1) == "매도" or EntryName(1) == "매도2" or EntryName(1) == "매도3") and MarketPosition == 0) Then Sell("매도",AtMarket); } SetStopProfittarget(목표청산1); } 위식에 의해 매수 매도 신호가 발생되어집니다. 그러면 아래식에 의해 실제로 진입하는것입니다. 단 위식이 매수일때는 아래식도 매수신호가 나올때 먼저 들어가고 매도신호시 청산이고 위식이 매도일때는 아래식도 매도신호가 나올때 먼저 들어가서 매수신호시 청산입니다. 아래식으로 진입해서 보유시 위의 식이 신호가 바뀌어지면 바로청산하고 위의 식에서 나온 신호방향대로 진입하는겁니다. 여기에서 위에 표시한 식에서 trix 라든가 다른 함수는 신경안쓰셔되 됩니다. input : sto1(30),sto2(6); var : stok(0); stok = StochasticsK(sto1,sto2); if countif(stok>stok[1],2) == 1 and stok[1] < 10 Then buy("매수"); if countif(stok<stok[1],2) == 1 and stok[1] > 90 Then exitlong("매도"); > 예스스탁 님이 쓴 글입니다. > 제목 : Re : 문의 > 안녕하세요 예스스탁입니다. 올려주신 내용과 수식이 내용이 맞지 않고 작성된 수식도 청산에 불필 수식에는 없는 진입명으로 조건이 있어 수식을 어떻게 수정해 드려야 할지 모르겟습니다. 작성하고자 하시는 수식의 내용을 글로 올려주시기 바랍니다. 특정지표 매수라고만 하시면 전략내용을 알수가 없습니다. 좀더 자세한 내용 올려주시기 바랍니다. 즐거운 하루되세요 > 자라도 님이 쓴 글입니다. > 제목 : 문의 > 아래수식 문제점이 먼가요? sto 지표주기 100,100,40 이 매수일때 sto 지표주기 10,5 에서 매수진입 매도청산 sto 지표주기 100,100,40 이 매도일때 sto 지표주기 10,5 에서 매도진입 매수청산 sto 지표주기 10,5 에서 진입보유시 지표주기 100,100,40 신호바뀔시 무조건청산 하려고 하는데 신호가 안나오내요??? input:b_time1(000000),e_time1(240000),목표청산1(3), stoK_p11(100),stoK_p12(100),stoK_p13(40),sto1(10),sto2(5), ma_p11(35),ma_p12(15),ma_p13(25),ma_p14(300),ma_p15(50),ma_p16(30),ma_p17(55); Var:stoK(0),stoD(0),TRIXv(0),TRIXsig(0),stokk(0); stokk = StochasticsK(sto1,sto2); If b_time1 <= Time and Time <= e_time1 Then { stoK = StochasticsK(stoK_p11,stoK_p12); stoD = StochasticsD(stoK_p11,stoK_p12,stoK_p13); If countif(ma(C,ma_p11)[1] < ma(C,ma_p11),1) == 1 and (ma(C,ma_p12)[1] <= ma(C,ma_p13)[1] and ma(C,ma_p12) > ma(C,ma_p13)) and countif(ma(C,ma_p14)[1] < ma(C,ma_p14),1) == 1 and countif(ma(C,ma_p15)[1] < ma(C,ma_p15),1) == 1 and countif(ma(C,ma_p16)[1] < ma(C,ma_p16),1) == 1 and countif(ma(C,ma_p17)[1] < ma(C,ma_p17),1) == 1 Then { If !(ExitName(1) == "StopProfitTarget" and (EntryName(1) == "매수" or EntryName(1) == "매수2" or EntryName(1) == "매수3") and MarketPosition == 0) Then if countif(stokk>stokk[1],2) == 1 and stokk[1] < 10 Then buy("b매수"); if countif(stokk<stokk[1],2) == 1 and stokk[1] > 90 Then exitlong("b매도"); # Buy("매수",AtMarket); } If countif(ma(C,ma_p11)[1] > ma(C,ma_p11),1) == 1 and (ma(C,ma_p12)[1] >= ma(C,ma_p13)[1] and ma(C,ma_p12) < ma(C,ma_p13)) and countif(ma(C,ma_p14)[1] > ma(C,ma_p14),1) == 1 and countif(ma(C,ma_p15)[1] > ma(C,ma_p15),1) == 1 and countif(ma(C,ma_p16)[1] > ma(C,ma_p16),1) == 1 and countif(ma(C,ma_p17)[1] > ma(C,ma_p17),1) == 1 Then { If !(ExitName(1) == "StopProfitTarget" and (EntryName(1) == "매도" or EntryName(1) == "매도2" or EntryName(1) == "매도3") and MarketPosition == 0) Then if countif(stokk<stokk[1],2) == 1 and stokk[1] > 90 Then exitlong("s매도"); if countif(stokk>stokk[1],2) == 1 and stokk[1] < 10 Then buy("s매수"); # Sell("매도",AtMarket); } SetStopProfittarget(목표청산1); }
프로필 이미지

예스스탁 예스스탁 답변

2015-11-19 14:40:12

안녕하세요 예스스탁입니다. input : b_time1(000000),e_time1(240000),목표청산1(3); input : stoK_p11(50),stoK_p12(50),stoK_p13(10); input : ma_p11(25),ma_p12(5),ma_p13(15),ma_p14(100),ma_p15(10),ma_p16(20),ma_p17(15); input : sto1(30),sto2(6); Var:stoK1(0),stoD1(0),TRIXv(0),TRIXsig(0),stok2(0),T(0); stok2 = StochasticsK(sto1,sto2); If b_time1 <= Time and Time <= e_time1 Then { stoK1 = StochasticsK(stoK_p11,stoK_p12); stoD1 = StochasticsD(stoK_p11,stoK_p12,stoK_p13); If countif(ma(C,ma_p11)[1] < ma(C,ma_p11),1) == 1 and (ma(C,ma_p12)[1] <= ma(C,ma_p13)[1] and ma(C,ma_p12) > ma(C,ma_p13)) and countif(ma(C,ma_p14)[1] < ma(C,ma_p14),1) == 1 and countif(ma(C,ma_p15)[1] < ma(C,ma_p15),1) == 1 and countif(ma(C,ma_p16)[1] < ma(C,ma_p16),1) == 1 and countif(ma(C,ma_p17)[1] < ma(C,ma_p17),1) == 1 Then { T = 1; if MarketPosition == -1 Then ExitShort("매도청산1"); } If countif(ma(C,ma_p11)[1] > ma(C,ma_p11),1) == 1 and (ma(C,ma_p12)[1] >= ma(C,ma_p13)[1] and ma(C,ma_p12) < ma(C,ma_p13)) and countif(ma(C,ma_p14)[1] > ma(C,ma_p14),1) == 1 and countif(ma(C,ma_p15)[1] > ma(C,ma_p15),1) == 1 and countif(ma(C,ma_p16)[1] > ma(C,ma_p16),1) == 1 and countif(ma(C,ma_p17)[1] > ma(C,ma_p17),1) == 1 Then { T = -1; if MarketPosition == 1 Then ExitLong("매수청산1"); } } if T == 1 then{ if countif(stok2>stok2[1],2) == 1 and stok2[1] < 10 Then buy("매수2"); if countif(stok2<stok2[1],2) == 1 and stok2[1] > 90 Then ExitLong("매수청산2"); } if T == -1 then{ if countif(stok2<stok2[1],2) == 1 and stok2[1] > 90 Then sell("매도2"); if countif(stok2>stok2[1],2) == 1 and stok2[1] < 10 Then ExitShort("매도청산2"); } 즐거운 하루되세요 > 자라도 님이 쓴 글입니다. > 제목 : Re : Re : 문의 > input:b_time1(000000),e_time1(240000),목표청산1(3), stoK_p11(50),stoK_p12(50),stoK_p13(10), ma_p11(25),ma_p12(5),ma_p13(15),ma_p14(100),ma_p15(10),ma_p16(20),ma_p17(15); Var:stoK(0),stoD(0),TRIXv(0),TRIXsig(0),stokk(0); If b_time1 <= Time and Time <= e_time1 Then { stoK = StochasticsK(stoK_p11,stoK_p12); stoD = StochasticsD(stoK_p11,stoK_p12,stoK_p13); If countif(ma(C,ma_p11)[1] < ma(C,ma_p11),1) == 1 and (ma(C,ma_p12)[1] <= ma(C,ma_p13)[1] and ma(C,ma_p12) > ma(C,ma_p13)) and countif(ma(C,ma_p14)[1] < ma(C,ma_p14),1) == 1 and countif(ma(C,ma_p15)[1] < ma(C,ma_p15),1) == 1 and countif(ma(C,ma_p16)[1] < ma(C,ma_p16),1) == 1 and countif(ma(C,ma_p17)[1] < ma(C,ma_p17),1) == 1 Then { If !(ExitName(1) == "StopProfitTarget" and (EntryName(1) == "매수" or EntryName(1) == "매수2" or EntryName(1) == "매수3") and MarketPosition == 0) Then Buy("매수",AtMarket); } If countif(ma(C,ma_p11)[1] > ma(C,ma_p11),1) == 1 and (ma(C,ma_p12)[1] >= ma(C,ma_p13)[1] and ma(C,ma_p12) < ma(C,ma_p13)) and countif(ma(C,ma_p14)[1] > ma(C,ma_p14),1) == 1 and countif(ma(C,ma_p15)[1] > ma(C,ma_p15),1) == 1 and countif(ma(C,ma_p16)[1] > ma(C,ma_p16),1) == 1 and countif(ma(C,ma_p17)[1] > ma(C,ma_p17),1) == 1 Then { If !(ExitName(1) == "StopProfitTarget" and (EntryName(1) == "매도" or EntryName(1) == "매도2" or EntryName(1) == "매도3") and MarketPosition == 0) Then Sell("매도",AtMarket); } SetStopProfittarget(목표청산1); } 위식에 의해 매수 매도 신호가 발생되어집니다. 그러면 아래식에 의해 실제로 진입하는것입니다. 단 위식이 매수일때는 아래식도 매수신호가 나올때 먼저 들어가고 매도신호시 청산이고 위식이 매도일때는 아래식도 매도신호가 나올때 먼저 들어가서 매수신호시 청산입니다. 아래식으로 진입해서 보유시 위의 식이 신호가 바뀌어지면 바로청산하고 위의 식에서 나온 신호방향대로 진입하는겁니다. 여기에서 위에 표시한 식에서 trix 라든가 다른 함수는 신경안쓰셔되 됩니다. input : sto1(30),sto2(6); var : stok(0); stok = StochasticsK(sto1,sto2); if countif(stok>stok[1],2) == 1 and stok[1] < 10 Then buy("매수"); if countif(stok<stok[1],2) == 1 and stok[1] > 90 Then exitlong("매도"); > 예스스탁 님이 쓴 글입니다. > 제목 : Re : 문의 > 안녕하세요 예스스탁입니다. 올려주신 내용과 수식이 내용이 맞지 않고 작성된 수식도 청산에 불필 수식에는 없는 진입명으로 조건이 있어 수식을 어떻게 수정해 드려야 할지 모르겟습니다. 작성하고자 하시는 수식의 내용을 글로 올려주시기 바랍니다. 특정지표 매수라고만 하시면 전략내용을 알수가 없습니다. 좀더 자세한 내용 올려주시기 바랍니다. 즐거운 하루되세요 > 자라도 님이 쓴 글입니다. > 제목 : 문의 > 아래수식 문제점이 먼가요? sto 지표주기 100,100,40 이 매수일때 sto 지표주기 10,5 에서 매수진입 매도청산 sto 지표주기 100,100,40 이 매도일때 sto 지표주기 10,5 에서 매도진입 매수청산 sto 지표주기 10,5 에서 진입보유시 지표주기 100,100,40 신호바뀔시 무조건청산 하려고 하는데 신호가 안나오내요??? input:b_time1(000000),e_time1(240000),목표청산1(3), stoK_p11(100),stoK_p12(100),stoK_p13(40),sto1(10),sto2(5), ma_p11(35),ma_p12(15),ma_p13(25),ma_p14(300),ma_p15(50),ma_p16(30),ma_p17(55); Var:stoK(0),stoD(0),TRIXv(0),TRIXsig(0),stokk(0); stokk = StochasticsK(sto1,sto2); If b_time1 <= Time and Time <= e_time1 Then { stoK = StochasticsK(stoK_p11,stoK_p12); stoD = StochasticsD(stoK_p11,stoK_p12,stoK_p13); If countif(ma(C,ma_p11)[1] < ma(C,ma_p11),1) == 1 and (ma(C,ma_p12)[1] <= ma(C,ma_p13)[1] and ma(C,ma_p12) > ma(C,ma_p13)) and countif(ma(C,ma_p14)[1] < ma(C,ma_p14),1) == 1 and countif(ma(C,ma_p15)[1] < ma(C,ma_p15),1) == 1 and countif(ma(C,ma_p16)[1] < ma(C,ma_p16),1) == 1 and countif(ma(C,ma_p17)[1] < ma(C,ma_p17),1) == 1 Then { If !(ExitName(1) == "StopProfitTarget" and (EntryName(1) == "매수" or EntryName(1) == "매수2" or EntryName(1) == "매수3") and MarketPosition == 0) Then if countif(stokk>stokk[1],2) == 1 and stokk[1] < 10 Then buy("b매수"); if countif(stokk<stokk[1],2) == 1 and stokk[1] > 90 Then exitlong("b매도"); # Buy("매수",AtMarket); } If countif(ma(C,ma_p11)[1] > ma(C,ma_p11),1) == 1 and (ma(C,ma_p12)[1] >= ma(C,ma_p13)[1] and ma(C,ma_p12) < ma(C,ma_p13)) and countif(ma(C,ma_p14)[1] > ma(C,ma_p14),1) == 1 and countif(ma(C,ma_p15)[1] > ma(C,ma_p15),1) == 1 and countif(ma(C,ma_p16)[1] > ma(C,ma_p16),1) == 1 and countif(ma(C,ma_p17)[1] > ma(C,ma_p17),1) == 1 Then { If !(ExitName(1) == "StopProfitTarget" and (EntryName(1) == "매도" or EntryName(1) == "매도2" or EntryName(1) == "매도3") and MarketPosition == 0) Then if countif(stokk<stokk[1],2) == 1 and stokk[1] > 90 Then exitlong("s매도"); if countif(stokk>stokk[1],2) == 1 and stokk[1] < 10 Then buy("s매수"); # Sell("매도",AtMarket); } SetStopProfittarget(목표청산1); }