커뮤니티
문의?
2012-11-06 13:26:17
317
글번호 56276
if scnt < 1 and stime < 100000 and crossup(kaa, 0) then sell("A");
if MarketPosition == 0 and count > 0 and IsExitName("StopProfittarget",1)Then{
if isentryname("A",1) And
stime > 130000 and crossdown(c, 60) then sell("A-1");
SetStopProfittarget(PriceScale*(250000/PointValue),PointStop);
선언되지 않은 "count"이(가)사용되었다고 합니다.
조건을 만족할만한 수식 부탁드립니다.
답변 1
예스스탁 예스스탁 답변
2012-11-06 13:39:06
안녕하세요
예스스탁입니다.
count는 는 작성자가 직접 만들어 사용하는 변수이고
어떤 계산식을 할당해 사용하시는지 알아야 작성해 드릴수가 있습니다.
아마도 식 내용상 당일거래횟수인거 같습니다.
scnt와 kaa에 대한 계산식을 따로 추가하시기 바랍니다.
var : cnt(0),scnt(0),kaa(0),count(0);
count = 0;
for cnt = 0 to 10{
if sdate == EntryDate(cnt) Then
count = count+1;
}
if scnt < 1 and stime < 100000 and crossup(kaa, 0) then
sell("A");
if MarketPosition == 0 and count > 0 and IsExitName("StopProfittarget",1)Then{
if isentryname("A",1) And
stime > 130000 and crossdown(c, 60) then sell("A-1");
}
SetStopProfittarget(PriceScale*(250000/PointValue),PointStop);
즐거운 하루되세요
> 시스템매니아 님이 쓴 글입니다.
> 제목 : 문의?
>
if scnt < 1 and stime < 100000 and crossup(kaa, 0) then sell("A");
if MarketPosition == 0 and count > 0 and IsExitName("StopProfittarget",1)Then{
if isentryname("A",1) And
stime > 130000 and crossdown(c, 60) then sell("A-1");
SetStopProfittarget(PriceScale*(250000/PointValue),PointStop);
선언되지 않은 "count"이(가)사용되었다고 합니다.
조건을 만족할만한 수식 부탁드립니다.