커뮤니티
문의 드립니다.
2012-08-23 14:16:17
280
글번호 54026
수고가 많으십니다.
시스템식을 만들었는데 잘 안되네요. 틀린곳좀 고쳐주십시오.
감사합니다
input : Period1(13),Period2(25),Period3(2),Length1(26),Length2(50),Length3(2);
var : StMomentum1(0),StMomentum2(0);
StMomentum1 = SMI(Period1,Period2,Period3);
StMomentum2 = SMI(Length1,Length2,Length3);
plot1(StMomentum1);
plot2(StMomentum2);
PlotBaseLine1(40,"과열");
PlotBaseLine2(-40,"침체");
# 매수/매도청산
If CrossUP(plot1,plot2) Then
{
Buy();
}
# 매도/매수청산
If CrossDown(plot1,plot2) Then
{
Sell();
}
답변 3
예스스탁 예스스탁 답변
2012-08-23 14:51:46
안녕하세요
예스스탁입니다.
시스템식에서는 plot명령어를 사용할수 없습니다.
아래와 같이 작성해서 사용하셔야 합니다.
input : Period1(13),Period2(25),Period3(2),Length1(26),Length2(50),Length3(2);
var : StMomentum1(0),StMomentum2(0);
StMomentum1 = SMI(Period1,Period2,Period3);
StMomentum2 = SMI(Length1,Length2,Length3);
# 매수/매도청산
If CrossUP(StMomentum1,StMomentum2) Then
{
Buy();
}
# 매도/매수청산
If CrossDown(StMomentum1,StMomentum2) Then
{
Sell();
}
즐거운 하루되세요
> WT_black68 님이 쓴 글입니다.
> 제목 : 문의 드립니다.
> 수고가 많으십니다.
시스템식을 만들었는데 잘 안되네요. 틀린곳좀 고쳐주십시오.
감사합니다
input : Period1(13),Period2(25),Period3(2),Length1(26),Length2(50),Length3(2);
var : StMomentum1(0),StMomentum2(0);
StMomentum1 = SMI(Period1,Period2,Period3);
StMomentum2 = SMI(Length1,Length2,Length3);
plot1(StMomentum1);
plot2(StMomentum2);
PlotBaseLine1(40,"과열");
PlotBaseLine2(-40,"침체");
# 매수/매도청산
If CrossUP(plot1,plot2) Then
{
Buy();
}
# 매도/매수청산
If CrossDown(plot1,plot2) Then
{
Sell();
}
2685up
2012-08-23 15:02:30
빠른답변 감사드립니다.
그런데 검증을 해보니 "buy"와 "sell"은 전략에서만 쓸수 있다고 나오는데 무엇이 잘못된걸까요?
> 예스스탁 님이 쓴 글입니다.
> 제목 : Re : 문의 드립니다.
> 안녕하세요
예스스탁입니다.
시스템식에서는 plot명령어를 사용할수 없습니다.
아래와 같이 작성해서 사용하셔야 합니다.
input : Period1(13),Period2(25),Period3(2),Length1(26),Length2(50),Length3(2);
var : StMomentum1(0),StMomentum2(0);
StMomentum1 = SMI(Period1,Period2,Period3);
StMomentum2 = SMI(Length1,Length2,Length3);
# 매수/매도청산
If CrossUP(StMomentum1,StMomentum2) Then
{
Buy();
}
# 매도/매수청산
If CrossDown(StMomentum1,StMomentum2) Then
{
Sell();
}
즐거운 하루되세요
> WT_black68 님이 쓴 글입니다.
> 제목 : 문의 드립니다.
> 수고가 많으십니다.
시스템식을 만들었는데 잘 안되네요. 틀린곳좀 고쳐주십시오.
감사합니다
input : Period1(13),Period2(25),Period3(2),Length1(26),Length2(50),Length3(2);
var : StMomentum1(0),StMomentum2(0);
StMomentum1 = SMI(Period1,Period2,Period3);
StMomentum2 = SMI(Length1,Length2,Length3);
plot1(StMomentum1);
plot2(StMomentum2);
PlotBaseLine1(40,"과열");
PlotBaseLine2(-40,"침체");
# 매수/매도청산
If CrossUP(plot1,plot2) Then
{
Buy();
}
# 매도/매수청산
If CrossDown(plot1,plot2) Then
{
Sell();
}
예스스탁 예스스탁 답변
2012-08-23 15:12:17
안녕하세요
예스스탁입니다.
시스템 편집창이 아닌
지표나 종목검색과 같은 다른 수식 편집창에서
해당식을 작성하시면 나타나는 오류맨트입니다.
시스템 편집창에서 작성하셔야 합니다.
아래 링크 도움말 참고하시기 바랍니다.
https://www.yesstock.com/YesTrader/YesLanguage/YesLanguage_help/2_3_7.htm
즐거운 하루되세요
> 로자리 님이 쓴 글입니다.
> 제목 : Re : Re : 문의 드립니다.
> 빠른답변 감사드립니다.
그런데 검증을 해보니 "buy"와 "sell"은 전략에서만 쓸수 있다고 나오는데 무엇이 잘못된걸까요?
> 예스스탁 님이 쓴 글입니다.
> 제목 : Re : 문의 드립니다.
> 안녕하세요
예스스탁입니다.
시스템식에서는 plot명령어를 사용할수 없습니다.
아래와 같이 작성해서 사용하셔야 합니다.
input : Period1(13),Period2(25),Period3(2),Length1(26),Length2(50),Length3(2);
var : StMomentum1(0),StMomentum2(0);
StMomentum1 = SMI(Period1,Period2,Period3);
StMomentum2 = SMI(Length1,Length2,Length3);
# 매수/매도청산
If CrossUP(StMomentum1,StMomentum2) Then
{
Buy();
}
# 매도/매수청산
If CrossDown(StMomentum1,StMomentum2) Then
{
Sell();
}
즐거운 하루되세요
> WT_black68 님이 쓴 글입니다.
> 제목 : 문의 드립니다.
> 수고가 많으십니다.
시스템식을 만들었는데 잘 안되네요. 틀린곳좀 고쳐주십시오.
감사합니다
input : Period1(13),Period2(25),Period3(2),Length1(26),Length2(50),Length3(2);
var : StMomentum1(0),StMomentum2(0);
StMomentum1 = SMI(Period1,Period2,Period3);
StMomentum2 = SMI(Length1,Length2,Length3);
plot1(StMomentum1);
plot2(StMomentum2);
PlotBaseLine1(40,"과열");
PlotBaseLine2(-40,"침체");
# 매수/매도청산
If CrossUP(plot1,plot2) Then
{
Buy();
}
# 매도/매수청산
If CrossDown(plot1,plot2) Then
{
Sell();
}
다음글
이전글