I am trying to add a second timeframe to a strategy. I have looked at a sample code for such a strategy on the forum but can't get it to work.
This is what I have:
protectedoverridevoid Initialize()
{
Add(PeriodType.Minute, 60);
]
// Condition set 1
if (Close(BarsArray[1],60)[0] > SMA(BarsArray[1], 100)[0]);
{
EnterLongLimit(1000, Close[0], "");
}
Thank you
Comment