커뮤니티

문의

프로필 이미지
목마와숙녀
2022-03-28 10:03:36
1319
글번호 157506
답변완료
아래 진입수식 중 일부 data4(c>lowD(0)+fc) and data5(c<highD(0)-fp) 을 data4의 3번째 고점 돌파 and data5의 3번째 저점 돌파로 변경한 수식을 요청드립니다. ******************************************************************************** input : fc(18),fp(8),butfs(50000),butff(1375),lock(130000); input : upls1(0.284),uptr1(0.632),upmi1(999),upbg1(999); var : B(0,Data1),S(0,Data1); if data1(Bdate != Bdate[1]) Then { B = 0; S = 0; } if stime<lock and data4(c>lowD(0)+fc) and data5(c<highD(0)-fp) and !(data2(c<HighD(0)-butfs)) and !(data3(c<HighD(0)-butff)) and B == 0 Then { B = 1; Buy("b1"); } if MarketPosition == 1 Then { if IsEntryName("b1") == true Then { SetStopLoss(upls1,PercentStop); SetStopTrailing(uptr1,0,PercentStop,1); SetStopInactivity(upmi1,upbg1,PercentStop); } } Else { SetStopLoss(0); SetStopTrailing(0,0); SetStopProfittarget(0); SetStopInactivity(0); }
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2022-03-28 15:22:54

안녕하세요 예스스탁입니다. input : fc(18),fp(8),butfs(50000),butff(1375),lock(130000); input : upls1(0.284),uptr1(0.632),upmi1(999),upbg1(999); var : B(0,Data1),S(0,Data1),cond(False,Data1); var : count4(0,data4),count5(0,data5); if data1(Bdate != Bdate[1]) Then { B = 0; S = 0; } if data4(Bdate != Bdate[1]) Then count4 = 0; if data4(c>lowD(0)+fc) Then count4 = count4+1; if data5(Bdate != Bdate[1]) Then count5 = 0; if data5(c<highD(0)-fp) Then count5 = count5+1; cond = count4 == 3 and count5 == 3; if stime<lock and cond == true and cond[1] == False and !(data2(c<HighD(0)-butfs)) and !(data3(c<HighD(0)-butff)) and B == 0 Then { B = 1; Buy("b1"); } if MarketPosition == 1 Then { if IsEntryName("b1") == true Then { SetStopLoss(upls1,PercentStop); SetStopTrailing(uptr1,0,PercentStop,1); SetStopInactivity(upmi1,upbg1,PercentStop); } } Else { SetStopLoss(0); SetStopTrailing(0,0); SetStopProfittarget(0); SetStopInactivity(0); } 즐거운 하루되세요 > 목마와숙녀 님이 쓴 글입니다. > 제목 : 문의 > 아래 진입수식 중 일부 data4(c>lowD(0)+fc) and data5(c<highD(0)-fp) 을 data4의 3번째 고점 돌파 and data5의 3번째 저점 돌파로 변경한 수식을 요청드립니다. ******************************************************************************** input : fc(18),fp(8),butfs(50000),butff(1375),lock(130000); input : upls1(0.284),uptr1(0.632),upmi1(999),upbg1(999); var : B(0,Data1),S(0,Data1); if data1(Bdate != Bdate[1]) Then { B = 0; S = 0; } if stime<lock and data4(c>lowD(0)+fc) and data5(c<highD(0)-fp) and !(data2(c<HighD(0)-butfs)) and !(data3(c<HighD(0)-butff)) and B == 0 Then { B = 1; Buy("b1"); } if MarketPosition == 1 Then { if IsEntryName("b1") == true Then { SetStopLoss(upls1,PercentStop); SetStopTrailing(uptr1,0,PercentStop,1); SetStopInactivity(upmi1,upbg1,PercentStop); } } Else { SetStopLoss(0); SetStopTrailing(0,0); SetStopProfittarget(0); SetStopInactivity(0); }