I found in the forum the following code:
Trade lastTrade = Performance.RealtimeTrades[0];
However, when I code this in my strategy, after the OnbarUpdate(), the word "Trade" does not turn blue. The script compiles ok, but the strategy does not execute any trades.
Do I have to write some more code somewhere else for the "Trade" thing to turn blue?
Comment