I am trying to figure out how can I check the type of the last closed position. I have a list of order types and their Names eg "Long Entry" or "Short Entry".
For example, I want to say that:
if MyLastClosedPosition is "ShortEntry" or "LongEntry" then do something...
Is there any method to get this in Ninjascript?
Thanks for the help!
Comment