Adding simple declaration grammar to handle instructions on allowing or not
allowing short/long trades
sample P&L calculator shown here
seems like we tackle pretty much all the different cases here
adding long/short trade flags to the result
Implementing the P&L calculator function to filter out the bad buy/sell signals
and only display the ones that should be displayed.