Hi all,
Found an issue with the EA reconstruction proper fibs after the weekend and for subsequent times in the daytime.
Also for calculation of one trade per day. It was counting an open and closed pending trade as a trade, even if the actual buy/sell never got taken.
Corrections made.
Also put in safety code if someone put in MaxLots=0 by mistake. It would have screwed up lot calc. Wasn’t sure if this happened to NewNine?
I put the default candle wick size at 0 because usually, the minFibSize will prevent any bad events. And I was missing trades because of it.
There is an “All_Filters_Off” setting default=True. Since pretty much no-one is using the filters, this will speed up backtesting an incremental amount (not much, its still pretty slow).
After sufficient time, if litterally no one is using the filters, I will remove them from the code. They don’t hurt anything, just increases the file size.
The only filter that actually allowed ANY trades was NewNine’s idea of the 5 period MA high/low channel, but it still reduced the net profit.
The question we need to ask is where are most the losses happening. If it is indeed during consolidation times , we can play around with other methods/filters to try and weed out those trades. However, if net profit is still made, even during consolidation, than obviously, we don’t need to filter it out.
Last minute change: put MinFibSize to 25; If you think it should remain larger, let me know, can put back, but thougth we’er missing trades, and fib of 25 size should allow “not too squished” fib.
Also:
This only affects those using the RiskPercent that is reduced with multiple open trades:
Realized another last min fix re: accumulative trade reduction in risk, was reducing by all open and pending trades, so the last pending trade to open got the least account risk, but it might be the first pending to open, so changed the calcs to only open trades, and whenever the number of open trades changes, pending trades are deleted and reopened with new lot risk.
Unfortunately, you cannot modify the lotsize of a pending trade, just the stops, so no other way to modify the lotsize wihtout closing and re-opening. Shouldn’t affect anything else. By the way, I set up the code not to delete all pendings every time you change settings in the EA. So, if you have old pending trades using the previous accumulating lot risk system, you should manually delete the pending trades to get accurate lotsize calc.
Wicks_ea_v13a.zip (8.52 KB)