SOLVED

Trades Needed in Sheet 2

Copper Contributor

Hello,

I have attached an Excel file. I have the price, the signal, and stop loss file in sheet 1.

In sheet 2, I have manually filled out the trades. I need functions in Excel which would fill out sheet 2 automatically, based on the data of sheet 1.

In sheet 2, a trade is initiated if there is a buy signal in sheet 1. There is also a stop loss price in sheet 1. If there is a buy signal, then

1) The stop loss price corresponding to the buy signal (the stop loss price in Column E) is the "Sell Price" (in sheet 2) unless the "Sell" Signal (in sheet 1) is reached first, in which case the price corresponding to this sell signal in sheet 1 becomes the "Sell Price" in sheet 2. Column D in sheet 1 may be ignored, it is for recording purposes only. 

 

Date Initiated in sheet 2 is always the day the security was bought (or when there is a "buy" signal), but there are two possibilities for "Date Terminated". If the stop loss price is reached first, then the date terminated is the date that the stop loss price is reached, whereas if the stop loss price is not reached before the "Sell" signal, the date at the sell signal is the "Date terminated"

I will highly appreciate if someone can help me out with this.

1 Reply
best response confirmed by Omer_Ad (Copper Contributor)
Solution

@Omer_Ad 

hey check out the attached xl file which i made it, used 3 helper columns to fill automatically. When you enter "buy" or "sell" in sheet1, sheet2 will be filled automatically. However for automation i strongly suggesting to use tables. Hope you will understand the logic i used.

Happy Trading :)

1 best response

Accepted Solutions
best response confirmed by Omer_Ad (Copper Contributor)
Solution

@Omer_Ad 

hey check out the attached xl file which i made it, used 3 helper columns to fill automatically. When you enter "buy" or "sell" in sheet1, sheet2 will be filled automatically. However for automation i strongly suggesting to use tables. Hope you will understand the logic i used.

Happy Trading :)

View solution in original post