커뮤니티

예스랭귀지 Q&A

글쓰기
답변완료

[공지] 예스랭귀지 AI 어시스턴트, '예스나 AI' 출시 및 무료 체험 안내

안녕하세요, 예스스탁 입니다.복잡한 수식 공부 없이 여러분의 아이디어를 말하면 시스템 트레이딩 언어 예스랭귀지로 작성해주는 서비스예스나 AI(YesNa AI)가 출시되었습니다.지금 예스나 AI를 직접 경험해 보실 수 있도록 20크레딧(질문권 20회)를 무료로 증정해 드리고 있습니다.바로 여러분의 아이디어를 코드로 변환해보세요.--------------------------------------------------🚀 YesNa AI 핵심 기능- 지표식/전략식/종목검색식 생성: 자연어로 요청하면 예스랭귀지 문법에 맞는 코드를 작성합니다.- 종목검색식 변환 지원: K증권의 종목 검색식을 예스랭귀지로 변환 지원합니다.- 컴파일 검증: 작성된 코드가 실행 가능한지 컴파일러를 통해 문법 검증을 거쳐 결과물을 제공합니다.상세한 서비스 개요 및 활용 방법은 [서비스 소개 페이지]에서 확인하실 수 있습니다.▶ 서비스 소개 페이지: 바로가기서비스 사용 유의사항 및 결제 환불정책은 [이용약관]을 참고 부탁드립니다.▶ 서비스 이용약관: 바로가기💬 이용 문의사용 중 문의사항은 [프로그램 사용법 Q&A] 게시판에서 [예스나 AI] 카테고리를 설정 후 문의해 주시면 상세히 안내해 드리겠습니다.--------------------------------------------------앞으로도 AI를 활용한 다양한 트레이딩 기능들을 지속적으로 선보일 예정입니다.많은 관심과 기대 부탁드립니다.
프로필 이미지
예스스탁
2026-02-27
3645
글번호 230811
지표
답변완료

시스템식 부탁드립니다.

항상 도움 주셔서 감사합니다. 첨부파일에 요청드리는 시스템식 작성 부탁드립니다. 감사합니다.
프로필 이미지
양치기
2019-07-24
135
글번호 130591
시스템
답변완료

기준라인수식 결과

데스크탑 cpu 8코어는 1분봉 사용시 2018년부터 시작해야 결과물 누락이 없고 노트북 cpu 4코어는 1분봉 사용시 2015년부터 시작해도 결과물이 잘 나옵니다. 데스크탑으로 이것 저것 해보니 3분봉에서 2015년부터의 결과물이 나옵니다. 그래서 아래 조건으로 시뮬레이션을 해보니 별첨처럼 잘못 진입하는 케이스를 발견했습니다. 진입가격은 264.00인데 2018년 11월 2일에 266.08에 진입하였습니다. 노트북 1분봉에서 같은 조건으로 시뮬레이션 해봐도 2018년 11월 2일에 266.08 진입이 발생합니다. 데스크탑 3분봉 기준 263.00 상승 1.00 (진입가격은 264.00) 피라미딩 설정 당일청산 오후2시45분 ******************************************************************************** input : 기준(263),상승(1.00); input : 손절1(50),익절1(300),TR1(150); input : 손절2(50),익절2(300),TR2(150); input : 손절3(50),익절3(300),TR3(150); input : 손절4(50),익절4(300),TR4(150); input : 손절5(50),익절5(300),TR5(150); input : 손절6(50),익절6(300),TR6(150); input : 손절7(50),익절7(300),TR7(150); input : 손절8(50),익절8(300),TR8(150); input : 손절9(50),익절9(300),TR9(150); input : 손절10(50),익절10(300),TR10(150); input : 손절11(50),익절11(300),TR11(150); input : 손절12(50),익절12(300),TR12(150); Array : EP[20](0); if MarketPosition == 0 and H < 기준+상승 and ExitDate(1) != sdate Then buy("b1",AtStop,기준+상승); if MarketPosition == 1 Then { var1 = (기준+상승) + 상승*MaxEntries; EP[MaxEntries] = LatestEntryPrice(0); if MaxEntries == 1 and H < var1 Then buy("b2",AtStop,var1); if MaxEntries == 2 and H < var1 Then buy("b3",AtStop,var1); if MaxEntries == 3 and H < var1 Then buy("b4",AtStop,var1); if MaxEntries == 4 and H < var1 Then buy("b5",AtStop,var1); if MaxEntries == 5 and H < var1 Then buy("b6",AtStop,var1); if MaxEntries == 6 and H < var1 Then buy("b7",AtStop,var1); if MaxEntries == 7 and H < var1 Then buy("b8",AtStop,var1); if MaxEntries == 8 and H < var1 Then buy("b9",AtStop,var1); if MaxEntries == 9 and H < var1 Then buy("b10",AtStop,var1); if MaxEntries == 10 and H < var1 Then buy("b11",AtStop,var1); if MaxEntries == 11 and H < var1 Then buy("b12",AtStop,var1); if MaxEntries >= 1 and EP[1] > 0 Then { ExitLong("bl1",AtStop,EP[1]-PriceScale*손절1,"b1"); ExitLong("bp1",Atlimit,EP[1]+PriceScale*익절1,"b1"); ExitLong("btr1",AtStop,highest(h,BarsSinceEntry)-PriceScale*TR1,"b1"); } if MaxEntries >= 2 and EP[2] > 0 Then { ExitLong("bl2",AtStop,EP[2]-PriceScale*손절2,"b2"); ExitLong("bp2",Atlimit,EP[2]+PriceScale*익절2,"b2"); ExitLong("btr2",AtStop,highest(h,BarsSinceEntry)-PriceScale*TR2,"b2"); } if MaxEntries >= 3 and EP[3] > 0 Then { ExitLong("bl3",AtStop,EP[3]-PriceScale*손절3,"b3"); ExitLong("bp3",Atlimit,EP[3]+PriceScale*익절3,"b3"); ExitLong("btr3",AtStop,highest(h,BarsSinceEntry)-PriceScale*TR3,"b3"); } if MaxEntries >= 4 and EP[4] > 0 Then { ExitLong("bl4",AtStop,EP[4]-PriceScale*손절4,"b4"); ExitLong("bp4",Atlimit,EP[4]+PriceScale*익절4,"b4"); ExitLong("btr4",AtStop,highest(h,BarsSinceEntry)-PriceScale*TR4,"b4"); } if MaxEntries >= 5 and EP[5] > 0 Then { ExitLong("bl5",AtStop,EP[5]-PriceScale*손절5,"b5"); ExitLong("bp5",Atlimit,EP[5]+PriceScale*익절5,"b5"); ExitLong("btr5",AtStop,highest(h,BarsSinceEntry)-PriceScale*TR5,"b5"); } if MaxEntries >= 6 and EP[6] > 0 Then { ExitLong("bl6",AtStop,EP[6]-PriceScale*손절6,"b6"); ExitLong("bp6",Atlimit,EP[6]+PriceScale*익절6,"b6"); ExitLong("btr6",AtStop,highest(h,BarsSinceEntry)-PriceScale*TR6,"b6"); } if MaxEntries >= 7 and EP[7] > 0 Then { ExitLong("bl7",AtStop,EP[7]-PriceScale*손절7,"b7"); ExitLong("bp7",Atlimit,EP[7]+PriceScale*익절7,"b7"); ExitLong("btr7",AtStop,highest(h,BarsSinceEntry)-PriceScale*TR7,"b7"); } if MaxEntries >= 8 and EP[8] > 0 Then { ExitLong("bl8",AtStop,EP[8]-PriceScale*손절8,"b8"); ExitLong("bp8",Atlimit,EP[8]+PriceScale*익절8,"b8"); ExitLong("btr8",AtStop,highest(h,BarsSinceEntry)-PriceScale*TR8,"b8"); } if MaxEntries >= 9 and EP[9] > 0 Then { ExitLong("bl9",AtStop,EP[9]-PriceScale*손절9,"b9"); ExitLong("bp9",Atlimit,EP[9]+PriceScale*익절9,"b9"); ExitLong("btr9",AtStop,highest(h,BarsSinceEntry)-PriceScale*TR9,"b9"); } if MaxEntries >= 10 and EP[10] > 0 Then { ExitLong("bl10",AtStop,EP[10]-PriceScale*손절10,"b10"); ExitLong("bp10",Atlimit,EP[10]+PriceScale*익절10,"b10"); ExitLong("btr10",AtStop,highest(h,BarsSinceEntry)-PriceScale*TR10,"b10"); } if MaxEntries >= 11 and EP[11] > 0 Then { ExitLong("bl11",AtStop,EP[11]-PriceScale*손절11,"b11"); ExitLong("bp11",Atlimit,EP[11]+PriceScale*익절11,"b11"); ExitLong("btr11",AtStop,highest(h,BarsSinceEntry)-PriceScale*TR11,"b11"); } if MaxEntries >= 12 and EP[12] > 0 Then { ExitLong("bl12",AtStop,EP[12]-PriceScale*손절12,"b12"); ExitLong("bp12",Atlimit,EP[12]+PriceScale*익절12,"b12"); ExitLong("btr12",AtStop,highest(h,BarsSinceEntry)-PriceScale*TR12,"b12"); } }
프로필 이미지
목마와숙녀
2020-01-20
240
글번호 130590
시스템
답변완료

왕초보 수식작성 문의드립니다

바쁘신 와중에 이렇게 기초적인 질문드려서 죄송합니다. 전략을 구상을 해봤는데 수식으로 만드는게 매우 어렵네요 수식 질문은 다음과 같습니다. 1. 전일 캔들이 양봉 혹은 도지(시가=종가)일 때, 당일 12시정각 이후 당일 고점 갱신시 매수 후 당일 종가에 청산. 트레일링스탑으로 매수이후 당일 고점대비 -1%하락시 추적청산. 매수가능 시간은 12:00부터 15:00 까지로 하고 싶습니다. 제가 만들어본 수식으로 선언부를 안적어서 그런지 시스템적용해보면 아무것도 뜨지 않네요. 편집기에 바로 붙여넣을수 있도록 수식 부탁드립니다. 2. 개별종목을 대상으로 전략을 적용하려고하는데 예를들어 삼성전자와 대한항공 주식에 적용한다면 전략실행창 2개를 켜서 각 창에 삼성전자,대한항공을 검색해서 원하는 전략을 실행시키면 되는건지요? 3.전일양봉이란 조건을 해당 해당종목 기준이 아니라 코스피200 차트 기준으로 조건에 부합할 때 삼성전자 매수조건에서 매수하는 것도 가능합니까? 타주기?참조인가 그렇게 들은것 같은데 혹시 가능하다면 그 조건도 같이 추가할 수 있게 수식 부탁드립니다. 감사합니다.
프로필 이미지
아수라발발타
2019-07-24
150
글번호 130589
시스템
답변완료

수식 변경 부탁드립니다.

아래 수식에서 추세변환 후 진입 신호를 함수로 지정하여(예 1번 아니면 2번 등) 진입하고 다음 반대 추세가 나올 때 함수 진입 횟수에 따라 진입하도록 수식 변경 부탁드립니다. input: b_time1(000000),e_time1(240000); Input : P1(30), P2(100); Array:ma14[101](0),추세[101](""); input: stoK_p11(70),stoK_p12(4),stoK_p13(6), ma_period11(23),ma_period12(6),ma_period13(14),ma_period14(100), ma_period15(10),ma_period16(20),ma_period17(15),상단(85),하단(15),익절틱수(50); Var: ma_p11(23),ma_p12(6),ma_p13(14),ma_p14_1(100),ma_p14_2(99),ma_p14_3(98),ma_p14_4(97), ma_p14_5(96),ma_p14_6(95),ma_p14_7(94),ma_p14_8(93),ma_p14_9(92),ma_p14_10(91),ma_p14_11(90),ma_p14_12(89),ma_p14_13(88),ma_p14_14(87), ma_p14_15(86),ma_p14_16(85),ma_p14_17(84),ma_p14_18(83),ma_p14_19(82),ma_p14_20(81), ma_p14_21(80),ma_p14_22(79),ma_p14_23(78),ma_p14_24(77),ma_p14_25(76),ma_p14_26(75),ma_p14_27(74), ma_p14_28(73),ma_p14_29(72),ma_p14_30(71),ma_p14_31(70),ma_p14_32(69),ma_p14_33(68),ma_p14_34(67), ma_p14_35(66),ma_p14_36(65),ma_p14_37(64),ma_p14_38(63),ma_p14_39(62),ma_p14_40(61), ma_p14_41(60),ma_p14_42(59),ma_p14_43(58),ma_p14_44(57),ma_p14_45(56),ma_p14_46(55),ma_p14_47(54), ma_p14_48(53),ma_p14_49(52),ma_p14_50(51),ma_p14_51(50),ma_p14_52(49),ma_p14_53(48),ma_p14_54(47), ma_p14_55(46),ma_p14_56(45),ma_p14_57(44),ma_p14_58(43),ma_p14_59(42),ma_p14_60(41), ma_p14_61(40),ma_p14_62(39),ma_p14_63(38),ma_p14_64(37),ma_p14_65(36),ma_p14_66(35),ma_p14_67(34), ma_p14_68(33),ma_p14_69(32),ma_p14_70(31),ma_p14_71(30),ma_p14_72(29),ma_p14_73(28),ma_p14_74(27), ma_p14_75(26),ma_p14_76(25),ma_p14_77(24),ma_p14_78(23),ma_p14_79(22),ma_p14_80(21), ma_p14_81(20),ma_p14_82(19),ma_p14_83(18),ma_p14_84(17),ma_p14_85(16),ma_p14_86(15),ma_p14_87(14), ma_p14_88(13),ma_p14_89(12),ma_p14_90(11),ma_p14_91(10),ma_p14_92(9),ma_p14_93(8),ma_p14_94(7), ma_p14_95(6),ma_p14_96(5),ma_p14_97(4),ma_p14_98(3),ma_p14_99(2),ma_p14_100(1),ma_p15(10),ma_p16(20),ma_p17(15), j(0),ma11(0),ma12(0),ma13(0),ma15(0),ma16(0),ma17(0),매수강도(0),매도강도(0); Var:mav1(0),mav2(0),stoK(0),stoD(0),T(0); ma11 = ma(C,ma_p11); ma12 = ma(C,ma_p12); ma13 = ma(C,ma_p13); ma15 = ma(C,ma_p15); ma16 = ma(C,ma_p16); ma17 = ma(C,ma_p17); ma14[1] = ma(C,ma_p14_1); ma14[2] = ma(C,ma_p14_2); ma14[3] = ma(C,ma_p14_3); ma14[4] = ma(C,ma_p14_4); ma14[5] = ma(C,ma_p14_5); ma14[6] = ma(C,ma_p14_6); ma14[7] = ma(C,ma_p14_7); ma14[8] = ma(C,ma_p14_8); ma14[9] = ma(C,ma_p14_9); ma14[10] = ma(C,ma_p14_10); ma14[11] = ma(C,ma_p14_11); ma14[12] = ma(C,ma_p14_12); ma14[13] = ma(C,ma_p14_13); ma14[14] = ma(C,ma_p14_14); ma14[15] = ma(C,ma_p14_15); ma14[16] = ma(C,ma_p14_16); ma14[17] = ma(C,ma_p14_17); ma14[18] = ma(C,ma_p14_18); ma14[19] = ma(C,ma_p14_19); ma14[20] = ma(C,ma_p14_20); ma14[21] = ma(C,ma_p14_21); ma14[22] = ma(C,ma_p14_22); ma14[23] = ma(C,ma_p14_23); ma14[24] = ma(C,ma_p14_24); ma14[25] = ma(C,ma_p14_25); ma14[26] = ma(C,ma_p14_26); ma14[27] = ma(C,ma_p14_27); ma14[28] = ma(C,ma_p14_28); ma14[29] = ma(C,ma_p14_29); ma14[30] = ma(C,ma_p14_30); ma14[31] = ma(C,ma_p14_31); ma14[32] = ma(C,ma_p14_32); ma14[33] = ma(C,ma_p14_33); ma14[34] = ma(C,ma_p14_34); ma14[35] = ma(C,ma_p14_35); ma14[36] = ma(C,ma_p14_36); ma14[37] = ma(C,ma_p14_37); ma14[38] = ma(C,ma_p14_38); ma14[39] = ma(C,ma_p14_39); ma14[40] = ma(C,ma_p14_40); ma14[41] = ma(C,ma_p14_41); ma14[42] = ma(C,ma_p14_42); ma14[43] = ma(C,ma_p14_43); ma14[44] = ma(C,ma_p14_44); ma14[45] = ma(C,ma_p14_45); ma14[46] = ma(C,ma_p14_46); ma14[47] = ma(C,ma_p14_47); ma14[48] = ma(C,ma_p14_48); ma14[49] = ma(C,ma_p14_49); ma14[50] = ma(C,ma_p14_50); ma14[51] = ma(C,ma_p14_51); ma14[52] = ma(C,ma_p14_52); ma14[53] = ma(C,ma_p14_53); ma14[54] = ma(C,ma_p14_54); ma14[55] = ma(C,ma_p14_55); ma14[56] = ma(C,ma_p14_56); ma14[57] = ma(C,ma_p14_57); ma14[58] = ma(C,ma_p14_58); ma14[59] = ma(C,ma_p14_59); ma14[60] = ma(C,ma_p14_60); ma14[61] = ma(C,ma_p14_61); ma14[62] = ma(C,ma_p14_62); ma14[63] = ma(C,ma_p14_63); ma14[64] = ma(C,ma_p14_64); ma14[65] = ma(C,ma_p14_65); ma14[66] = ma(C,ma_p14_66); ma14[67] = ma(C,ma_p14_67); ma14[68] = ma(C,ma_p14_68); ma14[69] = ma(C,ma_p14_69); ma14[70] = ma(C,ma_p14_70); ma14[71] = ma(C,ma_p14_71); ma14[72] = ma(C,ma_p14_72); ma14[73] = ma(C,ma_p14_73); ma14[74] = ma(C,ma_p14_74); ma14[75] = ma(C,ma_p14_75); ma14[76] = ma(C,ma_p14_76); ma14[77] = ma(C,ma_p14_77); ma14[78] = ma(C,ma_p14_78); ma14[79] = ma(C,ma_p14_79); ma14[80] = ma(C,ma_p14_80); ma14[81] = ma(C,ma_p14_81); ma14[82] = ma(C,ma_p14_82); ma14[83] = ma(C,ma_p14_83); ma14[84] = ma(C,ma_p14_84); ma14[85] = ma(C,ma_p14_85); ma14[86] = ma(C,ma_p14_86); ma14[87] = ma(C,ma_p14_87); ma14[88] = ma(C,ma_p14_88); ma14[89] = ma(C,ma_p14_89); ma14[90] = ma(C,ma_p14_90); ma14[91] = ma(C,ma_p14_91); ma14[92] = ma(C,ma_p14_92); ma14[93] = ma(C,ma_p14_93); ma14[94] = ma(C,ma_p14_94); ma14[95] = ma(C,ma_p14_95); ma14[96] = ma(C,ma_p14_96); ma14[97] = ma(C,ma_p14_97); ma14[98] = ma(C,ma_p14_98); ma14[99] = ma(C,ma_p14_99); ma14[100] = ma(C,ma_p14_100); 매수강도 = 0; 매도강도 = 0; If b_time1 <= Time and Time <= e_time1 Then { For j = 1 To 100 { If countif(ma11[1] < ma11 ,1) == 1 and (ma12[1] <= ma13[1] and ma12 > ma13) and countif(ma14[j][1] < ma14[j],1) == 1 and countif(ma15[1] < ma15 ,1) == 1 and countif(ma16[1] < ma16 ,1) == 1 and countif(ma17[1] < ma17 ,1) == 1 Then { 추세[j] = "매수추세"; } If countif(ma11[1] > ma11 ,1) == 1 and (ma12[1] >= ma13[1] and ma12 < ma13) and countif(ma14[j][1] > ma14[j],1) == 1 and countif(ma15[1] > ma15 ,1) == 1 and countif(ma16[1] > ma16 ,1) == 1 and countif(ma17[1] > ma17 ,1) == 1 Then { 추세[j] = "매도추세"; } If 추세[j] == "매수추세" Then 매수강도 = 매수강도 + 1; If 추세[j] == "매도추세" Then 매도강도 = 매도강도 + 1; } If 매수강도 == 100 Then 추세[0] = "매수추세"; If 매도강도 == 100 Then 추세[0] = "매도추세"; #Plot1(iff(추세[0]=="매수추세",100,iff(추세[0]=="매도추세",-100,0))); #PlotBaseLine1(0); } mav1 = ma(C,P1); mav2 = ma(C,P2); If b_time1<=Time and Time<= e_time1 Then { stoK = StochasticsK(stoK_p11,stoK_p12); stoD = StochasticsD(stoK_p11,stoK_p12,stoK_p13); If countif(ma(C,ma_Period11)[1] < ma(C,ma_Period11),1) == 1 and (ma(C,ma_Period12)[1] <= ma(C,ma_Period13)[1] and ma(C,ma_Period12) > ma(C,ma_Period13)) and countif(ma(C,ma_Period14)[1] < ma(C,ma_Period14),1) == 1 and countif(ma(C,ma_Period15)[1] < ma(C,ma_Period15),1) == 1 and countif(ma(C,ma_Period16)[1] < ma(C,ma_Period16),1) == 1 and countif(ma(C,ma_Period17)[1] < ma(C,ma_Period17),1) == 1 Then { T = 1; } If countif(ma(C,ma_Period11)[1] > ma(C,ma_Period11),1) == 1 and (ma(C,ma_Period12)[1] >= ma(C,ma_Period13)[1] and ma(C,ma_Period12) < ma(C,ma_Period13)) and countif(ma(C,ma_Period14)[1] > ma(C,ma_Period14),1) == 1 and countif(ma(C,ma_Period15)[1] > ma(C,ma_Period15),1) == 1 and countif(ma(C,ma_Period16)[1] > ma(C,ma_Period16),1) == 1 and countif(ma(C,ma_Period17)[1] > ma(C,ma_Period17),1) == 1 Then { T = -1; } } If b_time1 <= Time and Time <= e_time1 Then { { if MarketPosition == 0 and T == 1 and Crossdown(stok,하단) and MarketPosition <= 0 and mav1 > mav2 Then buy("매수",AtMarket); if MarketPosition == 1 Then { if crossup(stok,상단) and c >= EntryPrice Then Exitlong("매수청산1",AtMarket); if crossup(stok,상단) and c <= EntryPrice Then Exitlong("매수청산2",atlimit,EntryPrice+PriceScale*2); if T == -1 and 추세[0] == "매도추세" Then Exitlong("추세전환(-)",AtMarket); if T == 1 and 추세[0] == "매도추세" Then Exitlong("bx1",Atlimit,EntryPrice+PriceScale*5); if T == -1 and 추세[0] == "매수추세" Then Exitlong("bx2",Atlimit,EntryPrice+PriceScale*5); if CrossDown(mav1,mav2) and c >= EntryPrice Then Exitlong("bx3",Atlimit,EntryPrice+PriceScale*5); } if MarketPosition == 0 and T == -1 and Crossup(stok,상단) and MarketPosition >= 0 and mav1 < mav2 then sell("매도",AtMarket); if MarketPosition == -1 Then { if Crossdown(stok,하단) and C <= EntryPrice Then ExitShort("매도청산1",AtMarket); if Crossdown(stok,하단) and C >= EntryPrice Then ExitShort("매도청산2",Atlimit,EntryPrice-PriceScale*2); if T == 1 and 추세[0] == "매수추세" Then ExitShort("추세전환(+)",AtMarket); if T == -1 and 추세[0] == "매수추세" Then ExitShort("sx1",atlimit,EntryPrice-PriceScale*5); if T == 1 and 추세[0] == "매도추세" Then ExitShort("sx2",atlimit,EntryPrice-PriceScale*5); if CrossUp(mav2,mav1) and C <= EntryPrice Then ExitShort("sx3",atlimit,EntryPrice-PriceScale*5); } } SetStopProfittarget(PriceScale*익절틱수,PointStop); }
프로필 이미지
미완
2019-07-23
144
글번호 130586
시스템
답변완료

문의드립니다.

문의 드립니다. 아래 수식에서 당일 매수진입과 매도진입을 각각 한번씩만하게 부탁드립니다. 매수진입 1회, 매도진입1회, 더이상 진입금지! 청산은.... 20틱 수익발생시 10틱 수익보전 21틱 수익발생시 11틱 수익보전 22틱 수익발생시 12틱 수익보전 23틱 수익발생시 13틱 수익보전 24틱 수익발생시 14틱 수익보전 25틱 수익발생시 15틱 수익보전 26틱 수익발생시 16틱 수익보전 27틱 수익발생시 17틱 수익보전 28틱 수익발생시 18틱 수익보전 29틱 수익발생시 19틱 수익보전 30틱 수익발생시 20틱 수익보전 ////////////////////////////////////////////////////// var : L2(0,data2),H3(0,data3); if Data2(bdate != date[1]) Then { L2 = data2(L); } if data3(H) > H3 Then H3 = Data3(H); if data2(L) < L2 Then L2 = data2(L); if data3(bdate != date[1]) Then { H3 = data3(O); } if CrossDown(Data2(c),H3) Then buy(); ////////////////////////////////////////////////////////////// var : L4(0,Data4),H5(0,Data5); if Data4(bdate != date[1]) Then { L4 = Data4(L); } if Data5(H) > H5 Then H5 = Data5(H); if Data4(L) < L4 Then L4 = Data4(L); if Data5(bdate != date[1]) Then { H5 = Data5(O); } if CrossDown(Data4(c),H5) Then Sell(); ////////////////////////////////////////////////////////////////////////
프로필 이미지
하늘북
2019-07-23
128
글번호 130585
시스템

카카 님에 의해서 삭제되었습니다.

프로필 이미지
카카
2019-07-23
25
글번호 130584
지표
답변완료

수식 부탁합니다.

안녕하세요? 항상 도움에 감사를 드립니다. 아래의 trix의 지표로 20분봉에서 당일 09:00~11:00까지만 value1이 0선 골드가된 종목을 검색식을 부탁합니다. 09:00~ 0선골드된후에 다시 0선 데드크로가 나도 0선골드 크로스가 한번이라도 된종목을 검색식 부탁합니다. Input : Period(5), sigPeriod(5); value1 = TRIX(Period); value2 = ema(value1, sigPeriod); If crossup(value1,0) Then Find(1);
프로필 이미지
천년대로
2019-07-23
159
글번호 130583
종목검색
답변완료

문의 드립니다.

과거 n봉전 이후부터 high와 open을 나타 내는 함수식 부탁 드립니다. 미리 감사 드립니다 1) 함수명 : ndatehigh 반환값형 : 숫자형 Input:ndate(Numeric); var : HH(0); If sdate >= ndate Then { if HH == 0 Then HH = H; If HH > 0 and H > HH Then HH = H; ndatehigh = hh; } 2) 함수명 : ndateopen 반환값형 : 숫자형 Input:ndate(Numeric); var : oo(0); If sdate >= ndate Then { if oo == 0 Then oo = o; ndateopen = oo; }
프로필 이미지
뮬리
2019-07-24
128
글번호 130582
지표
답변완료

수식 여쭤봅니다~

거래는 분봉에서 하려고 합니다. 매수금액 과 기준이되는 분봉상 이평선 설정을 변수로 조정할수 있었음 합니다. **매수) 1차매수 주가가 위에서 부터 떨어져서 분봉상 400일선 5% 까지 근접하는순간 물량의 30% 매수 2차매수 주가가 위에서 부터 떨어져서 분봉상 400일선을 데드크로스 하는 순간 물량의 30% 매수 3차매수 주가가 위에서 부터 떨어져서 분봉상 400일선에서 -5% 까지 떨어지는 순간 물량의 40% 매수 **매도) 1차 매수든 2차매수든 3차매수든 매수가 일어나고 3% 상승시 가진 물량의 30% 매도 6% 상승시 가진 물량의 50% 매도 10% 상승시 가진 물량 전부 매도 **이익보전) 1차 매수든 2차매수든 3차매수든 매수가 일어나고 3% 상승후 1.5%로 떨어질시 가진물량의 50% 매도 1%로 떨어질시 전부 매도 6% 상승후 3.5%로 떨어질시 가진 물량의 50% 매도 3%로 떨어질시 전부 매도 10% 상승후 8% 떨어질시 가진 물량의 50% 매도 7% 떨어질시 가진 물량 전부 매도 **손절) 현재 매수 평단가에서 -15% 하락시 가진 물량의 50% 매도 -20% 하락시 전부 매도 **어떤 식으로든 전체 물량이 매도된 날에 재매수 금지) 감사합니다~
프로필 이미지
부자청년28
2019-07-23
139
글번호 130581
시스템