MA
    
                Topics
                 01 Mar 2021, 02:31
            
            
         1153
    
    
         5
    
Replies
                     maxalta
                     01 Mar 2021, 11:18
                                    
RE:
Thank you for your help Panagiotis, but really I need an example here... In one of your code suggestion here:
protected override void OnStart()
{
    var bars = MarketData.GetBars(TimeFrame.Minute, "GBPUSD");
    bars.BarOpened += Bars_BarOpened;
}
private void Bars_BarOpened(BarOpenedEventArgs obj)
{
    Print("New bar created for " + obj.Bars.SymbolName + " at " + obj.Bars.Last(0).OpenTime);
}
I can see that bars are first retrieved passing a TimeFrame.Minute to MarketData.GetBars, but it doesn't accept a NO timeframe param, e.g. T50... How to reach the same thing using ticks?
Please an example would be very appreciated for a newbie like me...
@maxalta
maxalta
01 Mar 2021, 12:12
RE:
Panagiotis your suggestion works like a charm: thank you very much!
Very appreciated!
@maxalta