커뮤니티

수식 요청 드립니다.

프로필 이미지
dandy
2017-11-21 18:52:43
165
글번호 114379
답변완료
안녕하세요. 수식 요청 드립니다. 연결선물 당일청산 피라미딩 시스템에서 1.진입수식에 1.피라미딩진입수식, 2.진입수식에 2.피라미딩진입 수식이 각각 다르게 적용될수 있도록 요청 드립니다. //======================================================================================================= # 1.피라미딩진입수식 Input : i증감(0.2),누적진입횟수(5),진입수량(1); if MarketPosition == 1 and MaxEntries < 누적진입횟수 and Bxcond == false Then Buy("PB",AtStop,LatestEntryPrice(0)+i증감,진입수량); if MarketPosition == -1 and MaxEntries < 누적진입횟수 and SxCond == false Then sell("PS",AtStop,LatestEntryPrice(0)-i증감,진입수량); //------------------------------------------------------------------------------------------------------- # 2.피라미딩진입 Input : i증감1(0.3),누적진입횟수1(7),진입수량1(2); if MarketPosition == 1 and MaxEntries < 누적진입횟수1 and Bxcond == false Then Buy("PBB",atlimit,LatestEntryPrice(0)+i증감1,진입수량1); if MarketPosition == -1 and MaxEntries < 누적진입횟수1 and Sxcond == false Then sell("PSS",atlimit,LatestEntryPrice(0)-i증감1,진입수량1); //======================================================================================================= # 1.진입수식 Input : Period(12), Period1(5); If CrossUP(StochasticsK(Period,Period1), 20) Then{ Buy(); } If CrossDown(StochasticsK(Period,Period1), 80) Then{ Sell(); } //------------------------------------------------------------------------------------------------------- # 2.진입수식 Input : shortPeriod(12), longPeriod(26); If CrossUP(MACD(shortPeriod, longPeriod), 0) Then{ Buy(); } If CrossDown(MACD(shortPeriod, longPeriod), 0) Then{ Sell(); } //======================================================================================================= 감사합니다.
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2017-11-22 11:38:41

안녕하세요 예스스탁입니다. Input : Period(12), Period1(5); var1 = StochasticsK(Period,Period1); If CrossUP(var1, 20) Then Buy("b1"); If CrossDown(var1, 80) Then Sell("s1"); Input : shortPeriod(12), longPeriod(26); var2 = MACD(shortPeriod, longPeriod); If CrossUP(var2, 0) Then Buy("b2"); If CrossDown(var2, 0) Then Sell("s2"); Input : i증감(0.2),누적진입횟수(5),진입수량(1); if MarketPosition == 1 and IsEntryName("b1") == true and MaxEntries < 누적진입횟수 Then Buy("PB1",AtStop,LatestEntryPrice(0)+i증감,진입수량); if MarketPosition == -1 and IsEntryName("s1") == true and MaxEntries < 누적진입횟수 Then sell("PS1",AtStop,LatestEntryPrice(0)-i증감,진입수량); Input : i증감1(0.3),누적진입횟수1(7),진입수량1(2); if MarketPosition == 1 and IsEntryName("b2") == true and MaxEntries < 누적진입횟수1 Then Buy("PB2",atlimit,LatestEntryPrice(0)+i증감1,진입수량1); if MarketPosition == -1 and IsEntryName("s2") == true and MaxEntries < 누적진입횟수1 Then sell("PS2",atlimit,LatestEntryPrice(0)-i증감1,진입수량1); 즐거운 하루되세요 > dandy 님이 쓴 글입니다. > 제목 : 수식 요청 드립니다. > 안녕하세요. 수식 요청 드립니다. 연결선물 당일청산 피라미딩 시스템에서 1.진입수식에 1.피라미딩진입수식, 2.진입수식에 2.피라미딩진입 수식이 각각 다르게 적용될수 있도록 요청 드립니다. //======================================================================================================= # 1.피라미딩진입수식 Input : i증감(0.2),누적진입횟수(5),진입수량(1); if MarketPosition == 1 and MaxEntries < 누적진입횟수 and Bxcond == false Then Buy("PB",AtStop,LatestEntryPrice(0)+i증감,진입수량); if MarketPosition == -1 and MaxEntries < 누적진입횟수 and SxCond == false Then sell("PS",AtStop,LatestEntryPrice(0)-i증감,진입수량); //------------------------------------------------------------------------------------------------------- # 2.피라미딩진입 Input : i증감1(0.3),누적진입횟수1(7),진입수량1(2); if MarketPosition == 1 and MaxEntries < 누적진입횟수1 and Bxcond == false Then Buy("PBB",atlimit,LatestEntryPrice(0)+i증감1,진입수량1); if MarketPosition == -1 and MaxEntries < 누적진입횟수1 and Sxcond == false Then sell("PSS",atlimit,LatestEntryPrice(0)-i증감1,진입수량1); //======================================================================================================= # 1.진입수식 Input : Period(12), Period1(5); If CrossUP(StochasticsK(Period,Period1), 20) Then{ Buy(); } If CrossDown(StochasticsK(Period,Period1), 80) Then{ Sell(); } //------------------------------------------------------------------------------------------------------- # 2.진입수식 Input : shortPeriod(12), longPeriod(26); If CrossUP(MACD(shortPeriod, longPeriod), 0) Then{ Buy(); } If CrossDown(MACD(shortPeriod, longPeriod), 0) Then{ Sell(); } //======================================================================================================= 감사합니다.