커뮤니티
기존식에 수식추가요청
2018-04-03 01:56:39
282
글번호 117874
Input : Period(10);
# 매수/매도청산
If CrossUP(data1("C"), ma(data1("C"),Period)) Then
{
Buy("매수");
}
# 매도/매수청산
If CrossDown(data1("C"), ma(data1("C"),Period)) Then
{
Sell("매도");
}
var : RR(0),tx1(0),tx2(0);
if MarketPosition == 1 Then{
rr = (C-EntryPrice)/PriceScale;
Text_Delete(tx1);
tx1 = Text_New(sdate,stime,H+PriceScale*1,NumToStr(RR,0)+"틱");
Text_SetStyle(tx1,2,2);
}
if MarketPosition == -1 Then{
rr = (EntryPrice-C)/PriceScale;
Text_Delete(tx2);
tx2 = Text_New(sdate,stime,L-PriceScale*1,NumToStr(RR,0)+"틱");
Text_SetStyle(tx2,2,2);
}
==================================================
상기식에서
전일고가
전일종가
전일저가식을 추가할려고 합니다
수식을 부탁드립니다
답변 1
예스스탁 예스스탁 답변
2018-04-03 09:59:19
안녕하세요
예스스탁입니다.
특정값을 추가한다고만 언급하시면
내용판단이 되지 않습니다.
좀더 자세한 내용을 올려주시기 바랍니다.
즐거운 하루되세요
> 정밀타격수 님이 쓴 글입니다.
> 제목 : 기존식에 수식추가요청
> Input : Period(10);
# 매수/매도청산
If CrossUP(data1("C"), ma(data1("C"),Period)) Then
{
Buy("매수");
}
# 매도/매수청산
If CrossDown(data1("C"), ma(data1("C"),Period)) Then
{
Sell("매도");
}
var : RR(0),tx1(0),tx2(0);
if MarketPosition == 1 Then{
rr = (C-EntryPrice)/PriceScale;
Text_Delete(tx1);
tx1 = Text_New(sdate,stime,H+PriceScale*1,NumToStr(RR,0)+"틱");
Text_SetStyle(tx1,2,2);
}
if MarketPosition == -1 Then{
rr = (EntryPrice-C)/PriceScale;
Text_Delete(tx2);
tx2 = Text_New(sdate,stime,L-PriceScale*1,NumToStr(RR,0)+"틱");
Text_SetStyle(tx2,2,2);
}
==================================================
상기식에서
전일고가
전일종가
전일저가식을 추가할려고 합니다
수식을 부탁드립니다
다음글
이전글