If the below condition occurs I would like to buy one share (buy on close) and hold it for a specific time period, say 10 days (sell on close).
Code: Select all
if low < low[1] and low < low[2] and low < low[3] and low < low[4] then begin
Buy this bar on Close;
I need to track each individual position and sell it after 10 days while adding multiple positions during that period. So, each entry, independent of each other, needs to be held for 10 days only.
How to do that?
Thanks in advance,
TheSpeculator152