커뮤니티

보조data 제거

프로필 이미지
목마와숙녀
2017-08-08 11:53:33
94
글번호 111870
답변완료
아래에서 보조data 관련 수식 제거를 부탁드립니다. 항상 고맙습니다. ************* input : 상승(0.65), 하락(0.65), 상승청산(0.75), 하락청산(0.75), 진입시작(090000), 진입종료(130000); var : C2(0,data1),entry(false,data1); C2 = data2(C); if data1(Bdate != Bdate[1]) Then entry = false; if data1(stime >= 진입시작 and stime < 진입종료) then{ if entry == false and data2(Bdate == Bdate[1] and HighD(0) > HighD(0)[1] and HighD(0)-LowD(0) >= 상승) Then{ entry = true; buy("b"); } if entry == false and data2(Bdate == Bdate[1] and Lowd(0) < LowD(0)[1] and HighD(0)-LowD(0) >= 하락) Then{ entry = true; sell("s"); } } if MarketPosition == 1 and C <= C2[BarsSinceEntry]- 상승청산 then ExitLong("bx"); if MarketPosition == -1 and C >= C2[BarsSinceEntry]+ 하락청산 then ExitShort("sx");
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2017-08-08 15:45:47

안녕하세요 예스스탁입니다. input : 상승(0.65), 하락(0.65), 상승청산(0.75), 하락청산(0.75), 진입시작(090000), 진입종료(130000); var : entry(false); if Bdate != Bdate[1] Then entry = false; if stime >= 진입시작 and stime < 진입종료 then{ if entry == false and Bdate == Bdate[1] and HighD(0) > HighD(0)[1] and HighD(0)-LowD(0) >= 상승 Then{ entry = true; buy("b"); } if entry == false and Bdate == Bdate[1] and Lowd(0) < LowD(0)[1] and HighD(0)-LowD(0) >= 하락 Then{ entry = true; sell("s"); } } if MarketPosition == 1 and C <= EntryPrice-상승청산 then ExitLong("bx"); if MarketPosition == -1 and C >= EntryPrice+하락청산 then ExitShort("sx"); 즐거운 하루되세요 > 목마와숙녀 님이 쓴 글입니다. > 제목 : 보조data 제거 > 아래에서 보조data 관련 수식 제거를 부탁드립니다. 항상 고맙습니다. ************* input : 상승(0.65), 하락(0.65), 상승청산(0.75), 하락청산(0.75), 진입시작(090000), 진입종료(130000); var : C2(0,data1),entry(false,data1); C2 = data2(C); if data1(Bdate != Bdate[1]) Then entry = false; if data1(stime >= 진입시작 and stime < 진입종료) then{ if entry == false and data2(Bdate == Bdate[1] and HighD(0) > HighD(0)[1] and HighD(0)-LowD(0) >= 상승) Then{ entry = true; buy("b"); } if entry == false and data2(Bdate == Bdate[1] and Lowd(0) < LowD(0)[1] and HighD(0)-LowD(0) >= 하락) Then{ entry = true; sell("s"); } } if MarketPosition == 1 and C <= C2[BarsSinceEntry]- 상승청산 then ExitLong("bx"); if MarketPosition == -1 and C >= C2[BarsSinceEntry]+ 하락청산 then ExitShort("sx");