Bob, Andy, Gold and the Power of Positive Swap

Includes an archive of all previous Bob stuff
User avatar
tomele
Administrator
Posts: 1208
Joined: Tue May 17, 2016 3:40 pm
Location: Germany, Forest of Odes, Defending the Limes

Re: Bob, Andy, Gold and the Power of Positive Swap

Post by tomele »

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.
You do not have the required permissions to view the files attached to this post.
Happy pippin, Thomas :-BD

It ain't what you don't know that gets you into trouble.
It's what you know for sure that just ain't so.
(Mark Twain)

Keep the coder going: Donate
User avatar
sangratan
Trader
Posts: 56
Joined: Thu Feb 24, 2022 9:39 am
Location: Pisa

Re: Bob, Andy, Gold and the Power of Positive Swap

Post by sangratan »

Here is my report on Secret Trendy in February,any comment is welcome
You do not have the required permissions to view the files attached to this post.
User avatar
sangratan
Trader
Posts: 56
Joined: Thu Feb 24, 2022 9:39 am
Location: Pisa

Re: Bob, Andy, Gold and the Power of Positive Swap

Post by sangratan »

Here is settings...
You do not have the required permissions to view the files attached to this post.
biobier
Trader
Posts: 72
Joined: Mon Mar 18, 2019 7:24 am

Re: Bob, Andy, Gold and the Power of Positive Swap

Post by biobier »

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.
You do not have the required permissions to view the files attached to this post.
Must-reads for FOREX NOOBS as me:
Help for Newbies.
Information For Beginners
User avatar
tomele
Administrator
Posts: 1208
Joined: Tue May 17, 2016 3:40 pm
Location: Germany, Forest of Odes, Defending the Limes

Re: Bob, Andy, Gold and the Power of Positive Swap

Post by tomele »

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:
Happy pippin, Thomas :-BD

It ain't what you don't know that gets you into trouble.
It's what you know for sure that just ain't so.
(Mark Twain)

Keep the coder going: Donate
trader689
Trader
Posts: 674
Joined: Thu Nov 17, 2011 12:53 am

Re: Bob, Andy, Gold and the Power of Positive Swap

Post by trader689 »

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
User avatar
SteveHopwood
Owner
Posts: 9904
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Re: Bob, Andy, Gold and the Power of Positive Swap

Post by SteveHopwood »

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:
Read the effing manual, ok?

Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Thomas (tomele) for all the incredible work he does here.
User avatar
SteveHopwood
Owner
Posts: 9904
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Re: Bob, Andy, Gold and the Power of Positive Swap

Post by SteveHopwood »

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:
You do not have the required permissions to view the files attached to this post.
Read the effing manual, ok?

Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Thomas (tomele) for all the incredible work he does here.
User avatar
tomele
Administrator
Posts: 1208
Joined: Tue May 17, 2016 3:40 pm
Location: Germany, Forest of Odes, Defending the Limes

Re: Bob, Andy, Gold and the Power of Positive Swap

Post by tomele »

The inputs and defaults of version 1b are quite different to version 1a. Steve, which settings are your results based on?
Happy pippin, Thomas :-BD

It ain't what you don't know that gets you into trouble.
It's what you know for sure that just ain't so.
(Mark Twain)

Keep the coder going: Donate
User avatar
SteveHopwood
Owner
Posts: 9904
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Re: Bob, Andy, Gold and the Power of Positive Swap

Post by SteveHopwood »

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:
Read the effing manual, ok?

Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Thomas (tomele) for all the incredible work he does here.
Post Reply

Return to “Nanningbob's Holy Grail Indicator forum”