커뮤니티

문의

프로필 이미지
구다이전설
2013-06-24 15:22:23
155
글번호 64650
답변완료
이익 나면 진입금지. 이익 안나면 한번더 진입 식입니다 수정 부탁 드립니다 Input : Period(10),P(12); value1 = DIPlus(Period); value2 = DIMinus(Period); var1=adx(p); var : cnt(0),count(0); count = 0; for cnt = 0 to 20{ if EntryDate(cnt) == sdate Then count = count+1; } if count == 0 or (MarketPosition == 0 and count == 1 and PositionProfit(1) < 0) or (MarketPosition == -1 and count == 1 and C > EntryPrice) Then{ if value1 > value2 Then { Buy(); } if MarketPosition ==1 then{ if CrossDown(var1, 40) or CrossDown( value1,value2) Then exitlong(); } } if count == 0 or (MarketPosition == 0 and count == 1 and PositionProfit(1) < 0) or (MarketPosition == 1 and count == 1 and C < EntryPrice) Then{ If value1< value2 Then { Sell(); } if MarketPosition ==-1 then { if CrossDown(var1, 40) Then exitshort(); } }
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2013-06-24 15:39:07

안녕하세요 예스스탁입니다. Input : Period(10),P(12); value1 = DIPlus(Period); value2 = DIMinus(Period); var1=adx(p); var : cnt(0),count(0); count = 0; for cnt = 0 to 20{ if EntryDate(cnt) == sdate Then count = count+1; } if count == 0 or (MarketPosition == 0 and count == 1 and PositionProfit(1) < 0) or (MarketPosition == -1 and count == 1 and C > EntryPrice) Then{ if value1 > value2 Then { Buy(); } } if MarketPosition ==1 then{ if CrossDown(var1, 40) or CrossDown( value1,value2) Then exitlong(); } if count == 0 or (MarketPosition == 0 and count == 1 and PositionProfit(1) < 0) or (MarketPosition == 1 and count == 1 and C < EntryPrice) Then{ If value1< value2 Then { Sell(); } } if MarketPosition ==-1 then { if CrossDown(var1, 40) Then exitshort(); } 즐거운 하루되세요 > 구다이전설 님이 쓴 글입니다. > 제목 : 문의 > 이익 나면 진입금지. 이익 안나면 한번더 진입 식입니다 수정 부탁 드립니다 Input : Period(10),P(12); value1 = DIPlus(Period); value2 = DIMinus(Period); var1=adx(p); var : cnt(0),count(0); count = 0; for cnt = 0 to 20{ if EntryDate(cnt) == sdate Then count = count+1; } if count == 0 or (MarketPosition == 0 and count == 1 and PositionProfit(1) < 0) or (MarketPosition == -1 and count == 1 and C > EntryPrice) Then{ if value1 > value2 Then { Buy(); } if MarketPosition ==1 then{ if CrossDown(var1, 40) or CrossDown( value1,value2) Then exitlong(); } } if count == 0 or (MarketPosition == 0 and count == 1 and PositionProfit(1) < 0) or (MarketPosition == 1 and count == 1 and C < EntryPrice) Then{ If value1< value2 Then { Sell(); } if MarketPosition ==-1 then { if CrossDown(var1, 40) Then exitshort(); } }