Here is what I came up with:
if ((Position.GetUnrealizedProfitLoss(PerformanceUnit .Currency, Close[0]) > -100)
{
Order_BuyExit_SellStopLoss[0] = location_above_bar;
}
I'm getting this error:
An object reference is required for a non-static field, method or property.
What am I missing?
Comment