|
lahahaha 發表於 15-8-3 23:38
不太明白, 我找了barssinceentry和entryname的語法, 也找不到類似的做法, 請問大大可以給一點例子解釋嗎? ...
Vars:
Entry1Count(0),
Entry2Count(0);
If Date<>Date[1] then begin
Entry1Count=0;
Entry2Count=0;
end;
If condition1 and EntriesToday(date)=0 and Entry1Count<1 then Buy("B1") Next Bar at xxxx .......;
If condition2 and EntriesToday(date)<2 and Entry2Count<1 then Buy("B2") Next Bar at xxxx ......;.
If barssinceentry=0 and entryname="B1" then Entry1Count=Entry1Count+1;
If barssinceentry=0 and entryname="B2" then Entry2Count=Entry2Count+1;
|
|