커뮤니티

시스템식

프로필 이미지
외국인
2011-07-18 16:14:53
857
글번호 41046
답변완료

첨부 이미지

안녕하세요 그림과같이 신호가 너무많아서 정리 하는 방법좀알려주세요 진입후 3개봉후 역방향으로 갈 경우 반대로매수매도식 SetStopTrailing(0.05,0.25,PointStop); 청산봉에서 진입금지식 Input : af(0.02), maxAF(0.2), Period(14); Var : value(0); Var : Value1(0); value = sar(af,maxAF); Value1 = ma(bids,period)-ma(asks,period); If Value1 > Value1[1] Then { buy("1"); } Else{ sell("2"); } if C > value[1] Then { Buy("b",AtLimit,C); } if C < value[1] Then { Sell("s",AtLimit,H); } if MarketPosition == 1 and BarsSinceEntry == 2 Then var1 = countif(C > O,2); Else var1 = 0; if MarketPosition == -1 and BarsSinceEntry == 2 Then var2 = countif(C < O,2); Else var2 = 0; if ((MarketPosition == 0) or (MarketPosition == -1 and var2 < 0)) and C > value[1] then buy(); if ((MarketPosition == 0) or (MarketPosition == 1 and var1 < 0)) and C < value[1] then sell();
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2011-07-18 17:13:54

안녕하세요 예스스탁입니다 매수와 매도의 조건이 많이 만족하는 식이어서 따로 정리가 되지 않습니다, 조건식자체에서 따로 다른 조건을 추가하시거나 하셔야 합니다. 일부 정리한 식입니다. Input : af(0.02), maxAF(0.2), Period(14); Var : value(0); Var : Value1(0); value = sar(af,maxAF); Value1 = ma(bids,period)-ma(asks,period); If MarketPosition != 1 and Value1 > Value1[1] Then buy("1"); if MarketPosition != -1 and value1 < value1[1] Then sell("2"); if MarketPosition != 1 and crossup(c,value) Then{ Buy("b"); } if MarketPosition != -1 and CrossDown(C,value) Then{ Sell("s"); } if MarketPosition == 1 and BarsSinceEntry == 2 Then var1 = countif(C > O,2); Else var1 = 0; if MarketPosition == -1 and BarsSinceEntry == 2 Then var2 = countif(C < O,2); Else var2 = 0; if (MarketPosition == -1 and var2 < 0) and C > value[1] then buy("sb"); if (MarketPosition == 1 and var1 < 0) and C < value[1] then sell("bs"); if MarketPosition == 1 and BarsSinceEntry == 3 and C < EntryPrice Then sell(); if MarketPosition == -1 and BarsSinceEntry == 3 and C > EntryPrice Then buy(); 즐거운 하루되세요 > 외국인 님이 쓴 글입니다. > 제목 : 시스템식 > 안녕하세요 그림과같이 신호가 너무많아서 정리 하는 방법좀알려주세요 진입후 3개봉후 역방향으로 갈 경우 반대로매수매도식 SetStopTrailing(0.05,0.25,PointStop); 청산봉에서 진입금지식 Input : af(0.02), maxAF(0.2), Period(14); Var : value(0); Var : Value1(0); value = sar(af,maxAF); Value1 = ma(bids,period)-ma(asks,period); If Value1 > Value1[1] Then { buy("1"); } Else{ sell("2"); } if C > value[1] Then { Buy("b",AtLimit,C); } if C < value[1] Then { Sell("s",AtLimit,H); } if MarketPosition == 1 and BarsSinceEntry == 2 Then var1 = countif(C > O,2); Else var1 = 0; if MarketPosition == -1 and BarsSinceEntry == 2 Then var2 = countif(C < O,2); Else var2 = 0; if ((MarketPosition == 0) or (MarketPosition == -1 and var2 < 0)) and C > value[1] then buy(); if ((MarketPosition == 0) or (MarketPosition == 1 and var1 < 0)) and C < value[1] then sell();