I have been working on a very simple signal consisting of:
- moving averages for entries and exits
- time restrictions
- trailing stops triggered beyond a profit target
- stoplosses
I have been testing it on several time frames. The shorter the better for both profit and drawdown, but beyond 5 minutes the testing becomes endless, so I will stick to 5 minute bars.
Now I have one last input to add, but no idea how to begin doing that - my comment on the code reads {*** ADD THIS: If there was a big enough fall in the opposite direction then enter on signal ***}
What I am trying to make my system do is - after telling him with profit target and stoploss to stick to its trades - trying to make him take better decisions, by only taking trades in a direction opposite a "big enough" fall (in the opposite direction). "Big enough" will be an input to be optimized, but the problem is - how do I tell it to only take signals (ma crossovers) that come after a fall in the opposite direction? It should be something like "if currentbar has a given RSI (or stochastic?) then accept the following signal in the opposite direction"...
- moving averages for entries and exits
- time restrictions
- trailing stops triggered beyond a profit target
- stoplosses
I have been testing it on several time frames. The shorter the better for both profit and drawdown, but beyond 5 minutes the testing becomes endless, so I will stick to 5 minute bars.
Now I have one last input to add, but no idea how to begin doing that - my comment on the code reads {*** ADD THIS: If there was a big enough fall in the opposite direction then enter on signal ***}
What I am trying to make my system do is - after telling him with profit target and stoploss to stick to its trades - trying to make him take better decisions, by only taking trades in a direction opposite a "big enough" fall (in the opposite direction). "Big enough" will be an input to be optimized, but the problem is - how do I tell it to only take signals (ma crossovers) that come after a fall in the opposite direction? It should be something like "if currentbar has a given RSI (or stochastic?) then accept the following signal in the opposite direction"...