This was an email on my opinion on trying to code this
This is pertaining to scenarios like this:
Correct it’s Van Tharp strategy. It’s an evaluation for risk to reward when taking a trade based on a return along with position sizing. Do you think this is something you can code in the system for Working with Interactive Brokers API? It’s basically getting interactive brokers to trail an unrealized PNL. So no matter how many positions I decide to buy it would mass sell on market if I lose -$150 but also trail the unrealized PNL by “R” increments to help for
1. Positions gain +$150 unrealized PNL auto stop $0.00 for breakeven all trades closed on a market order then lock account for the day.
2. Positions gain +$300 unrealized PNL auto stop +$150 all trades closed on a market order then lock account for the day.
3. Positions gain $450 unrealized PNL auto stop +$300 all trades closed on a market order the lock account for the day.
So example 2 would be a 1R and example 3 would be a 2R. The reason for locking the account is to stop over trading and keep tighter restraints on picking the best entry.
R is explained here:
This is reference to this book:
I now post my TRADING ALERTS
into my personal FACEBOOK ACCOUNT
. Don't worry as I don't post stupid cat videos or what I eat!