Due to commitments to a Nat/l. organisation, cannot follow thread constantly - sorry.
1. Trades setup by PPoS2 will differ from PPoS as month goes on as direction determination is slightly different - that was the point to see if 20xD1 & 5xD1 is possibly more accurate than Mn & W1 resp.
2. PPoS2 not trading Day2 may be related to hard wired Day1 of month code in IsTradingAllowed() - now moved to extern option in ver 2C attached, as implied by Mike.
Code: Select all
extern int Trade1stDayOMonth = true;
Steve's original PPoS code did not really allow for 'StopTradingDay' to engage no further trades without 'CloseAndDeleteTrades' being set.
I was using
Code: Select all
StopTradingDay = 23; // &
CloseAndDeleteTrades = false;
which actually did nothing, hence added a detector in IsTradingAllowed() which may have disturbed things. Will watch next week Day2.
3, As iasho (Sat Jul 11) pointed out, using 20x & 5x Trading for direction, we may need neither of these since we are no longer relying on a previous calendar month or week.
ver 2C - All other inputs set to orig. PPoS ver-k incl. magicNumber = 0;
Remind that PPoS set file does not match as PPoS2 has extra inputs.
Real compare results may only be evident after some weeks & interesting to watch. I mentioned am trialling 'Market' rather than 'Pending' (only available in orig. for Main trades & not Multi). Picks up Main much earlier but with real reversals will hit SL more often.
Paul
You do not have the required permissions to view the files attached to this post.