커뮤니티
안녕하십니까
2018-06-28 16:24:13
172
글번호 120142
안녕하십니까 ?
아래와 같이 하루에 3번만 진입코져 합니다.
그런데 여러번 진입이 됩니다.
수정 부탁합니다.
감사합니다.
// 매도/매수 3회로 제한 ######################################
var : count(0),cnt(0);
count = 0;
for cnt = 0 to 20{
if sdate == EntryDate(cnt) Then
count = count+1;
if count < 3 and stime >= 090000 and stime < 153000 and T == 1 Then{
if L >= var2+PriceScale*4 Then
if TotalTrades == 0 or
(MarketPosition == -1 and BarsSinceEntry >= 150) or
(TotalTrades >= 1 and MarketPosition == 0 and BarsSinceExit(1) >= 150) Then
Bcond = true;
if Bcond == true and C > value3 then
buy("b",atlimit,var1);
}
답변 1
예스스탁 예스스탁 답변
2018-06-28 18:11:00
안녕하세요
예스스탁입니다.
var : t1(0),count(0);
if bdate != bdate[1] Then
t1 = TotalTrades;
if MarketPosition == 0 Then
count = TotalTrades-t1;
Else
count = TotalTrades-t1+1;
if count < 3 and stime >= 090000 and stime < 153000 and T == 1 Then
{
if L >= var2+PriceScale*4 Then
if TotalTrades == 0 or
(MarketPosition == -1 and BarsSinceEntry >= 150) or
(TotalTrades >= 1 and MarketPosition == 0 and BarsSinceExit(1) >= 150) Then
Bcond = true;
if Bcond == true and C > value3 then
buy("b",atlimit,var1);
}
즐거운 하루되세요
> 호시우보 님이 쓴 글입니다.
> 제목 : 안녕하십니까
>
안녕하십니까 ?
아래와 같이 하루에 3번만 진입코져 합니다.
그런데 여러번 진입이 됩니다.
수정 부탁합니다.
감사합니다.
// 매도/매수 3회로 제한 ######################################
var : count(0),cnt(0);
count = 0;
for cnt = 0 to 20{
if sdate == EntryDate(cnt) Then
count = count+1;
if count < 3 and stime >= 090000 and stime < 153000 and T == 1 Then{
if L >= var2+PriceScale*4 Then
if TotalTrades == 0 or
(MarketPosition == -1 and BarsSinceEntry >= 150) or
(TotalTrades >= 1 and MarketPosition == 0 and BarsSinceExit(1) >= 150) Then
Bcond = true;
if Bcond == true and C > value3 then
buy("b",atlimit,var1);
}
다음글
이전글