커뮤니티

재문의드립니다.

프로필 이미지
아침한때비51
2018-02-19 22:41:57
131
글번호 116710
답변완료
1. Input : Price(60),당일수익틱수(100); Var : N1(0),dayPl(0),당일수익(0),Xcond(false),Tcond(false); var : T1(0),count(0); 당일수익 = PriceScale*당일수익틱수; if (sdate != sdate[1] and stime >= 80000) or (sdate == sdate[1] and stime >= 80000 and stime[1] < 80000) Then{ Tcond = true; Xcond = false; N1 = NetProfit; T1 = TotalTrades; } if MarketPosition == 0 Then count = TotalTrades-T1; Else count = TotalTrades-T1+1; if (sdate != sdate[1] and stime >= 055000) or (sdate == sdate[1] and stime >= 055000 and stime[1] < 055000) Then{ Tcond = false; if MarketPosition == 1 Then exitlong(); if MarketPosition == -1 Then ExitShort(); } daypl = NetProfit-N1; if TotalTrades > TotalTrades[1] and (IsExitName("dbp",1) == true or IsExitName("dsp",1) == true) then Xcond = true; if Tcond == true and Xcond == false then{ if crossup(c,Price) Then{ buy("b",OnClose,def,count+1); } if CrossDown(c,Price) Then{ sell("s",OnClose,def,count+1); } } if MarketPosition == 1 then{ ExitLong("dbp",atlimit,EntryPrice+((당일수익-daypl)/CurrentContracts)); } if MarketPosition == -1 then{ ExitShort("dsp",atlimit,EntryPrice-((당일수익-daypl)/CurrentContracts)); } 2 Input : 당일수익틱수(100); Var : N1(0),dayPl(0),당일수익(0),Xcond(false),Tcond(false); var : T1(0),count(0); 당일수익 = PriceScale*당일수익틱수; if (sdate != sdate[1] and stime >= 80000) or (sdate == sdate[1] and stime >= 80000 and stime[1] < 80000) Then{ Tcond = true; Xcond = false; N1 = NetProfit; T1 = TotalTrades; } if MarketPosition == 0 Then count = TotalTrades-T1; Else count = TotalTrades-T1+1; if (sdate != sdate[1] and stime >= 055000) or (sdate == sdate[1] and stime >= 055000 and stime[1] < 055000) Then{ Tcond = false; if MarketPosition == 1 Then exitlong(); if MarketPosition == -1 Then ExitShort(); } daypl = NetProfit-N1; if TotalTrades > TotalTrades[1] and (IsExitName("dbp",1) == true or IsExitName("dsp",1) == true) then Xcond = true; if Tcond == true and Xcond == false then{ if crossup(c,dayopen) Then{ buy("b",OnClose,def,count+1); } if CrossDown(c,dayopen) Then{ sell("s",OnClose,def,count+1); } } if MarketPosition == 1 then{ ExitLong("dbp",atlimit,EntryPrice+((당일수익-daypl)/CurrentContracts)); } if MarketPosition == -1 then{ ExitShort("dsp",atlimit,EntryPrice-((당일수익-daypl)/CurrentContracts)); } 다름이 아니라. 진입시에 하나씩 늘어나는 물량을 1 3 5 7 이런식으로 늘어나게 그 부분만 변경 부탁드립니다. 그럼 수고하세요.
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2018-02-20 13:13:13

안녕하세요 예스스탁입니다. 1. Input : Price(60),당일수익틱수(100); Var : N1(0),dayPl(0),당일수익(0),Xcond(false),Tcond(false); var : T1(0),count(0); 당일수익 = PriceScale*당일수익틱수; if (sdate != sdate[1] and stime >= 80000) or (sdate == sdate[1] and stime >= 80000 and stime[1] < 80000) Then{ Tcond = true; Xcond = false; N1 = NetProfit; T1 = TotalTrades; } if MarketPosition == 0 Then count = TotalTrades-T1; Else count = TotalTrades-T1+1; if (sdate != sdate[1] and stime >= 055000) or (sdate == sdate[1] and stime >= 055000 and stime[1] < 055000) Then{ Tcond = false; if MarketPosition == 1 Then exitlong(); if MarketPosition == -1 Then ExitShort(); } daypl = NetProfit-N1; if TotalTrades > TotalTrades[1] and (IsExitName("dbp",1) == true or IsExitName("dsp",1) == true) then Xcond = true; if Tcond == true and Xcond == false then{ if crossup(c,Price) Then{ buy("b",OnClose,def,1+count*2); } if CrossDown(c,Price) Then{ sell("s",OnClose,def,1+count*2); } } if MarketPosition == 1 then{ ExitLong("dbp",atlimit,EntryPrice+((당일수익-daypl)/CurrentContracts)); } if MarketPosition == -1 then{ ExitShort("dsp",atlimit,EntryPrice-((당일수익-daypl)/CurrentContracts)); } 2 Input : 당일수익틱수(100); Var : N1(0),dayPl(0),당일수익(0),Xcond(false),Tcond(false); var : T1(0),count(0); 당일수익 = PriceScale*당일수익틱수; if (sdate != sdate[1] and stime >= 80000) or (sdate == sdate[1] and stime >= 80000 and stime[1] < 80000) Then{ Tcond = true; Xcond = false; N1 = NetProfit; T1 = TotalTrades; } if MarketPosition == 0 Then count = TotalTrades-T1; Else count = TotalTrades-T1+1; if (sdate != sdate[1] and stime >= 055000) or (sdate == sdate[1] and stime >= 055000 and stime[1] < 055000) Then{ Tcond = false; if MarketPosition == 1 Then exitlong(); if MarketPosition == -1 Then ExitShort(); } daypl = NetProfit-N1; if TotalTrades > TotalTrades[1] and (IsExitName("dbp",1) == true or IsExitName("dsp",1) == true) then Xcond = true; if Tcond == true and Xcond == false then{ if crossup(c,dayopen) Then{ buy("b",OnClose,def,1+count*2); } if CrossDown(c,dayopen) Then{ sell("s",OnClose,def,1+count*2); } } if MarketPosition == 1 then{ ExitLong("dbp",atlimit,EntryPrice+((당일수익-daypl)/CurrentContracts)); } if MarketPosition == -1 then{ ExitShort("dsp",atlimit,EntryPrice-((당일수익-daypl)/CurrentContracts)); } 즐거운 하루되세요 > 아침한때비51 님이 쓴 글입니다. > 제목 : 재문의드립니다. > 1. Input : Price(60),당일수익틱수(100); Var : N1(0),dayPl(0),당일수익(0),Xcond(false),Tcond(false); var : T1(0),count(0); 당일수익 = PriceScale*당일수익틱수; if (sdate != sdate[1] and stime >= 80000) or (sdate == sdate[1] and stime >= 80000 and stime[1] < 80000) Then{ Tcond = true; Xcond = false; N1 = NetProfit; T1 = TotalTrades; } if MarketPosition == 0 Then count = TotalTrades-T1; Else count = TotalTrades-T1+1; if (sdate != sdate[1] and stime >= 055000) or (sdate == sdate[1] and stime >= 055000 and stime[1] < 055000) Then{ Tcond = false; if MarketPosition == 1 Then exitlong(); if MarketPosition == -1 Then ExitShort(); } daypl = NetProfit-N1; if TotalTrades > TotalTrades[1] and (IsExitName("dbp",1) == true or IsExitName("dsp",1) == true) then Xcond = true; if Tcond == true and Xcond == false then{ if crossup(c,Price) Then{ buy("b",OnClose,def,count+1); } if CrossDown(c,Price) Then{ sell("s",OnClose,def,count+1); } } if MarketPosition == 1 then{ ExitLong("dbp",atlimit,EntryPrice+((당일수익-daypl)/CurrentContracts)); } if MarketPosition == -1 then{ ExitShort("dsp",atlimit,EntryPrice-((당일수익-daypl)/CurrentContracts)); } 2 Input : 당일수익틱수(100); Var : N1(0),dayPl(0),당일수익(0),Xcond(false),Tcond(false); var : T1(0),count(0); 당일수익 = PriceScale*당일수익틱수; if (sdate != sdate[1] and stime >= 80000) or (sdate == sdate[1] and stime >= 80000 and stime[1] < 80000) Then{ Tcond = true; Xcond = false; N1 = NetProfit; T1 = TotalTrades; } if MarketPosition == 0 Then count = TotalTrades-T1; Else count = TotalTrades-T1+1; if (sdate != sdate[1] and stime >= 055000) or (sdate == sdate[1] and stime >= 055000 and stime[1] < 055000) Then{ Tcond = false; if MarketPosition == 1 Then exitlong(); if MarketPosition == -1 Then ExitShort(); } daypl = NetProfit-N1; if TotalTrades > TotalTrades[1] and (IsExitName("dbp",1) == true or IsExitName("dsp",1) == true) then Xcond = true; if Tcond == true and Xcond == false then{ if crossup(c,dayopen) Then{ buy("b",OnClose,def,count+1); } if CrossDown(c,dayopen) Then{ sell("s",OnClose,def,count+1); } } if MarketPosition == 1 then{ ExitLong("dbp",atlimit,EntryPrice+((당일수익-daypl)/CurrentContracts)); } if MarketPosition == -1 then{ ExitShort("dsp",atlimit,EntryPrice-((당일수익-daypl)/CurrentContracts)); } 다름이 아니라. 진입시에 하나씩 늘어나는 물량을 1 3 5 7 이런식으로 늘어나게 그 부분만 변경 부탁드립니다. 그럼 수고하세요.