커뮤니티

delaytime 수식 응용

프로필 이미지
목마와숙녀
2019-11-01 09:54:47
148
글번호 132338
답변완료
input : 당일최대진입횟수(1); var : T1(0),entry(0); if bdate != Bdate[1] Then T1 = TotalTrades; if MarketPosition == 0 Then entry = TotalTrades-T1; Else entry = TotalTrades-T1+1; if dayindex == 0 and MarketPosition == 0 Then{ Condition1 = false; if entry < 당일최대진입횟수 and C > O Then{ buy("b1",AtMarket); Condition1 = true; } if entry < 당일최대진입횟수 and c < O Then{ sell("s1",AtMarket); Condition1 = true; } } 아래 조건을 위 수식에 적용해주세요. 항상 고맙습니다. ************************************************************************************* var : BuySetup(false),SellSetup(false),Buyprice(0),SellPrice(0),BD(0),BT(0),SD(0),ST(0); if MarketPosition <= 0 and BuySetup == false and 매수조건 Then { BuySetup = true; Buyprice = C; BD = sdate; BT = TimeToMinutes(stime); } if MarketPosition >= 0 and BuySetup == false and 매도조건 Then { SellSetup = true; SellPrice = C; SD = sDate; ST = TimeToMinutes(stime); } if MarketPosition == 1 Then BuySetup = false; if MarketPosition == -1 Then SellSetup = false; if MarketPosition <= 0 and BuySetup == true and Sdate == BD and TimeToMinutes(stime) >= BT+10 and crossup(c,BuyPrice) Then buy("b"); if MarketPosition >= 0 and SellSetup == true and Sdate == SD and TimeToMinutes(stime) >= ST+10 and CrossDown(c,SellPrice) Then sell("s"); 즐거운 하루되세요 > 목마와숙녀 님이 쓴 글입니다. > 제목 : 진입필터 buy 진입조건 만족 시 a가격의 진입을 유보하고 10분후에 a가격을 아래서 위로 돌파할 때 진입하는 조건 sell 진입조건 만족 시 b가격의 진입을 유보하고 10분후에 b가격을 위에서 아래로 돌파할 때 진입하는 조건
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2019-09-30 12:47:54

안녕하세요 예스스탁입니다. input : 당일최대진입횟수(1); var : T1(0),entry(0); var : BuySetup(false),SellSetup(false),Buyprice(0),SellPrice(0),BD(0),BT(0),SD(0),ST(0); if bdate != Bdate[1] Then T1 = TotalTrades; if MarketPosition == 0 Then entry = TotalTrades-T1; Else entry = TotalTrades-T1+1; if MarketPosition <= 0 and BuySetup == false and dayindex == 0 and C > O Then { BuySetup = true; Buyprice = C; BD = sdate; BT = TimeToMinutes(stime); } if MarketPosition >= 0 and BuySetup == false and dayindex == 0 and C < O Then { SellSetup = true; SellPrice = C; SD = sDate; ST = TimeToMinutes(stime); } if MarketPosition == 1 Then BuySetup = false; if MarketPosition == -1 Then SellSetup = false; if MarketPosition <= 0 and BuySetup == true and Sdate == BD and TimeToMinutes(stime) >= BT+10 and crossup(c,BuyPrice) and entry < 당일최대진입횟수 Then buy("b"); if MarketPosition >= 0 and SellSetup == true and Sdate == SD and TimeToMinutes(stime) >= ST+10 and CrossDown(c,SellPrice) and entry < 당일최대진입횟수 Then sell("s"); 즐거운 하루되세요 > 목마와숙녀 님이 쓴 글입니다. > 제목 : 수식 적용 > input : 당일최대진입횟수(1); var : T1(0),entry(0); if bdate != Bdate[1] Then T1 = TotalTrades; if MarketPosition == 0 Then entry = TotalTrades-T1; Else entry = TotalTrades-T1+1; if dayindex == 0 and MarketPosition == 0 Then{ Condition1 = false; if entry < 당일최대진입횟수 and C > O Then{ buy("b1",AtMarket); Condition1 = true; } if entry < 당일최대진입횟수 and c < O Then{ sell("s1",AtMarket); Condition1 = true; } } 아래 조건을 위 수식에 적용해주세요. 항상 고맙습니다. ************************************************************************************* var : BuySetup(false),SellSetup(false),Buyprice(0),SellPrice(0),BD(0),BT(0),SD(0),ST(0); if MarketPosition <= 0 and BuySetup == false and 매수조건 Then { BuySetup = true; Buyprice = C; BD = sdate; BT = TimeToMinutes(stime); } if MarketPosition >= 0 and BuySetup == false and 매도조건 Then { SellSetup = true; SellPrice = C; SD = sDate; ST = TimeToMinutes(stime); } if MarketPosition == 1 Then BuySetup = false; if MarketPosition == -1 Then SellSetup = false; if MarketPosition <= 0 and BuySetup == true and Sdate == BD and TimeToMinutes(stime) >= BT+10 and crossup(c,BuyPrice) Then buy("b"); if MarketPosition >= 0 and SellSetup == true and Sdate == SD and TimeToMinutes(stime) >= ST+10 and CrossDown(c,SellPrice) Then sell("s"); 즐거운 하루되세요 > 목마와숙녀 님이 쓴 글입니다. > 제목 : 진입필터 buy 진입조건 만족 시 a가격의 진입을 유보하고 10분후에 a가격을 아래서 위로 돌파할 때 진입하는 조건 sell 진입조건 만족 시 b가격의 진입을 유보하고 10분후에 b가격을 위에서 아래로 돌파할 때 진입하는 조건