커뮤니티
분석부탁드립니다~
2012-09-19 15:20:07
255
글번호 54878
제가 초보라 분석이 많이 힘드네요 :(
Input: FastLen(7.7), SlowLen(594), ChLen(30), TrailBar(158)
Vars: FastMA(0), SlowMA(0),LEntryPrice(0), SEntryPrice(0), LCount(-999), SCount(-999)
If High - Low <> 0 then
Move = ema( (C - O) / (H - L) * V, len);
FastMA = ma(C , FastLen );
SlowMA = ma(C , SlowLen );
If CrossUp(FastMA , SlowMA) and index > 1 then {
LEntryPrice = Highest(H , TrailBar )[1];
LCount = index;
}
If MarketPosition <> 1 AND index < LCount + ChLen or CrossUp(ema(C,shortPeriod), ema(C,LongPeriod)) then
Buy ("B1", atstop,LEntryPrice);
If MarketPosition <> -1 AND index < SCount + ChLen or CrossDown(ema(C,shortPeriod), ema(C,LongPeriod)) then
Sell ("S1", atstop,SEntryPrice );
If CrossDown(FastMA , SlowMA) and index > 1 then {
SEntryPrice = Lowest(L , TrailBar )[1];
SCount = index;
}
부탁드립니다. 정말로 감사합니다~ ^^*
답변 1
예스스탁 예스스탁 답변
2012-09-19 20:31:16
안녕하세요
예스스탁입니다
Input: FastLen(7.7), SlowLen(594), ChLen(30), TrailBar(158)
Vars: FastMA(0), SlowMA(0),LEntryPrice(0), SEntryPrice(0), LCount(-999), SCount(-999)
# 고가와 저가가 같이 않은 봉에서만
If High - Low <> 0 then
#(종가-시가)/(고가-저가)*거래량을 LEN기간 지수이평값을 구해 MOVE에 저장
Move = ema( (C - O) / (H - L) * V, len);
#단기 이평
FastMA = ma(C , FastLen );
#장기 이평
SlowMA = ma(C , SlowLen );
#단기이평 단기와 장기가 골든크로스가 발생하면
If CrossUp(FastMA , SlowMA) and index > 1 then {
#한봉전 기준 TrailBar봉수동안의 최고가를 저장
LEntryPrice = Highest(H , TrailBar )[1];
#봉번호를 저장
LCount = index;
}
#단기이평 단기와 장기가 데드크로스가 발생하면
If CrossDown(FastMA , SlowMA) and index > 1 then {
#한봉전 기준 TrailBar봉수동안의 최고가를 저장
SEntryPrice = Lowest(L , TrailBar )[1];
#봉번호를 저장
SCount = index;
}
#현재 매수포지션이 아니고 단기이평 골든크로스 발생이후 ChLen봉수이상 경과하지 않았거나 지수이평 골든크로스가 발생하면
If MarketPosition <> 1 AND index < LCount + ChLen or CrossUp(ema(C,shortPeriod), ema(C,LongPeriod)) then
# LEntryPrice이상의 시세발생하면 매수
Buy ("B1", atstop,LEntryPrice);
#현재 매도포지션이 아니고 단기이평 데드크로스 발생이후 ChLen봉수이상 경과하지 않았거나 지수이평 데드크로스가 발생하면
If MarketPosition <> -1 AND index < SCount + ChLen or CrossDown(ema(C,shortPeriod), ema(C,LongPeriod)) then
# SEntryPrice이하의 시세발생하면 매도
Sell ("S1", atstop,SEntryPrice );
즐거운 하루되세요
> jhm1287 님이 쓴 글입니다.
> 제목 : 분석부탁드립니다~
> 제가 초보라 분석이 많이 힘드네요 :(
Input: FastLen(7.7), SlowLen(594), ChLen(30), TrailBar(158)
Vars: FastMA(0), SlowMA(0),LEntryPrice(0), SEntryPrice(0), LCount(-999), SCount(-999)
If High - Low <> 0 then
Move = ema( (C - O) / (H - L) * V, len);
FastMA = ma(C , FastLen );
SlowMA = ma(C , SlowLen );
If CrossUp(FastMA , SlowMA) and index > 1 then {
LEntryPrice = Highest(H , TrailBar )[1];
LCount = index;
}
If MarketPosition <> 1 AND index < LCount + ChLen or CrossUp(ema(C,shortPeriod), ema(C,LongPeriod)) then
Buy ("B1", atstop,LEntryPrice);
If MarketPosition <> -1 AND index < SCount + ChLen or CrossDown(ema(C,shortPeriod), ema(C,LongPeriod)) then
Sell ("S1", atstop,SEntryPrice );
If CrossDown(FastMA , SlowMA) and index > 1 then {
SEntryPrice = Lowest(L , TrailBar )[1];
SCount = index;
}
부탁드립니다. 정말로 감사합니다~ ^^*