I've got the following code within a strategy:
protectedoverridevoid OnMarketData(MarketDataEventArgs e)
{
if(e.MarketDataType == MarketDataType.Last)
{
if(Low[0] <= EnterPlace - (4 * TickSize))
{TRAILPlace = EnterPlace - (4 * TickSize);}
}
}
It is intended to simply compare the current Low with a value 4 pips below the entryprice, and set a variable if lower. It should be calculated on each tick. It doesn't seem to be recognized when the strategy runs...is there an obvious code error here?

Comment