The simple entering strategy is:at the beginning of the bar, I have a level (either calculated based on bars before or predfined) that I would like to buy if break up during the new bar begin to end time period. Is there anyway to achieve this or at least approximate this?
I am using OnBarUpdate() method and looks can not achieve this goal. The following is something I did:
protected override void OnBarUpdate()
{
if(this.DonchianChannel(PREDFINEDLEVL < this.GetCurrentAsk()){
enterlong(1);
}
}
The problem is when currentask > PREDEFINEDLEVEL, it is usually too late to enter.
Comment