예스스탁
예스스탁 답변
2024-08-20 11:22:29
안녕하세요
예스스탁입니다.
1
문의하신 내용은 정확히 이해하지 못했습니다.
조정이라고만 하시면 어떤 내용인지 알수 없습니다.
2
Input : Period(10), P(2);
var : UPchennel(0),UPline(0),Dnline(0),DNchennel(0);
UPchennel = ma(H,period)*(1+P/100);
UPline = ma(H,period);
dnline = ma(L,period);
DNchennel = ma(L,period)*(1-P/100);
if CrossUp(c,upline) Then
Buy();
if CrossDown(c,dnline) Then
Sell();
input : 틱단위(50),글자크기(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,글자크기);
}
}
즐거운 하루되세요
> 만강 님이 쓴 글입니다.
> 제목 : 문의 드립니다
> 안녕하세요
Input : Period(10), P(2);
var : UPchennel(0),UPline(0),Dnline(0),DNchennel(0);
UPchennel = ma(H,period)*(1+P/100);
UPline = ma(H,period);
dnline = ma(L,period);
DNchennel = ma(L,period)*(1-P/100);
Plot1(UPchennel, "상한채널");
Plot2(UPline, "상한선");
Plot3(dnline, "하한선");
Plot4(DNchennel, "하한채널");
1.지표; 상기 지표에서 plot1과 plot4을 조정하여 1분봉에서도 표시되게 하고싶습니다
2.시스템; 위지표에서 상한선을 상향돌파하면 매수신호
하한선을 하향돌파하면 매도신호을 표시하고
각 50틱마다 차트에 표시하고 싶습니다
부탁드립니다
감사합니다