I want only one entry in one day on intraday bars. I used this below code. But this allow one entry and for further entries don't allow. How I can do this?
Code: Select all
if entrydate(1) = date then oOnePosition= False;
if oOnePosition and condition1 then buy at open;