Please take a look at the code bellow...I am trying to change my stop price using a Range 1 chart to trigger the stop change from the primary 5 minute chart. I keep getting an error when trying to compile...I have poured over the forums and sample strategies provided as well as the multi time frame material in the help guide....i know its something simple I am just not getting...Thanks in advance!
protected override void Initialize()
{
Add(PeriodType.Range, 1);
}
protected override void OnBarUpdate()
{
if (Position.MarketPosition == MarketPosition.Long)
{
if (CrossAbove(Close[1][0], Position.AvgPrice + 22 * TickSize, 1) && tStop1 == false)
{
Do something
}
}
}
Comment