止盈和回撤线的设置

Posted by:

|

On:

|

Today I launched the strategy to monitor the three stocks I selected using my screener and quickly noticed several issues.

First, the strategy didn’t seem to respond as expected. I added print statements to confirm when the if condition was triggered, and it was reassuring to see that part working correctly.

Next, I introduced highest_price and trailing_stop_line to observe how the stop-loss logic behaved. I realized that using a fixed 0.5% drawdown threshold was too rigid and not adaptive to each stock’s price level.

For example, a 0.5% drawdown on a $20 stock results in a $0.10 move — which equates to a $100 loss on 1,000 shares. This flat percentage approach doesn’t scale well across different stock prices.

I’m now trying to figure out how to adjust the drawdown more precisely

pricedrawdown ratiodrawdown rangeshareamountholdingrate
50.0052.5c10002550000.005
100.0055.0c100050100000.005
150.0057.5c100075150000.005
200.00510.0c1000100200000.005
250.00512.5c1000125250000.005
300.00515.0c1000150300000.005
350.00517.5c1000175350000.005
400.00520.0c1000200400000.005
450.00522.5c1000225450000.005
500.00525.0c1000250500000.005
550.00527.5c1000275550000.005
600.00530.0c1000300600000.005
650.00532.5c1000325650000.005
700.00535.0c1000350700000.005
750.00537.5c1000375750000.005
800.00540.0c1000400800000.005
850.00542.5c1000425850000.005
900.00545.0c1000450900000.005
950.00547.5c1000475950000.005
1000.00550.0c10005001000000.005

Leave a Reply

Your email address will not be published. Required fields are marked *