커뮤니티
부탁드립니다..
2013-10-31 08:55:27
128
글번호 69065
안녕하세요..
늘 감사드립니다..
손절횟수를 3회로 제한하고
14시25분이후 신규진입을 금하게 해주세요..
if Condition1 == false Then{
if MarketPosition == 0 and
((idx == 1 and c > var3) or (idx >= 2 and crossup(C,var3))) and
stime >= 091000 Then
buy("b");
if MarketPosition == 0 and
((idx == 1 and c < var3) or (idx >= 2 and CrossDown(C,var3))) and
stime >= 091000 Then
sell("s");
}
if MarketPosition == 1 Then
sell("switch Sell",AtStop,EntryPrice*0.998);
if MarketPosition == -1 Then
buy("switch Buy",AtStop,EntryPrice*1.002);
답변 1
예스스탁 예스스탁 답변
2013-10-31 16:55:59
안녕하세요
예스스탁입니다.
input : Loss(3);
var : cnt(0),count(0);
count = 0;
for cnt = 0 to 20{
if (EntryDate(cnt) == sdate and
(IsEntryName("switchSell",cnt) == true Or
IsEntryName("switchbuy",cnt) == true)) Or
(cnt > 0 and ExitDate(cnt) == sdate and
(IsExitName("Bloss",cnt) == true Or
IsExitName("Sloss",cnt) == true)) Then
count = count+1;
}
if Condition1 == false and stime < 142500 Then{
if MarketPosition == 0 and
((idx == 1 and c > var3) or (idx >= 2 and crossup(C,var3))) and
stime >= 091000 Then
buy("b");
if MarketPosition == 0 and
((idx == 1 and c < var3) or (idx >= 2 and CrossDown(C,var3))) and
stime >= 091000 Then
sell("s");
}
if MarketPosition == 1 and count < Loss and stime < 142500 Then
sell("switchSell1",AtStop,EntryPrice*0.998);
if MarketPosition == -1 and count < Loss and stime < 142500 Then
buy("switchBuy1",AtStop,EntryPrice*1.002);
if MarketPosition == 1 and count == Loss-1 and stime >= 142500 Then
ExitLong("bloss",AtStop,EntryPrice*0.998);
if MarketPosition == -1 and count == Loss-1 and stime >= 142500 Then
ExitShort("Sloss",AtStop,EntryPrice*1.002);
즐거운 하루되세요
> 1개미 님이 쓴 글입니다.
> 제목 : 부탁드립니다..
> 안녕하세요..
늘 감사드립니다..
손절횟수를 3회로 제한하고
14시25분이후 신규진입을 금하게 해주세요..
if Condition1 == false Then{
if MarketPosition == 0 and
((idx == 1 and c > var3) or (idx >= 2 and crossup(C,var3))) and
stime >= 091000 Then
buy("b");
if MarketPosition == 0 and
((idx == 1 and c < var3) or (idx >= 2 and CrossDown(C,var3))) and
stime >= 091000 Then
sell("s");
}
if MarketPosition == 1 Then
sell("switch Sell",AtStop,EntryPrice*0.998);
if MarketPosition == -1 Then
buy("switch Buy",AtStop,EntryPrice*1.002);
다음글
이전글