커뮤니티
수식요청(18-2호)
2015-10-01 11:10:56
165
글번호 90840
함수 수정 요청드립니다.
아래의 함수에서 전거래일과 전전거래일 손실시(2영업일 이상 손실시) 당일거래를 하고자 합니다.
if MarketPosition <= 0 Then
buy("b",AtStop,highest(H,10)-PriceScale);
if MarketPosition >= 0 Then
sell("s",AtStop,Lowest(L,10)+PriceScale
답변 1
예스스탁 예스스탁 답변
2015-10-01 15:32:57
안녕하세요
예스스탁입니다.
var: NP(0),NP1(0),NP2(0),NP3(0);
NP = NetProfit;
if date != date[1] Then{
NP1 = NP[1];
NP2 = NP1[1];
NP3 = NP2[1];
}
if MarketPosition <= 0 and NP1 <= NP2 and NP2 <= NP3 and stime < 150000 Then
buy("b",AtStop,highest(H,10)-PriceScale);
if MarketPosition >= 0 and NP1 <= NP2 and NP2 <= NP3 and stime < 150000 Then
sell("s",AtStop,Lowest(L,10)+PriceScale);
즐거운 하루되세요
> 통큰베팅 님이 쓴 글입니다.
> 제목 : 수식요청(18-2호)
> 함수 수정 요청드립니다.
아래의 함수에서 전거래일과 전전거래일 손실시(2영업일 이상 손실시) 당일거래를 하고자 합니다.
if MarketPosition <= 0 Then
buy("b",AtStop,highest(H,10)-PriceScale);
if MarketPosition >= 0 Then
sell("s",AtStop,Lowest(L,10)+PriceScale
다음글
이전글