커뮤니티

문의드립니다.

프로필 이미지
곽민수
2018-07-03 16:08:36
200
글번호 120252
답변완료
1. input : 진입수량(4),목표틱수1(5),목표틱수2(10),목표틱수3(15),목표틱수4(20),당일수익(500000); var : NP(0),NP1(0),DayPl(0),DP(0),Xcond(false); NP = NetProfit; DP = (당일수익/BigPointValue); if Bdate != Bdate[1] Then{ NP1 = NP; Xcond = false; } DayPL = NP-NP1; if TotalTrades > TotalTrades[1] and (IsExitName("bx",1) or IsExitName("sx",1)) Then Xcond = true; var42 = ma(C,100); if MarketPosition <= 0 and Xcond == false and TotalTrades == TotalTrades[1] and var42 > var42[1] Then{ buy("b",OnClose,def,진입수량); ExitLong("B■.",atlimit,C+PriceScale*목표틱수1,"",1,1); ExitLong("B▲.",atlimit,C+PriceScale*목표틱수2,"",1,1); ExitLong("B●.",atlimit,C+PriceScale*목표틱수3,"",1,1); ExitLong("B★.",atlimit,C+PriceScale*목표틱수4,"",1,1); } if MarketPosition >= 0 and Xcond == false and TotalTrades == TotalTrades[1] and var42 < var42[1] Then{ sell("s",OnClose,def,진입수량); ExitShort("S■ ",atlimit,C-PriceScale*목표틱수1,"",1,1); ExitShort("S▲ ",atlimit,C-PriceScale*목표틱수2,"",1,1); ExitShort("S● ",atlimit,C-PriceScale*목표틱수3,"",1,1); ExitShort("S★ ",atlimit,C-PriceScale*목표틱수4,"",1,1); } if MarketPosition == 1 Then{ ExitLong("bx",Atlimit,EntryPrice+DP-DayPL); if highest(H,BarsSinceEntry) < EntryPrice+PriceScale*목표틱수1 Then ExitLong("B■",atlimit,EntryPrice+PriceScale*목표틱수1,"",1,1); if highest(H,BarsSinceEntry) < EntryPrice+PriceScale*목표틱수2 Then ExitLong("B▲",atlimit,EntryPrice+PriceScale*목표틱수2,"",1,1); if highest(H,BarsSinceEntry) < EntryPrice+PriceScale*목표틱수3 Then ExitLong("B●",atlimit,EntryPrice+PriceScale*목표틱수3,"",1,1); if highest(H,BarsSinceEntry) < EntryPrice+PriceScale*목표틱수4 Then ExitLong("B★",atlimit,EntryPrice+PriceScale*목표틱수4,"",1,1); } if MarketPosition == -1 Then{ ExitShort("sx",Atlimit,EntryPrice-DP+DayPL); if Lowest(L,BarsSinceEntry) > EntryPrice-PriceScale*목표틱수1 Then ExitShort("S■",atlimit,EntryPrice-PriceScale*목표틱수1,"",1,1); if Lowest(L,BarsSinceEntry) > EntryPrice-PriceScale*목표틱수2 Then ExitShort("S▲",atlimit,EntryPrice-PriceScale*목표틱수2,"",1,1); if Lowest(L,BarsSinceEntry) > EntryPrice-PriceScale*목표틱수3 Then ExitShort("S●",atlimit,EntryPrice-PriceScale*목표틱수3,"",1,1); if Lowest(L,BarsSinceEntry) > EntryPrice-PriceScale*목표틱수4 Then ExitShort("S★",atlimit,EntryPrice-PriceScale*목표틱수4,"",1,1); } 이부분에 수정좀 부탁드립니다 도형 빼고.. 그리고 추가 해주셧으면하는것.. 1. 시간 설정 예 :아침부터 저녁까지 만 2. 항셍 기준이면 수익실현은 예: 1.000.00만원 할려면 숫자를 1000000 하면되나요? 3. 이수식을 볼린저밴드로 수정했으면합니다. 볼린저밴드 중앙선 기준으로 캔들봉이 중앙선을 물렸을경우 음봉 일경우 매도신호 양봉 일경우 매수신호 반대신호가 나오면 기존 계약수들은 청산후 반대신호진입 4. 변수 설정하게 수정좀 부탁드립니다.
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2018-07-04 09:57:53

안녕하세요 예스스탁입니다. 해외선물은 금액으로 지정할수 없습니다. 포인트당 금액을 알수 없습니다. 해당 종목의 포인트값으로 당일수익지정하셔야 합니다. ex)당일수익 1000포인트 input : 진입수량(4),목표틱수1(5),목표틱수2(10),목표틱수3(15),목표틱수4(20),당일수익(1000); input : 시작시간(101500),종료시간(173000),P(20); var : NP(0),NP1(0),DayPl(0),DP(0),Xcond(false),Tcond(false),BBmd(0); NP = NetProfit; DP = 당일수익; if (sdate != sdate[1] and stime >= 시작시간) or (sdate == sdate[1] and stime >= 시작시간 and stime[1] < 시작시간) Then { NP1 = NP; Xcond = false; Tcond = true; } if (sdate != sdate[1] and stime >= 종료시간) or (sdate == sdate[1] and stime >= 종료시간 and stime[1] < 종료시간) Then { Tcond = false; } DayPL = NP-NP1; if TotalTrades > TotalTrades[1] and (IsExitName("bx",1) or IsExitName("sx",1)) Then Xcond = true; bbmd = ma(C,P); if MarketPosition <= 0 and Xcond == false and Tcond == true and TotalTrades == TotalTrades[1] and H >= BBmd and BBmd >= L and C > O Then{ buy("b",OnClose,def,진입수량); ExitLong("Bx1.",atlimit,C+PriceScale*목표틱수1,"",1,1); ExitLong("Bx2.",atlimit,C+PriceScale*목표틱수2,"",1,1); ExitLong("Bx3.",atlimit,C+PriceScale*목표틱수3,"",1,1); ExitLong("Bx4.",atlimit,C+PriceScale*목표틱수4,"",1,1); } if MarketPosition >= 0 and Xcond == false and Tcond == true and TotalTrades == TotalTrades[1] and H >= BBmd and BBmd >= L Then{ sell("s",OnClose,def,진입수량); ExitShort("Sx1.",atlimit,C-PriceScale*목표틱수1,"",1,1); ExitShort("Sx2.",atlimit,C-PriceScale*목표틱수2,"",1,1); ExitShort("Sx3.",atlimit,C-PriceScale*목표틱수3,"",1,1); ExitShort("Sx4. ",atlimit,C-PriceScale*목표틱수4,"",1,1); } if MarketPosition == 1 Then{ ExitLong("bx",Atlimit,EntryPrice+DP-DayPL); if highest(H,BarsSinceEntry) < EntryPrice+PriceScale*목표틱수1 Then ExitLong("Bx1",atlimit,EntryPrice+PriceScale*목표틱수1,"",1,1); if highest(H,BarsSinceEntry) < EntryPrice+PriceScale*목표틱수2 Then ExitLong("Bx2",atlimit,EntryPrice+PriceScale*목표틱수2,"",1,1); if highest(H,BarsSinceEntry) < EntryPrice+PriceScale*목표틱수3 Then ExitLong("Bx3",atlimit,EntryPrice+PriceScale*목표틱수3,"",1,1); if highest(H,BarsSinceEntry) < EntryPrice+PriceScale*목표틱수4 Then ExitLong("Bx4",atlimit,EntryPrice+PriceScale*목표틱수4,"",1,1); } if MarketPosition == -1 Then{ ExitShort("sx",Atlimit,EntryPrice-DP+DayPL); if Lowest(L,BarsSinceEntry) > EntryPrice-PriceScale*목표틱수1 Then ExitShort("Sx1",atlimit,EntryPrice-PriceScale*목표틱수1,"",1,1); if Lowest(L,BarsSinceEntry) > EntryPrice-PriceScale*목표틱수2 Then ExitShort("Sx2",atlimit,EntryPrice-PriceScale*목표틱수2,"",1,1); if Lowest(L,BarsSinceEntry) > EntryPrice-PriceScale*목표틱수3 Then ExitShort("Sx3",atlimit,EntryPrice-PriceScale*목표틱수3,"",1,1); if Lowest(L,BarsSinceEntry) > EntryPrice-PriceScale*목표틱수4 Then ExitShort("Sx4",atlimit,EntryPrice-PriceScale*목표틱수4,"",1,1); } 즐거운 하루되세요 > 곽민수 님이 쓴 글입니다. > 제목 : 문의드립니다. > 1. input : 진입수량(4),목표틱수1(5),목표틱수2(10),목표틱수3(15),목표틱수4(20),당일수익(500000); var : NP(0),NP1(0),DayPl(0),DP(0),Xcond(false); NP = NetProfit; DP = (당일수익/BigPointValue); if Bdate != Bdate[1] Then{ NP1 = NP; Xcond = false; } DayPL = NP-NP1; if TotalTrades > TotalTrades[1] and (IsExitName("bx",1) or IsExitName("sx",1)) Then Xcond = true; var42 = ma(C,100); if MarketPosition <= 0 and Xcond == false and TotalTrades == TotalTrades[1] and var42 > var42[1] Then{ buy("b",OnClose,def,진입수량); ExitLong("B■.",atlimit,C+PriceScale*목표틱수1,"",1,1); ExitLong("B▲.",atlimit,C+PriceScale*목표틱수2,"",1,1); ExitLong("B●.",atlimit,C+PriceScale*목표틱수3,"",1,1); ExitLong("B★.",atlimit,C+PriceScale*목표틱수4,"",1,1); } if MarketPosition >= 0 and Xcond == false and TotalTrades == TotalTrades[1] and var42 < var42[1] Then{ sell("s",OnClose,def,진입수량); ExitShort("S■ ",atlimit,C-PriceScale*목표틱수1,"",1,1); ExitShort("S▲ ",atlimit,C-PriceScale*목표틱수2,"",1,1); ExitShort("S● ",atlimit,C-PriceScale*목표틱수3,"",1,1); ExitShort("S★ ",atlimit,C-PriceScale*목표틱수4,"",1,1); } if MarketPosition == 1 Then{ ExitLong("bx",Atlimit,EntryPrice+DP-DayPL); if highest(H,BarsSinceEntry) < EntryPrice+PriceScale*목표틱수1 Then ExitLong("B■",atlimit,EntryPrice+PriceScale*목표틱수1,"",1,1); if highest(H,BarsSinceEntry) < EntryPrice+PriceScale*목표틱수2 Then ExitLong("B▲",atlimit,EntryPrice+PriceScale*목표틱수2,"",1,1); if highest(H,BarsSinceEntry) < EntryPrice+PriceScale*목표틱수3 Then ExitLong("B●",atlimit,EntryPrice+PriceScale*목표틱수3,"",1,1); if highest(H,BarsSinceEntry) < EntryPrice+PriceScale*목표틱수4 Then ExitLong("B★",atlimit,EntryPrice+PriceScale*목표틱수4,"",1,1); } if MarketPosition == -1 Then{ ExitShort("sx",Atlimit,EntryPrice-DP+DayPL); if Lowest(L,BarsSinceEntry) > EntryPrice-PriceScale*목표틱수1 Then ExitShort("S■",atlimit,EntryPrice-PriceScale*목표틱수1,"",1,1); if Lowest(L,BarsSinceEntry) > EntryPrice-PriceScale*목표틱수2 Then ExitShort("S▲",atlimit,EntryPrice-PriceScale*목표틱수2,"",1,1); if Lowest(L,BarsSinceEntry) > EntryPrice-PriceScale*목표틱수3 Then ExitShort("S●",atlimit,EntryPrice-PriceScale*목표틱수3,"",1,1); if Lowest(L,BarsSinceEntry) > EntryPrice-PriceScale*목표틱수4 Then ExitShort("S★",atlimit,EntryPrice-PriceScale*목표틱수4,"",1,1); } 이부분에 수정좀 부탁드립니다 도형 빼고.. 그리고 추가 해주셧으면하는것.. 1. 시간 설정 예 :아침부터 저녁까지 만 2. 항셍 기준이면 수익실현은 예: 1.000.00만원 할려면 숫자를 1000000 하면되나요? 3. 이수식을 볼린저밴드로 수정했으면합니다. 볼린저밴드 중앙선 기준으로 캔들봉이 중앙선을 물렸을경우 음봉 일경우 매도신호 양봉 일경우 매수신호 반대신호가 나오면 기존 계약수들은 청산후 반대신호진입 4. 변수 설정하게 수정좀 부탁드립니다.