I currently want to make a backtest and only perform margin trading
I'm define my variables as
Cover = (strategy conditions in my code);
Short = (strategy conditions in my code);
Now, I only want it to perform either Cover or Short, not "buy" or "sell"
But I cant get around the correct way to write it, even if I write
buy = Cover;
sell = Short;
(My mistake is probably there), on the "Scan" I still get buy/sell...which I want to avoid and only open margin positions, I tried just taking the buy/sell out or apply a "null" function, but its not working.
Thanks for the help and support