커뮤니티
문의드립니다
2008-10-28 23:28:09
848
글번호 17748
if MarketPosition() == 0 Then
buy("매수",atstop,min(DayLow(1),daylow(0))*1.05);
if MarketPosition() == 1 Then
exitlong("매수청산",atstop,lowest(L,BarsSinceEntry()));
상기식을 C > 5ma 에서 하루에 2번만 매매하고 싶습니다
답변 1
예스스탁 예스스탁 답변
2008-10-29 09:09:54
안녕하세요
예스스탁입니다.
var : count(0);
count = 0;
for var1 = 0 to 10{
if sdate == EntryDate(var1) Then
count = count+1;
}
If MarketPosition() == 0 and C > ma(c,5) and count < 2 Then
buy("매수",atstop,min(DayLow(1),daylow(0))*1.05);
if MarketPosition() == 1 Then
exitlong("매수청산",atstop,lowest(L,BarsSinceEntry()));
즐거운 하루되세요
> 시골길 님이 쓴 글입니다.
> 제목 : 문의드립니다
> if MarketPosition() == 0 Then
buy("매수",atstop,min(DayLow(1),daylow(0))*1.05);
if MarketPosition() == 1 Then
exitlong("매수청산",atstop,lowest(L,BarsSinceEntry()));
상기식을 C > 5ma 에서 하루에 2번만 매매하고 싶습니다
다음글