커뮤니티
수식요청(18-1호)
2015-10-01 11:19:48
157
글번호 90839
함수 수정 요청드립니다.
아래의 함수에서 전일거래 손실시 당일거래를 하고자 합니다.
(글번호 41691번 질문과 같은 컨셉입니다.)
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:30:54
안녕하세요
예스스탁입니다.
var: NP(0),NP1(0),NP2(0);
NP = NetProfit;
if date != date[1] Then{
NP1 = NP[1];
NP2 = NP1[1];
}
if MarketPosition <= 0 and NP1 <= NP2 and stime < 150000 Then
buy("b",AtStop,highest(H,10)-PriceScale);
if MarketPosition >= 0 and NP1 <= NP2 and stime < 150000 Then
sell("s",AtStop,Lowest(L,10)+PriceScale);
즐거운 하루되세요
> 통큰베팅 님이 쓴 글입니다.
> 제목 : 수식요청(18-1호)
> 함수 수정 요청드립니다.
아래의 함수에서 전일거래 손실시 당일거래를 하고자 합니다.
(글번호 41691번 질문과 같은 컨셉입니다.)
if MarketPosition <= 0 Then
buy("b",AtStop,highest(H,10)-PriceScale);
if MarketPosition >= 0 Then
sell("s",AtStop,Lowest(L,10)+PriceScale);
다음글
이전글