Im trying to figure out how to code taking profit on half my position but am not having much luck.
Essentially what I want is to have an initial hard stop on my whole position. Then when my profit target is reached, take profit on 50% of my position. Then implement a trailing stop on the remainding half of my position.
Also, what if my strategy is running on bar close. How would I go about changing my stops as per above if I dont want to wait till the close of the bar. ie: My entries work on bar close, but I need my stops to be managed 'live'. Is that possible?
Could someone please offer some advice or point me in the right direction.
Last edited by DarkPoolTrading; May 13th, 2012 at 02:42 AM.
Due to time constraints, please do not PM me if your question can be resolved or answered on the forum.
Need help? 1) Stop changing things. No new indicators, charts, or methods. Be consistent with what is in front of you first. 2) Start a journal and post to it daily with the trades you made to show your strengths and weaknesses. 3) Set goals for yourself to reach daily. Make them about how you trade, not how much money you make. 4) Accept responsibility for your actions. Stop looking elsewhere to explain away poor performance. 5) Where to start as a trader? Watch this webinar and read this thread for hundreds of questions and answers. 6) Help using the forum? Watch this video to learn general tips on using the site.
If you want to support our community, become an Elite Member.
The following user says Thank You to Big Mike for this post: