Just trying to setup a simple strategy that compares the values of the current bar against the previous x number of bars. I am trying to use the analyzer to run through different values for previous bars back.
Here's what the code looks like.
// Set 1
if ((Low[0] < Low[X])
&& (Close[0] > SMA1[0]))
{
EnterLong(Convert.ToInt32(DefaultQuantity), "");
}
Any input would help
Thanks

Comment