[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: code help



PureBytes Links

Trading Reference Links

Pablo,

>How can I get my system to reenter on the same signal after I get
>stopped out?

Signals you generate always apply to the next bar.  One way is to
use a shorter time frame for data, and artificially create your
daily bars from the minute-bar data to generate your signals from.

>For example, I get a signal to buy at x so I buy at x but I get
>stopped out at y.  My current system call it quits for the day even
>if the market moves toward my previous signal at x. How can I get
>my system reenter at x again? I'm running ts 8.1.

To me it looks like you're trying to make your code change its mind
like a human.  The point is, if your stop was hit, that should tell
you that you were WRONG to enter the market in the first place.  If
you don't agree with this measure of "wrongness," then change the
measure by loosening your stop on the entry bar and tighten it up on
the next bar.

If you are concerned about intra-day movements on daily bars, then
you need to use intra-day data.

-Alex