커뮤니티

문의 드립니다

프로필 이미지
만강
2024-01-30 10:35:27
672
글번호 176200
답변완료
안녕하세요 선물 틱차트에서 ema 5이평을 2틱이상 상향돌파시 매수 하향돌파시 매도 이평과 틱수는 변경가능하게 하고 10틱단위로 틱수표시 하고싶습니다 감사합니다
시스템
답변 1
프로필 이미지

예스스탁 예스스탁 답변

2024-01-30 14:52:15

안녕하세요 예스스탁입니다. input : P(5),t(2); var1 = Ema(C,P); if CrossUp(c,var1+PriceScale*t) Then Buy(); if CrossDown(c,var1-PriceScale*t) Then Sell(); input : 틱단위(10),글자크기(9); var : pp(0),ll(0),tx(0); if MarketPosition == 1 Then { pp = Floor((highest(H,BarsSinceEntry)-EntryPrice)/(PriceScale*틱단위)); if pp > pp[1] Then { tx = Text_New(sdate,stime,H+PriceScale*3,NumToStr(pp*틱단위,0)+"틱"); Text_SetStyle(tx,2,1); Text_SetSize(tx,글자크기); } } if MarketPosition == -1 Then { pp = Floor((EntryPrice-lowest(L,BarsSinceEntry))/(PriceScale*틱단위)); if pp > pp[1] Then { tx = Text_New(sdate,stime,L-PriceScale*3,NumToStr(pp*틱단위,0)+"틱"); Text_SetStyle(tx,2,0); Text_SetSize(tx,글자크기); } } 즐거운 하루되세요 > 만강 님이 쓴 글입니다. > 제목 : 문의 드립니다 > 안녕하세요 선물 틱차트에서 ema 5이평을 2틱이상 상향돌파시 매수 하향돌파시 매도 이평과 틱수는 변경가능하게 하고 10틱단위로 틱수표시 하고싶습니다 감사합니다