I'm using the Print command in my strategy to be able to check in the Output Window on which market the strategy generated a signal. This works well, but I'd also like to see on which timeframe the signal has occurred, since I'm using two different timeframes per market.
The following snippet gives me the name of the market, but not the timeframe. Where did I make a mistake?
Print("Market:" + Instrument.MasterInstrument.Name + PeriodType.Minute);
Thanks for your input.
Comment