Hi,
I have the attached table.
The formula in column E and F are based on the following criteria:
1) If the price drops by 2%, then buy
2) When the price rises by 2%, then sell
3) You can only buy once and can only buy again after you sell
So far the formula works but the formula sells after buying even though the selling price is lower than the buying price. Example is in cell E10, we bought at 22.6 after the price fell more than 2% but sold in cell F22 for 21.4 after price changes by more than 6%. However, this price is lower than the buy price.
Is there a way to modify this formula to add the criteria that it can only sell if the change in the price is more than 2% but also the sell price must be more than the buy price ?
Appreciate all the help.
I have a cross post here:
https://www.mrexcel.com/board/thread.../#post-5808181
Bookmarks