Logic:
If market position = long
do this
if market position = short
do that.
I have the syntax:
if (MarketPosition == MarketPosition.Long)
[...rest of code...]
For whatever reason, the compiler hates this. Nothing I've done has made this function. It always says it doesn't exist in the current context.
What is the syntax for determining whether your position is long or short? I may be using old/outdated code...
Comment