Hi there,
I have been trying to learn to code, and have had a bit of trouble with these bits of coding:
- I want to set an initial stop loss for each position of 1.5 x 20 day ATR (Average True Range)
- I want the above value to be my stop loss, BUT I want this value to represent 0.30% of my total account equity at the time the position is opened.
- I want to go long a stock if it is within 10% of a rolling 52 week high price.
Any help would be greatly appreciated!