stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

Bob, Andy, Gold and the Power of Positive Swap
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=6378
Page 3 of 5
Author:  tomele [ Fri Feb 16, 2024 6:49 pm ]
Post subject:  Re: Bob, Andy, Gold and the Power of Positive Swap

Week 2

XAGUSD keeps on rollin', while both XAU pairs took a hit. Unfortunately I quadrupled the hit for XAUUSD by playing around with MinMinutesBetweenTrades and forcing the bot into opening four trades in the worst possible moment. Otherwise XAUSD would have lost 80 bucks instead of 174, which is still far from good. Oil and Currencies also lost this week.

Weekly result:

Week.png

Overall result:

Sum.png

While having reached the 100 pips T/P with 20% of all trades, there have also been quite some big losing trades between -100 and more than -300 pips. As a consequence, I will add a S/L of 50 pips to all new trades and see how this works out.

Although my demo runs without swap filter, I can confirm what @fiox observed. The swap filter doesn't work reliably and should be fixed.

Another behaviour that needs attention is the unwanted hedging of trades. If I understand the trading idea right, there shouldn't be trades in opposite directions. But sometimes they are as you can see from the following chart. Maybe this comes from the two different triggers. I would suggest to force closing all opposite trades as soon as a new trade is opened no matter by which trigger.

Hedging.png

More results next week.
Author:  sangratan [ Fri Feb 16, 2024 8:40 pm ]
Post subject:  Re: Bob, Andy, Gold and the Power of Positive Swap

Here is my report on Secret Trendy in February,any comment is welcome
Author:  sangratan [ Fri Feb 16, 2024 8:41 pm ]
Post subject:  Re: Bob, Andy, Gold and the Power of Positive Swap

Here is settings...
Author:  biobier [ Fri Feb 16, 2024 10:05 pm ]
Post subject:  Re: Bob, Andy, Gold and the Power of Positive Swap

SteveHopwood wrote: Mon Feb 05, 2024 8:22 pm I am uneasy about posting an indi where only the .ex4 file is available. I trust GoFX because Andy and I have both used it for quite a long time. What I do not like here is posting the compiled code without the permission of the individual coder.

It is possible for those of us with any qualms, to emulate GoFX easily. It is coloured green when the fast and medium MA's are above the slow, and red when they are below it. So:
  • Load three moving average indis onto the chart:
    • 5 period.
    • 13 period.
    • 34 period.
  • Set them all to:
    • Method: Linear Weighted.
    • Apply to: Weighted Close:
  • Set them all to different colours and line sizes.
I have made attempts over the years to learn to code indicators but indi coders are strange beasts who speak in tongues. My eyes glazed over and the whisky bottle started to call to me seductively every time.

What I can do is code an indi that displays values rather than points on a chart. I can write one that displays, "Buy (or sell) only". This way all our consciences are clear.

Or maybe, one of our genius indi coders could devote about 5 minutes to coding an SHF version of GoFX?

:xm: :rocket:
It wasn't 5 minutes but here you go :) Looks the same for me as GoFX but please confirm.
Author:  tomele [ Fri Feb 16, 2024 10:28 pm ]
Post subject:  Re: Bob, Andy, Gold and the Power of Positive Swap

biobier wrote: Fri Feb 16, 2024 10:05 pm It wasn't 5 minutes but here you go :) Looks the same for me as GoFX but please confirm.
:clap: :clap: :clap: :clap: :clap:
Author:  trader689 [ Fri Feb 16, 2024 11:14 pm ]
Post subject:  Re: Bob, Andy, Gold and the Power of Positive Swap

my demo is also in the red. I suppose it's early days so let's see how it plays out

trader
sangratan wrote: Fri Feb 16, 2024 8:40 pm Here is my report on Secret Trendy in February,any comment is welcome
Author:  SteveHopwood [ Sun Feb 18, 2024 3:40 pm ]
Post subject:  Re: Bob, Andy, Gold and the Power of Positive Swap

V 1b of the EA is in post 1.

I have added code intended to close/delete opposite direction Secret triggered trades following a change of signal. If you want to DIY or just check the code, do a search for:
if (UseGoFXtoFilterSecretTrades || UseGoFXtoFilterHgiTrades)//Using as a trade filter

Insert this code block above that line:

Code: Select all

   //Close/delete orders following an opposite direction signal
   if (SecretTradeStatus == buy)
   {
      if (SellOpen)
         CloseAllSecretTrades();
   }//if (SecretTradeStatus == buy)
   
   if (SecretTradeStatus == sell)
   {
      if (BuyOpen)
         CloseAllSecretTrades();
   }//if (SecretTradeStatus == buy)
Then the calling order of two of the functions. Go to OnTick() and scroll down to ReadIndicatorValues();
Delete ReadIndicatorValues(); and CountOpenTrades();
Replace them with this block:

Code: Select all

   //Find open trades.
   CountOpenTrades();
   
   ReadIndicatorValues();
   //ReadIndicatorValues() attempts to close all secret trades
   //if the is an opposite direction Secret signal, so
   //deal with a closure/deletion failure.
   //ForceTradeClosure only operates on Secret trades, not HGI orders.
   if (ForceTradeClosure)
   {
      CloseAllSecretTrades();
      return;//Start again at the next tick
   }//if (ForceTradeClosure)
----------------------------------------------------------

Re the swap thingy, if is hard to see where this can go wrong. The user inputs TradeLong/Short are set accordingly in both OnInit() and every time OnTick() reacts to a quote.

I ran the bot through crapergy tester on XAUUSD. It both bought and sold when TradePositiveSwapOnly was 'false' and sold only when it was set to 'true'. I have it set to 'true' now on demo so I will be able to see if it is failing.

:xm: :rocket:
Author:  SteveHopwood [ Sun Feb 18, 2024 4:59 pm ]
Post subject:  Re: Bob, Andy, Gold and the Power of Positive Swap

Lovely week last week:
Last week.png
A lot of those 1,123 pips came courtesy of about 740 on Wednesday, when Gold tanked. Granted, the cash profit was only $149 but I am only trading 0.01 lot sizes. Imagine the effect trading whole lots on a $100,000 account. :smile:

The positive swap is having a dramatic effect. Take UJ, for example. 7 buy trades open at a pips DD of -633 pips yet a cash DU of +$11.17 thanks to swap of +$54. Some of these orders have been open for a while but watching the positive swap adding up helps ease the pain.

Last week added a pleasant boost to the situation from when I added the Gold pairs on Nov 9th:
Since adding.png
:xm: :rocket:
Author:  tomele [ Sun Feb 18, 2024 10:47 pm ]
Post subject:  Re: Bob, Andy, Gold and the Power of Positive Swap

The inputs and defaults of version 1b are quite different to version 1a. Steve, which settings are your results based on?
Author:  SteveHopwood [ Sun Feb 18, 2024 11:42 pm ]
Post subject:  Re: Bob, Andy, Gold and the Power of Positive Swap

tomele wrote: Sun Feb 18, 2024 10:47 pm The inputs and defaults of version 1b are quite different to version 1a. Steve, which settings are your results based on?
I am on demo only using the EA. The results I post are live, manual trading on my live account. Nothing on demo.

I am starting to think that I need to remove the EA from here and move it to a separate thread - or maybe just remove it. This thread is intended to be about my manual trading in the direction of positive swap only + GoFX and the addition of Gold pairs into the mix. I am doing quite well. See my previous about the effect that positive swap can have on a trading position. I do not care how the EA performs unless it suddenly leaps into profitably. Dream on.

:xm: :rocket:
All times are UTC Page 3 of 5