커뮤니티
예스스탁 언어로 바꿔주세요
2013-03-13 18:29:44
196
글번호 60676
If Average(low, FastLen) Crosses Below Average(low, SlowLen) Then
Sell This Bar on Close;
If MarketPosition > 0 AND BarsSinceEntry = Len1
Then ExitShort This Bar at Close;
If Average(high, SlowLen2) Crosses Above Average(high, FastLen2) Then
Buy This Bar on Close;
If MarketPosition > 0 AND BarsSinceEntry = Len2
Then ExitLong This Bar at Close;
답변 1
예스스탁 예스스탁 답변
2013-03-14 09:14:01
안녕하세요
예스스탁입니다.
input : FastLen(5),SlowLen(20),len1(10),FastLen2(5),SlowLen2(20),Len2(10);
If crossdown(ma(low, FastLen),ma(low, SlowLen)) Then
Sell();
If MarketPosition < 0 AND BarsSinceEntry == Len1 Then
ExitShort();
If crossup(ma(high, SlowLen2),ma(high, FastLen2)) Then
Buy();
If MarketPosition > 0 AND BarsSinceEntry == Len2 Then
ExitLong();
즐거운 하루되세요
> WT_z123z123 님이 쓴 글입니다.
> 제목 : 예스스탁 언어로 바꿔주세요
> If Average(low, FastLen) Crosses Below Average(low, SlowLen) Then
Sell This Bar on Close;
If MarketPosition > 0 AND BarsSinceEntry = Len1
Then ExitShort This Bar at Close;
If Average(high, SlowLen2) Crosses Above Average(high, FastLen2) Then
Buy This Bar on Close;
If MarketPosition > 0 AND BarsSinceEntry = Len2
Then ExitLong This Bar at Close;
다음글
이전글