I am working with a strategy that I am testing that uses COBC set to TRUE. When the basic condition is meet for Longs upon bar close it enters, if conditions change for short then it does reverse with COBC TRUE.
Work fine...
But, I want to set a separate and independent special condition using "else if" that will do the following:
I would like, however, a moving average or equivalent following the entry long or short (as the case may be) in real time effectively being calculate as if it was running (or is running) with COBC false (or some method that will effectively allow it to calculate in the same way as COBC false). So, if I am in long or short this special condition will simply ExitShort or ExitLong (as the case may be) if price touches/crosses over the MA. This way, it does not have to wait for the bar to close to exit.
How can I do this?
I welcome multiple thoughts from different folks and I am sure others would like to potentially do this as well in the future.
Thanks guys...
@koganam if you can commit that would be great if you have time.

Comment