Posts

New Validation Structure

 06/01/25     12:29 After a long day the restructure is done but not thoroughly tested.  I have run a test over 6 months and it came out in profit but was inconsistent with it's trades so I will start a round of testing the new validation structure to see if everything is working properly tomorrow.  

Red Line / White line Modes test

 04/01/25     12:28 Success.  Finally got the modes functionality working correctly.  And with the red line switched off it gained about another 1k compared to the previous tests and finished in profit at $2422.12  (2 month period since Nov 1).  Definite improvement in how early it begins trades. From the AI:      Trading Performance: Started at: $10,000 Ended at: $12,422.12 (+$2,422.12) Total trades: 38 Success: The white-line-only mode showed improved performance Key Profitable Trades: Trade #74: +$948.44 (Dec 19 06:00 - 21:00 Buy) Trade #58: +$583.56 (Dec 9 10:00 - 22:00 Buy) Trade #70: +$382.47 (Dec 17-18 Sell) Risk Management: Maximum drawdown was 9.17%      (Under 10% is great)      The Three Biggest Losses: -$317.85 (Dec 11) SELL at 87.451 Stop loss hit at 87.951 Duration: 1.5 hours Hit stop loss during momentum reversal -$236.47 (Dec 27) BUY at 89.588 Closed at 89.216 Dura...

Momentum Overhaul

 04/01/25     12:37 am Long day.  Just finished a major overhaul of the momentum code after altering the code to accept a mode for using both lines OR the white line only.  The for the momentum  was extensive and separating the two was time consuming and difficult, so after many tests that showed now changes it resulted in a major overhaul to install a modes functionality.  So the program now detects and operates in a mode that uses both lines for momentum and a mode for white line only.  When in one mode all the data from the other mode is ignored. I could have just removed the red line functionality but if I did that and it didn't show any significant improvement or there were other complications arising from it then switching back to the old system would not be great.  So having the ability to switch from one to the other gives the user flexibility and enhances testability in the different modes. I have completed the code now but haven't t...

Momentum Optimisation

 02/01/25     10:21 Been working on the momentum code most of the day today and looks good now.  The functionality is mostly there.  From a small test this morning: The momentum system is working: When momentum is high, we see larger reductions in MinLineDifference: Required Difference: 0.036626 (Base: 0.046000 reduced by 20.4%) Momentum Factor: 20.4% vs. low momentum: Required Difference: 0.043217 (Base: 0.046000 reduced by 6.0%) Momentum Factor: 6.0% So it is working but needs to be optimised again with the other key momentum parameters, which is where I am at right now.  Currently doing a 4 property optimisation with the new code to find the best configuration.  The properties are: Property                              Description                                 ...

Momentum

 01/01/25     12:38 As per our discussion I altered the way the lines were being identified by using the 0 or 1 reference built in to MT4 and this seemed to eliminate many of the clusters of bad sell trades that were losing money and consequently after the optimisation took the profit up to over $2400.  And now I will be working on adding momentum detection to the lines crossover to allow the trades to initialise earlier.  With strong momentum the line difference criteria for trade entry can be smaller and therefore closer to the crossover point. The primary indicator is the angle of the lines - closer to a 45 degree the more likely to continue and separate into a larger trend.  The AI suggested factor is magnitude , which is how many bars the direction has been consistent for.  So combining these will give an industry standard indication of momentum that can then be used to reduce the minLineDifference and open trades earlier.  I'm thinking that...

Stops and line based entry validation

 22/12/24      12:55pm Now that the robot is buying and selling at relatively the right time, this morning has been about working on parameters for the minimum line difference setting.  This is what is being used to determine trend.  There are still a lot of small intermediate trades that I am trying to eliminate with this setting.  Initally starting at 0.00025 this has been increased greatly to 0.04 then 0.05 on the advice of the AI after feeding it the logs and trade results from all the tests.  A lot of small trades are still hitting stop loss early so working on that by implementing what you suggested - raising stops only after certain level of profit has been reached and by increasing the size of the trailing stop.  I know you said not to have a trailing stop but after discussion with the AI it said not having one was practically the same as just increasing the size of it so it doesn't interfere with trades but still has protection from ...
 19/12/24     09:25am Had a quick look this morning before I head out.  Just ran the test this morning after last nights changes that enabled it to operate on the core logic properly and for the first time ever it made a profit!  The test ran from the 1st of November until the present and closed at $10024, a profit of $24!  Might not seem much but once I filter out all the intermediary trades and get it reading the PV2 lines more accurately and ignoring the spikes it should be considerably better.  That is also not including coding for the flat periods, just: White > Red = Buy and White < Red = Sell The biggest profit of the tes was $83.84 and the biggest loss was $-15.84. Which is considerate since when I first started $30 - $40 losses were common. So I am very happy with this data and I think this is a milestone to be remembered.