Code leaves me hanging out on a limb
Author: cfjesse2
Creation Date: 11/22/2008 7:41 AM
profile picture


However have got a script that I like except for one thing. It buys at the end and it never gets out and just leave me hanging out there on a limb sucking down my previous profits.

Any help you could provide would be appreciated.

Please log in to see this code.


profile picture


1. Please make use of the CODE tags by putting your code inside them.

2. The Strategy code is fine. It would exit only if after 5 days of sitting in a position, there was a profit of 8% or greater (i.e. limit order). Otherwise it stays in the position. Since the code is generated by the Rule wizard, just add a different sort of exit rule -- something like trailing stop order or time-based exit.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).