커뮤니티
왜 안되는지 봐주시면 감사하겠습니다.
2019-04-25 23:33:16
166
글번호 128139
Inputs:
FastLength(5), SlowLength(30), ADXLength(12);
Variables:
MP(0), Fast(0), Slow(0), GoLong(False), GoShort(False), BuyStop(0), SellStop(0),
ADXValue(0), Trending(False), TLen_F(0), TLen_S(0), TriAverage_F(0), TriAverage_S(0);
MP = MarketPosition;
TLen_F = Ceiling((FastLength + 1) * 0.5);
TRIAverage_F = ma(ma(C, TLen_F), TLen_F);
TLen_S = Ceiling((SlowLength + 1) * 0.5);
TRIAverage_S = ma(ma(C, TLen_S), TLen_S);
Fast = TRIAverage_F;
Slow = TRIAverage_S;
ADXValue = ADX(ADXLength);
Trending = ADXValue > ADXValue[FastLength];
GoLong = Fast > Slow;
GoShort = Fast < Slow;
If CrossUp( Fast , Slow) Then
BuyStop = High + 1 ;
If CrossDown( Fast , Slow) Then
SellStop = Low - 1 ;
If GoLong AND MP == 0 Then
Buy ("Long", atstop,BuyStop) ;
If GoShort AND MP == 0 Then
Sell ("Short", atstop,SellStop) ;
If MP = 1 Then Begin
ExitLong("EL", atstop,Slow - 1); ;
If High < Fast AND Trending Then
Buy ("Longer", atstop,Fast + 1) ;
End;
If MP = -1 Then Begin
ExitShort("ES", atstop,Slow + 1);
If Low > Fast AND Trending Then
Sell ("Shorter", atstop,Fast - 1) ;
End;
//////////////////////////////////////////////////////////////////////
Luxor란 시스템인데 예스트레이더에서 국내시장에는 문제없이 시뮬레이션이 되는데
해외선물에서는 전혀 시물레이션이 안되네요.
뭐가 문제인지 알수 잇을까요
답변 1
예스스탁 예스스탁 답변
2019-04-26 11:36:32
안녕하세요
예스스탁입니다.
1
If CrossUp( Fast , Slow) Then
BuyStop = High + 1 ;
If CrossDown( Fast , Slow) Then
SellStop = Low - 1 ;
수식에 보시면 크로스시 고가+1포인트, 저가-1포인트 로 되어 있습니다.
적용하는 종목에 맞는 수준으로 변경해서 적용하셔야 합니다.
외부변수 처리해 드립니다. 종목별로 조절해 적용하셔야 합니다.
2
기존수식에 잘못표현된 부분이 있습니다.'
If MP = 1 Then Begin
If MP = -1 Then Begin
위 2개 부분은 아래와 같이 변경되어야 합니다.
If MP == 1 Then Begin
If MP == -1 Then Begin
3
Inputs: FastLength(5), SlowLength(30), ADXLength(12),npoint(1);
Variables: MP(0), Fast(0), Slow(0), GoLong(False), GoShort(False), BuyStop(0), SellStop(0),
ADXValue(0), Trending(False), TLen_F(0), TLen_S(0), TriAverage_F(0), TriAverage_S(0);
MP = MarketPosition;
TLen_F = Ceiling((FastLength + 1) * 0.5);
TRIAverage_F = ma(ma(C, TLen_F), TLen_F);
TLen_S = Ceiling((SlowLength + 1) * 0.5);
TRIAverage_S = ma(ma(C, TLen_S), TLen_S);
Fast = TRIAverage_F;
Slow = TRIAverage_S;
ADXValue = ADX(ADXLength);
Trending = ADXValue > ADXValue[FastLength];
GoLong = Fast > Slow;
GoShort = Fast < Slow;
If CrossUp( Fast , Slow) Then
BuyStop = High + npoint ;
If CrossDown( Fast , Slow) Then
SellStop = Low - npoint ;
If GoLong AND MP == 0 Then
Buy ("Long", atstop,BuyStop) ;
If GoShort AND MP == 0 Then
Sell ("Short", atstop,SellStop) ;
If MP == 1 Then Begin
ExitLong("EL", atstop,Slow - 1); ;
If High < Fast AND Trending Then
Buy ("Longer", atstop,Fast + 1) ;
End;
If MP == -1 Then Begin
ExitShort("ES", atstop,Slow + npoint);
If Low > Fast AND Trending Then
Sell ("Shorter", atstop,Fast - npoint) ;
End;
즐거운 하루되세요
> 시고르시고르 님이 쓴 글입니다.
> 제목 : 왜 안되는지 봐주시면 감사하겠습니다.
> Inputs:
FastLength(5), SlowLength(30), ADXLength(12);
Variables:
MP(0), Fast(0), Slow(0), GoLong(False), GoShort(False), BuyStop(0), SellStop(0),
ADXValue(0), Trending(False), TLen_F(0), TLen_S(0), TriAverage_F(0), TriAverage_S(0);
MP = MarketPosition;
TLen_F = Ceiling((FastLength + 1) * 0.5);
TRIAverage_F = ma(ma(C, TLen_F), TLen_F);
TLen_S = Ceiling((SlowLength + 1) * 0.5);
TRIAverage_S = ma(ma(C, TLen_S), TLen_S);
Fast = TRIAverage_F;
Slow = TRIAverage_S;
ADXValue = ADX(ADXLength);
Trending = ADXValue > ADXValue[FastLength];
GoLong = Fast > Slow;
GoShort = Fast < Slow;
If CrossUp( Fast , Slow) Then
BuyStop = High + 1 ;
If CrossDown( Fast , Slow) Then
SellStop = Low - 1 ;
If GoLong AND MP == 0 Then
Buy ("Long", atstop,BuyStop) ;
If GoShort AND MP == 0 Then
Sell ("Short", atstop,SellStop) ;
If MP = 1 Then Begin
ExitLong("EL", atstop,Slow - 1); ;
If High < Fast AND Trending Then
Buy ("Longer", atstop,Fast + 1) ;
End;
If MP = -1 Then Begin
ExitShort("ES", atstop,Slow + 1);
If Low > Fast AND Trending Then
Sell ("Shorter", atstop,Fast - 1) ;
End;
//////////////////////////////////////////////////////////////////////
Luxor란 시스템인데 예스트레이더에서 국내시장에는 문제없이 시뮬레이션이 되는데
해외선물에서는 전혀 시물레이션이 안되네요.
뭐가 문제인지 알수 잇을까요
다음글
이전글