커뮤니티
부탁드립니다.
2015-06-29 19:22:42
128
글번호 87790
아래 수식에 매매시간을 오후 7시에서 새벽 2시까지만 매매하고 청산하도록 부탁드립니다.
감사합니다.
var : T(0);
var1 = ma(c,9);
var2 = ma(C,18);
if var2[1]>var2[0] and
OPEN[0]>var1 and
OPEN[0]>CLOSE[0] Then
T = -1;
SELL();
if var2[1]<var2[0] and
OPEN[0]<var1 and
OPEN[0]<CLOSE[0] Then
T = 1;
if MarketPosition == 0 and T == -1 and countif(T == T[1],3) == 3 Then
sell();
if MarketPosition == 0 and T == 1 and countif(T == T[1],3) == 3 Then
buy();
SetStopProfittarget(PriceScale*30,PointStop);
SetStopLoss(PriceScale*15,PointStop);
답변 1
예스스탁 예스스탁 답변
2015-06-30 09:03:05
안녕하세요
예스스탁입니다.
var : T(0);
var1 = ma(c,9);
var2 = ma(C,18);
if var2[1]>var2[0] and
OPEN[0]>var1 and
OPEN[0]>CLOSE[0] Then
T = -1;
SELL();
if var2[1]<var2[0] and
OPEN[0]<var1 and
OPEN[0]<CLOSE[0] Then
T = 1;
if stime >= 190000 or stime < 020000 then{
if MarketPosition == 0 and T == -1 and countif(T == T[1],3) == 3 Then
sell();
if MarketPosition == 0 and T == 1 and countif(T == T[1],3) == 3 Then
buy();
}
if stime == 020000 or (stime > 020000 and stime[1] < 020000) Then{
ExitLong();
ExitShort();
}
SetStopProfittarget(PriceScale*30,PointStop);
SetStopLoss(PriceScale*15,PointStop);
즐거운 하루되세요
> 매일상승 님이 쓴 글입니다.
> 제목 : 부탁드립니다.
> 아래 수식에 매매시간을 오후 7시에서 새벽 2시까지만 매매하고 청산하도록 부탁드립니다.
감사합니다.
var : T(0);
var1 = ma(c,9);
var2 = ma(C,18);
if var2[1]>var2[0] and
OPEN[0]>var1 and
OPEN[0]>CLOSE[0] Then
T = -1;
SELL();
if var2[1]<var2[0] and
OPEN[0]<var1 and
OPEN[0]<CLOSE[0] Then
T = 1;
if MarketPosition == 0 and T == -1 and countif(T == T[1],3) == 3 Then
sell();
if MarketPosition == 0 and T == 1 and countif(T == T[1],3) == 3 Then
buy();
SetStopProfittarget(PriceScale*30,PointStop);
SetStopLoss(PriceScale*15,PointStop);
다음글
이전글