예스스탁
예스스탁 답변
2022-02-24 11:34:00
안녕하세요
예스스탁입니다.
input : P1(5),P2(20);
var : mav1(0),mav2(0);
mav1 = ma(C,P1);
mav2 = ma(C,P2);
if mav1 < mav2 and mav1 > mav1[1] and
((C > mav2 and mav2 > O and mav2 <= O+(C-O)*(1/3)) or
(C > O and CrossUp(O,mav2))) Then
Buy();
if mav1 > mav2 and mav1 < mav1[1] and
((O > mav2 and mav2 > C and mav2 >= O-(C-O)*(1/3)) or
(C < O and CrossDown(O,mav2))) Then
Sell();
input : 틱단위(10);
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);
}
}
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);
}
}
즐거운 하루되세요
> 까꾸리손 님이 쓴 글입니다.
> 제목 : 수식 보완 부탁 드립니다
> 안녕하세요?
늘 수고가 많으십니다
만들어주신 #75737식에 다음 조건을 추가하고 십습니다
조건
매수 진입 후 상승시마다 10틱, 20틱.....표기
매도 진입 후 하락시마다 10틱, 20틱.....표기
10틱 미만일때는 표기하지 않음
가능하리라 생각합니다
수고스럽지만 꼭 부탁 드립니다