I have a stategy that uses multi timeframe of 1 Tick and 15 mins. I want the strategy to place a long order inside of the 15 min candle stick (Hence the need for Tick Chart). But it seems like it is waiting for the 15 min stick to close before placing the order. I did some digging into it to find out why it was not doing what I wanted it to do by using arrows and noticed something weird happening
- The Arrow location is not the same as the Open[0] price on a 1 Tick Chart.For some reason it is 10s of pips below the Open. I have made some screen captures for you to see. The first picture shows the correct Open[0] for both time frames where the cross-hair is located but notice the arrow is way down below.
Secondly, even if I move my cross hair upto the arrow, it is near the middle of 15 min candle stick.I think this is the reason my Strategy is not placing the order like I want because I am using Open price of 15 min chart as a guide.
Any help would be much appreciated
protected override void Initialize() { CalculateOnBarClose = false; Add(PeriodType.Minute,15); } /// <summary> /// Called on each bar update event (incoming tick) /// </summary> protected override void OnBarUpdate() { if(Open[0]==Opens[1][0]) { DrawArrowUp("Arrow" +counter,0,Open[0],Color.Green); counter=counter+1; } }
Comment