Bob, Andy, Gold and the Power of Positive Swap
- 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
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:
Overall result:
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.
More results next week.
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:
Overall result:
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.
More results next week.
You do not have the required permissions to view the files attached to this post.
Happy pippin, Thomas 
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
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
- sangratan
- Trader
- Posts: 56
- Joined: Thu Feb 24, 2022 9:39 am
- Location: Pisa
Re: Bob, Andy, Gold and the Power of Positive Swap
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.
- sangratan
- Trader
- Posts: 56
- Joined: Thu Feb 24, 2022 9:39 am
- Location: Pisa
Re: Bob, Andy, Gold and the Power of Positive Swap
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
It wasn't 5 minutes but here you goSteveHopwood 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:
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.
- 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.
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?
![]()
![]()
You do not have the required permissions to view the files attached to this post.
- 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
biobier wrote: Fri Feb 16, 2024 10:05 pm It wasn't 5 minutes but here you goLooks the same for me as GoFX but please confirm.
Happy pippin, Thomas 
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
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
my demo is also in the red. I suppose it's early days so let's see how it plays out
trader
trader
sangratan wrote: Fri Feb 16, 2024 8:40 pm Here is my report on Secret Trendy in February,any comment is welcome
- 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
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:
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:
----------------------------------------------------------
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.

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)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.
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.
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.
- 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
Lovely week last week:
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.
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:

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:
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.
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.
- 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
The inputs and defaults of version 1b are quite different to version 1a. Steve, which settings are your results based on?
Happy pippin, Thomas 
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
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
- 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
I am on demo only using the EA. The results I post are live, manual trading on my live account. Nothing on demo.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 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.
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.
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.