I would like to use the 200 day MA as a long term filter on my intraday 1364 tick bar chart but am not having any luck. The session template I'm using is US Equities RTH, same as with the 5 minute charts. Any help will be greatly appreciated.
Thanks,

protected override void Initialize()
{
Add(PeriodType.Day,1);
protected override void OnBarUpdate()
{
if (BarsInProgress != 0)
return;
if (SMA(BarsArray[1], 1)[1] > SMA(BarsArray[1], 200)[1])
{
if ( My Entry Conditions)
{
EnterLong(positionsize, "LE");

Comment