So if i for some reason decided that I wanted to enter a long trade at the start of each wednesday I would write something like this.
if(Bars.FirstBarOfSession){
if (Time[0].DayOfWeek == DayOfWeek.Wednesday){
EnterLong(NuContracts, "Wednesday_LE");
}
}
However I tested this out this morning on a 5 minute bar chart that had a starting time of 8:30am and closing time of 3:15pm. It placed the trade as soon it ticked but it entered at market, thus getting in a tick worse than open. Is there a way to assure that the trade will get in at the days opening price?
If there is no way around this then is there away to have it adjust the profit point should it not enter at open? I want it to set a profit target of 1.25 from the days open.
Comment