Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
I use that keltner function in other signals and plot the keltner indicator separately and they always seem to match up. I don't imagine that is the issue. I think I did even try taking it out and using a different requirement for that part. I think I tried RSI, if RSI was below a certain level then it was supposed to turn the TradeClose bool to True. Same issue though.
Alrighty then. When assumption checking fails time to put on our thinking caps.
Can you post 2 things:
1. a screenshot of the entire chart containing the offending trade compressed so that the image contains both the entry and the exit if possible (but not so compressed numbers on the axes are not discernible), but of main interest is the exit, the time axis at the bottom and price axis at the right; and,
The second chart is further back - you can see another 2 instances where it should have triggered the exit.
One around the beginning of the 30th and one on the 25th. The asset is AUDJPY and the timeframe was a 21 minute chart.
*The entry related to the exit we were looking at is on the 29th.
The first thing to notice is that the trade spanned not one but many session boundaries which (given my experience with Interactive Brokers and NT) probably means all bets are off for automated strategies running on platforms designed for retail traders.
I'm a day trader (at least don't leave strategies running overnight because of my experience with IB and NT ) and still learning MC so would have to discover if MC has issues similar to NT, assuming we can rule out IB as the common factor.
In any event clearly it seems the trade should have exited around 4 AM on the 30th of October, soon after the trade was entered (in swing trading terms).
I can understand your confusion but I'm curious why it exited at all since it makes no sense to me unless it was a live trade--in which case it's my experience 3rd party retail platforms tend to fall apart.
Can you confirm it exited automatically (confirm you did not kill it to make the exit) and that this is a backtesting result rather than an actual live trade?
While I assume it's a backtest, if a live trade for the record can you confirm 2 things:
1. whether you tinkered with the signal or the chart or even turned your computer off and back on between Oct 29 (entry) and Dec 8 (exit)?
2. whether your broker is IB?
Tough puzzle. I already know your answer is that it was a backtest
At this point should probably post the....
Disclaimer
All my tests have been on bar intervals likely to give an intraday exit rather than a 21 minute bar interval--the assumption I missed-- and this is probably the key. Should confess I may not be able to help you with this if the strat runs past session close and if so there are 2 choices: close at end of session or wait for someone better informed than I (your future self perhaps!) to parachute in.
If it's a backtest it may be a bug in MC, in which case have to ask are you running 8 or 8.5 (beta). NT at least can handle backtests (screws up in real time). Otherwise I've learned not to trust a retail broker/platform pair for strategies overnight exactly because of insoluble swing trade issues of this sort :-/
Edited to add: That's one reason I use IB's interface (TWS) for swing trades.
This was a backtest in MC using IQFeed data. If/when trading live I use MC with IB as my data and broker. I haven't had any issues with multi-day trades in a live environment with MC and IB though.
I just took a look back through the data and found a situation where the entry, the exit trigger (bool) was triggered and the price retraced to the moving average all within the same day and the trade did not exit as it should have (I will post that below).
Yeah it's really quite confusing to me why it exits when it does - it seems to ignore other situations that seem to be equivalent in all respects...
Thanks again for your help on this - maybe I should just try approaching this from a different angle?
For the record here is what I'm seeing (in this case a 21 minute AUD.JPY chart with the signal applied, data courtesy of IB). The entry is slightly different presumably because of the different feed, given the signal MAs (cyan and magenta) are intertwined around the point of entry, but the exit is as expected :-/