커뮤니티

delaytime buy수식 응용

프로필 이미지
목마와숙녀
2019-11-01 10:28:53
224
글번호 131698
답변완료
아래는 BuyPrice 생기고 10분 후 종가가 BuyPrice를 돌파할 때 buy 수식입니다. BuyPrice 생기고 10분 후 종가가 BuyPrice 에서 1.20 이상 2.00 이하로 하락한 후 BuyPrice를 돌파할 때 buy 수식으로 변경 바랍니다. 늘 고맙습니다. ************************************************************************************ input : 진입시간(090000), 시가대비upgap(0.36); var : BuySetup(false),Buyprice(0),BD(0),BT(0); if date != date[1] then { var1 = 0; var2 = 0; BuySetup = false; } if stime <= 진입시간 then { if C > O then var1 = var1 + 1 ; else if C < O then var2 = var2 + 1 ; } if MarketPosition <= 0 and BuySetup == false and var1 > var2 and 시가대비upgap >= 0 and C >= dayopen+시가대비upgap Then { BuySetup = true; Buyprice = C; BD = sdate; BT = TimeToMinutes(stime); } if MarketPosition == 1 Then BuySetup = false; if MarketPosition <= 0 and BuySetup == true and Sdate == BD and TimeToMinutes(stime) >= BT+10 and crossup(c,BuyPrice) Then buy("b");
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2019-09-04 14:51:27

안녕하세요 예스스탁입니다. input : 진입시간(090000), 시가대비upgap(0.36); var : BuySetup(false),Buyprice(0),BD(0),BT(0),LL(0); if date != date[1] then { var1 = 0; var2 = 0; BuySetup = false; } if stime <= 진입시간 then { if C > O then var1 = var1 + 1 ; else if C < O then var2 = var2 + 1 ; } if MarketPosition <= 0 and BuySetup == false and var1 > var2 and 시가대비upgap >= 0 and C >= dayopen+시가대비upgap Then { BuySetup = true; Buyprice = C; BD = sdate; BT = TimeToMinutes(stime); LL = L; } if BuySetup == true and L < LL Then LL = L; if MarketPosition == 1 Then BuySetup = false; if MarketPosition <= 0 and BuySetup == true and Sdate == BD and TimeToMinutes(stime) >= BT+10 and crossup(c,BuyPrice) and LL <= BuyPrice-1.25 and LL >= BuyPrice-2.0 Then buy("b"); 즐거운 하루되세요 > 목마와숙녀 님이 쓴 글입니다. > 제목 : 문의 > 아래는 BuyPrice 생기고 10분 후 종가가 BuyPrice를 돌파할 때 buy 수식입니다. BuyPrice 생기고 10분 후 종가가 BuyPrice 에서 1.20 이상 2.00 이하로 하락한 후 BuyPrice를 돌파할 때 buy 수식으로 변경 바랍니다. 늘 고맙습니다. ************************************************************************************ input : 진입시간(090000), 시가대비upgap(0.36); var : BuySetup(false),Buyprice(0),BD(0),BT(0); if date != date[1] then { var1 = 0; var2 = 0; BuySetup = false; } if stime <= 진입시간 then { if C > O then var1 = var1 + 1 ; else if C < O then var2 = var2 + 1 ; } if MarketPosition <= 0 and BuySetup == false and var1 > var2 and 시가대비upgap >= 0 and C >= dayopen+시가대비upgap Then { BuySetup = true; Buyprice = C; BD = sdate; BT = TimeToMinutes(stime); } if MarketPosition == 1 Then BuySetup = false; if MarketPosition <= 0 and BuySetup == true and Sdate == BD and TimeToMinutes(stime) >= BT+10 and crossup(c,BuyPrice) Then buy("b");