rottentrade
Member
I would like to code a strategy based on the current trade position (eg. long or short) I have. For example:
def Buy = if SHORT then ATR > 10 else 0;
def Sell = if LONG then ATR > 10 else 0;
I was thinking GetQuantity() might do the trick, but got stuck in the process.
def Buy = if SHORT then ATR > 10 else 0;
def Sell = if LONG then ATR > 10 else 0;
I was thinking GetQuantity() might do the trick, but got stuck in the process.