커뮤니티

글번호 44208번 재질문

프로필 이미지
통큰베팅
2015-09-30 10:02:26
111
글번호 90768
답변완료
글번호 44208번 재질문입니다. 아래의 함수를 전일거래손실시에 당일거래하고자합니다. if MarketPosition <= 0 Then{ if MarketPosition == 0 and (TotalTrades == 0 or (PositionProfit(1) < 0 and PositionProfit(1) < 0)) Then buy("b1",AtStop,highest(H,10)+priceScale); if MarketPosition == -1 and PositionProfit < 0 and PositionProfit(1) < 0 Then buy("b2",AtStop,highest(H,10)+priceScale); }
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2015-09-30 16:12:37

안녕하세요 예스스탁입니다. if date != date[1] Then{ NP1 = NetProfit[1];#전일까지의 총수익 NP2 = NP1;#전전일까지의 총수익 } if MarketPosition <= 0 and NP1 < NP2 Then{ if MarketPosition == 0 and (TotalTrades == 0 or (PositionProfit(1) < 0 and PositionProfit(1) < 0)) Then buy("b1",AtStop,highest(H,10)+priceScale); if MarketPosition == -1 and PositionProfit < 0 and PositionProfit(1) < 0 Then buy("b2",AtStop,highest(H,10)+priceScale); } 즐거운 하루되세요 > 통큰베팅 님이 쓴 글입니다. > 제목 : 글번호 44208번 재질문 > 글번호 44208번 재질문입니다. 아래의 함수를 전일거래손실시에 당일거래하고자합니다. if MarketPosition <= 0 Then{ if MarketPosition == 0 and (TotalTrades == 0 or (PositionProfit(1) < 0 and PositionProfit(1) < 0)) Then buy("b1",AtStop,highest(H,10)+priceScale); if MarketPosition == -1 and PositionProfit < 0 and PositionProfit(1) < 0 Then buy("b2",AtStop,highest(H,10)+priceScale); }