커뮤니티

수식수정

프로필 이미지
아트정
2023-12-09 14:04:10
985
글번호 174704
답변완료
input : EmaPeriod(50); input : RSIPeriod1(7),RSIPeriod2(14),RSIPeriod3(21),RSI차이(7); input : ADXPeriod(10); input : 익절(50),손절(50); var : Emav(0),RSI1(0),RSI2(0),RSI3(0),ADXv(0); var : Bcond(False),Scond(False); Emav = Ema(C,EmaPeriod); RSI1 = RSI(RSIPeriod1); RSI2 = RSI(RSIPeriod2); RSI3 = RSI(RSIPeriod3); ADXv = ADX(ADXperiod); Bcond = MarketPosition == 0 and MarketPosition(1) == 1 and MarketPosition(2) == 1; Scond = MarketPosition == 0 and MarketPosition(1) == -1 and MarketPosition(2) == -1; if C > Emav and RSI1 >= RSI2+RSI차이 and RSI2 >= RSI3+RSI차이 and ADXV >= 21 and Bcond == False Then buy(); if C < Emav and RSI1 <= RSI2-RSI차이 and RSI2 <= RSI3-RSI차이 and ADXV >= 21 and Scond == False Then Sell(); SetStopProfittarget(익절, PointStop); SetStopLoss(손절, PointStop); 위식에서 청산조건 (익절.손절) 기능삭제. 수정 일일 누적수익 100틱시 매매중지로 수정 부탁드립니다
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2023-12-11 14:26:19

안녕하세요 예스스탁입니다. Input : 당일수익틱수(100); Var : N1(0),dayPl(0),당일수익(0); var : Xcond(false); if Bdate != Bdate[1] Then { Xcond = false; N1 = NetProfit; } 당일수익 = PriceScale*당일수익틱수; daypl = NetProfit-N1; if TotalTrades > TotalTrades[1] then { if daypl >= 당일수익 Then Xcond = true; if (IsExitName("dbp",1) == true or IsExitName("dsp",1) == true) then Xcond = true; } input : EmaPeriod(50); input : RSIPeriod1(7),RSIPeriod2(14),RSIPeriod3(21),RSI차이(7); input : ADXPeriod(10); input : 익절(50),손절(50); var : Emav(0),RSI1(0),RSI2(0),RSI3(0),ADXv(0); var : Bcond(False),Scond(False); Emav = Ema(C,EmaPeriod); RSI1 = RSI(RSIPeriod1); RSI2 = RSI(RSIPeriod2); RSI3 = RSI(RSIPeriod3); ADXv = ADX(ADXperiod); Bcond = MarketPosition == 0 and MarketPosition(1) == 1 and MarketPosition(2) == 1; Scond = MarketPosition == 0 and MarketPosition(1) == -1 and MarketPosition(2) == -1; if Xcond == false then { if C > Emav and RSI1 >= RSI2+RSI차이 and RSI2 >= RSI3+RSI차이 and ADXV >= 21 and Bcond == False Then buy(); if C < Emav and RSI1 <= RSI2-RSI차이 and RSI2 <= RSI3-RSI차이 and ADXV >= 21 and Scond == False Then Sell(); } if MarketPosition == 1 then { ExitLong("dbp",atlimit,EntryPrice+((당일수익-daypl)/CurrentContracts)); } if MarketPosition == -1 then{ ExitShort("dsp",atlimit,EntryPrice-((당일수익-daypl)/CurrentContracts)); } 즐거운 하루되세요 > 아트정 님이 쓴 글입니다. > 제목 : 수식수정 > input : EmaPeriod(50); input : RSIPeriod1(7),RSIPeriod2(14),RSIPeriod3(21),RSI차이(7); input : ADXPeriod(10); input : 익절(50),손절(50); var : Emav(0),RSI1(0),RSI2(0),RSI3(0),ADXv(0); var : Bcond(False),Scond(False); Emav = Ema(C,EmaPeriod); RSI1 = RSI(RSIPeriod1); RSI2 = RSI(RSIPeriod2); RSI3 = RSI(RSIPeriod3); ADXv = ADX(ADXperiod); Bcond = MarketPosition == 0 and MarketPosition(1) == 1 and MarketPosition(2) == 1; Scond = MarketPosition == 0 and MarketPosition(1) == -1 and MarketPosition(2) == -1; if C > Emav and RSI1 >= RSI2+RSI차이 and RSI2 >= RSI3+RSI차이 and ADXV >= 21 and Bcond == False Then buy(); if C < Emav and RSI1 <= RSI2-RSI차이 and RSI2 <= RSI3-RSI차이 and ADXV >= 21 and Scond == False Then Sell(); SetStopProfittarget(익절, PointStop); SetStopLoss(손절, PointStop); 위식에서 청산조건 (익절.손절) 기능삭제. 수정 일일 누적수익 100틱시 매매중지로 수정 부탁드립니다