커뮤니티
감사합니다. 추가 질문입니다.
2015-10-27 10:46:48
123
글번호 91727
아래 수식는 종전에 문의 드린 결과로 얻은 수식 입니다. 감사합니다.
그런데 하루에 거래가 여러번 발생하더라구요.
아래 언어에서 하루 한 번만 거래 하려면 어떻게 해야 하나요?
(코스피200선물 1분봉 차트를 이용합니다.)
if crossup(c,dayhigh(1)) Then
buy();
if CrossDown(c,DayLow(1)) Then
sell();
SetStopProfittarget(0.5,PointStop);
SetStopLoss(0.5,PointStop);
SetStopEndofday(150000);
답변 1
예스스탁 예스스탁 답변
2015-10-27 11:13:24
안녕하세요
예스스탁입니다.
input : N(1);
var : Entry(0);
if bdate != Bdate[1] Then
Entry = 0;
if MarketPosition != 0 and MarketPosition != MarketPosition[1] Then
Entry = Entry+1;
if entry < N and crossup(c,dayhigh(1)) Then
buy();
if entry < N and CrossDown(c,DayLow(1)) Then
sell();
SetStopProfittarget(0.5,PointStop);
SetStopLoss(0.5,PointStop);
SetStopEndofday(150000);
즐거운 하루되세요
> 돌을던져라 님이 쓴 글입니다.
> 제목 : 감사합니다. 추가 질문입니다.
> 아래 수식는 종전에 문의 드린 결과로 얻은 수식 입니다. 감사합니다.
그런데 하루에 거래가 여러번 발생하더라구요.
아래 언어에서 하루 한 번만 거래 하려면 어떻게 해야 하나요?
(코스피200선물 1분봉 차트를 이용합니다.)
if crossup(c,dayhigh(1)) Then
buy();
if CrossDown(c,DayLow(1)) Then
sell();
SetStopProfittarget(0.5,PointStop);
SetStopLoss(0.5,PointStop);
SetStopEndofday(150000);
다음글
이전글