{
if (marketDataUpdate.MarketDataType == MarketDataType.Last)
{
if(marketDataUpdate.Price != LastTradePrice)
{
LastTradePrice = marketDataUpdate.Price;
Print("Last = " + LastTradePrice);
}
}
Print("Last high 1 = " + LastHigh);
if (LastTradePrice > LastHigh);
{
LastHigh = LastTradePrice;
Print("Last high = " + LastHigh);
}
}
I am tying to get LastHigh to only change its value when the price goes higher, but it also goes down. I am doing something wrong can you see what?
Thanks
Comment