Hey everyone, i am new here and got one question. 

I created my first investing algo that does the following:

The algo is looking at the top 5 technology stocks sorted by market cap.
Once one of these stocks drops below the 100 EMA i want to buy 10% of my total capital.

I try to set a target at the all time hight of the stock. So when the stock price passes the all time high i want it to sell my holdings.
But i can't figure out how to set a target when using the framework.

OH, and if you see any problems or bugs in my code or you see something i can improve. LET ME KNOW :) always want to improve!!

Thanks in advance!