커뮤니티
시스템 변환
2004-02-02 19:56:06
1973
글번호 2235
아래의 TS 를 YP로 시스템 변환 부탁드립니다
Input: FastLen(9),SlowLen(18),ChLen(12),TrailBar(80),Initial(300),ReBars(15),Reentry(100);
Var : FastMA(0),SlowMA(0),LEntryPrice(0),SEntryPrice(0),LCount(-999),SCount(-999),
ReEntryCount(0),CurrentPosition(0);
FastMA = Average(Close,FastLen);
SlowMA = Average(Close,SlowLen);
{ Order Placement for Long Positions }
If FastMA crosses over SlowMA and BarNumber>1 then Begin
LEntryPrice = Highest(High,ChLen )*1.03;
LCount = BarNumber;
End;
If MarketPosition <>1 and BarNumber < LCount + ChLen then
Buy ("Cross Over Buy") Initial Shares next bar at LEntryPrice Stop;
답변 1
예스스탁 예스스탁 답변
2004-02-03 10:27:20
안녕하세요..예스스탁입니다.
TS언어를 정확히 알지 못하기 때문에 맞는 답변인지 확인할 수는 없었습니다.
다음과 같이 변환될 것으로 판단합니다.
Input: FastLen(9),SlowLen(18),ChLen(12),TrailBar(80),Initial(300),ReBars(15),Reentry(100);
Var : FastMA(0),SlowMA(0),LEntryPrice(0),SEntryPrice(0),LCount(-999),SCount(-999),
ReEntryCount(0),CurrentPosition(0);
FastMA = ma(Close,FastLen);
SlowMA = ma(Close,SlowLen);
If CrossUp(FastMA ,SlowMA) and index > 1 then Begin
LEntryPrice = Highest(High,ChLen )*1.03;
LCount = index;
End;
If MarketPosition(0) != 1 and index < LCount + ChLen then
Buy ("매수", atstop, LEntryPrice);
> 올빼미 님이 쓴 글입니다.
> 제목 : 시스템 변환
> 아래의 TS 를 YP로 시스템 변환 부탁드립니다
Input: FastLen(9),SlowLen(18),ChLen(12),TrailBar(80),Initial(300),ReBars(15),Reentry(100);
Var : FastMA(0),SlowMA(0),LEntryPrice(0),SEntryPrice(0),LCount(-999),SCount(-999),
ReEntryCount(0),CurrentPosition(0);
FastMA = Average(Close,FastLen);
SlowMA = Average(Close,SlowLen);
{ Order Placement for Long Positions }
If FastMA crosses over SlowMA and BarNumber>1 then Begin
LEntryPrice = Highest(High,ChLen )*1.03;
LCount = BarNumber;
End;
If MarketPosition <>1 and BarNumber < LCount + ChLen then
Buy ("Cross Over Buy") Initial Shares next bar at LEntryPrice Stop;
다음글