답변완료
수식어 부탁드립니다
input : 진입횟수(2);
var : entry(0);
if bdate != bdate[1] Then
entry = 0;
if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or
(MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then
entry = entry+1;
if MarketPosition <= 0 and entry < 진입횟수 Then
buy("b",atlimit,dayhigh-PriceScale*40);
if MarketPosition == 1 Then
exitlong("bx",atlimit,lowest(L,BarsSinceEntry)+PriceScale*35);
if MarketPosition >= 0 and entry < 진입횟수 Then
sell("s",atlimit,daylow+PriceScale*400);
if MarketPosition == -1 Then
ExitShort("sx",atlimit,Highest(H,BarsSinceEntry)-PriceScale*70);
if sdate != sdate[1] Then
SetStopEndofday(55000);
if bdate != bdate[1] Then
SetStopEndofday(0);
-----------------------------------
진입2회 수식어를 시간을 각기 달리하고 목표수익120틱 달성시
매매정지를 수식어로 부탁드립니다.
매수,매도청산 1회 07:00~22:00
매수,매도 청산 2회 22:00~익일 02:50
2021-04-11
1046
글번호 147887
시스템
답변완료
검은색 강조봉이 나타나게 부탁드립니다.
#10구간별 최대거래량 강조 #
Input : Period(10);
var : S(0,Data1),V1(0,Data1),V2(0,Data1),V3(0,Data1);
V1 = highest(V,Period); // 10봉간 최대거래량
V2 = V1[0] - V1[1]; // 오늘의 기울기
V3 = V1[1] - V1[2]; // 어제의 기울기
If V3 < 0 and V2 > 0 Then
S = 1; // 10봉간 최대거래량 상승
If V3 > 0 and V2 < 0 Then
S = -1; // 10봉간 최대거래량 하락
If S == 1 Then {
PlotPaintBar(O,C,"거래량증가감소",MAGENTA);
}
If S == -1 Then {
PlotPaintBar(O,C,"거래량증가감소",BLACK);
}
2021-04-11
891
글번호 147886
강조
답변완료
문의 드립니다.
안녕하세요?
아래의 수식에서 "N봉이내에 종가가 같은 음봉에 매도 또는 같은양보에 매수"
에 대해 질문 드립니다.
예를들어 10봉이내로 설정해 놓았을시,캔들 세개까지밖에 진입신호 인식을못하고 첫신호가 4개~10개사이에 발생되면 진입을 하지않고있습니다.
혹시 N봉이내라는 수식이 너무많이 캔들숫자를 올려놓으면 인식이 안되는지, 혹은 현재 수식에 문제가 있는지 확인부탁드립니다.
감사합니다.
input : 매수기준선(0.05),매도기준선(0.05),n(5);
input : 익절틱수(50),손절틱수(50),진입횟수(3);
input : P1(5),P2(20);
var : BB(0),SS(0),BI(0),BC(0),SI(0),SC(0),entry(0),mav1(0),mav2(0);
mav1 = ma(c,P1);
mav2 = ma(C,P2);
if Bdate != Bdate[1] Then
entry = 0;
if (MarketPosition != 0 and MarketPosition != MarketPosition[1]) or
(MarketPosition == MarketPosition[1] and TotalTrades > TotalTrades[1]) Then
entry = entry+1;
BB = Floor(O)+0.05;
if O >= BB Then
BB = BB+1;
SS = Floor(O)+0.05;
if O <= SS Then
SS = SS-1;
if O < BB and C >= BB and C > O Then
{
BI = Index;
BC = C;
}
if O > SS and C <= SS and C < O Then
{
SI = Index;
SC = C;
}
if MarketPosition == 0 and BI > 0 and Index > BI and Index < BI+n and C > O and C == BC and entry < 진입횟수 and mav1 < mav2 Then
Buy();
if MarketPosition == 0 and SI > 0 and Index > SI and Index < SI+n and C < O and C == SC and entry < 진입횟수 and mav1 > mav2 Then
Sell();
SetStopProfittarget(PriceScale*익절틱수,PointStop);
SetStopLoss(PriceScale*손절틱수,PointStop);
2021-04-11
919
글번호 147885
시스템
답변완료
문의
키움서식을 예스서식으로 변환 부탁드립니다.
1. 분봉에서
기간 : 2, multiple : 0.8 , m : 50
g= (((c+o+l+h)/4)*v/10000000);
a = HighestSince(1, date != date(기간), v) ;
b = valuewhen(1, c(0) > o(0) * multiple and a == v and g > m, c);
plot c ;
추가로 위조건을 만족하는 전봉의 c 값을 알수있도록 변수로 저장하는 수식도 포함하여
주시기 바랍니다
2. 일봉에서
기간 : 5, multiple : 0.8 , m : 100000
x = (highest(v,기간)==v) ;
a = valuewhen(1, c(0) > o(0) * multiple and 거래대금 > m and x, c(0)) ;
plot c ;
2021-04-11
932
글번호 147878
지표