Cross Slopey Bob

EA's inspired by nanningbob's work here, especially those based on his 240 Moving Average trend detection filter.
Post Reply
spotdespot
Trader
Posts: 768
Joined: Sun Jan 22, 2012 11:38 pm

Cross Slopey Bob

Post by spotdespot »

SteveHopwood » Mon Nov 10, 2014 7:13 pm wrote:V 1d is in post 1. Copied from the amended post 1:

Probably means we will get one trade every 6 months, but as coded the bot has been a guaranteed loser so it is worth trying.

:xm:
Hi Steve,

Yes it hasn't been looking good but where it is supposed to make pips is when there is some trending movement and we haven't had a great deal with retracements Thursday/Friday (& NFP) and a public holiday tomorrow in the US probably doesn't help. There has been some movement this afternoon. I guess it is just a matter of seeing if the strong movements can make up for the inevitable losses when markets go sideways. In theory the losses should be small relative to the gains (per trade) but whether that's enough or not remains to be seen.

The change I mentioned is not quite as you have programmed above. I don't think what you have done there will ever allow a trade. The terminology of CSS means that "down" is below zero and "up" is above zero - so if the currencies are UP and accelerating VS DOWN and decelerating then they crossed some time ago and are moving apart (I think anyway!!).

What I amended was this:

Code: Select all

         //Detect a cross of the currency pairs
         CssCrossStatus = nocross;
         //Long cross where currencies diverging
      if (CurrVal1[2] <= CurrVal2[2])
         if (CurrVal1[1] > CurrVal2[1])
            if (CurrDirection1 == upaccelerating || CurrDirection1 == downdecelerating)
               if (CurrDirection2 == downaccelerating || CurrDirection2 == updecelerating)
               CssCrossStatus = longcross;     
                        
         //Short cross where currencies diverging
      if (CurrVal1[2] >= CurrVal2[2])
         if (CurrVal1[1] < CurrVal2[1])
            if (CurrDirection1 == downaccelerating || CurrDirection1 == updecelerating)
               if (CurrDirection2 == upaccelerating || CurrDirection2 == downdecelerating)
               CssCrossStatus = shortcross;
 
To give a glimmer of hope this is what I have open right now :roll:

Cheers,
Dave.
You do not have the required permissions to view the files attached to this post.
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.

Cross Slopey Bob

Post by SteveHopwood »

Good point Dave. Your latest adaptations adopted into V 1e in post 1.

:xm:
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.

Cross Slopey Bob

Post by SteveHopwood »

I left Dave's updated version (in post 1) running overnight and awoke to a basket of trades showing +10% profit on the start balance of $500. A few losers had closed, taking the balance down to $490, so bagging the pips in the open basket left the account at $541.

:xm:
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.
spotdespot
Trader
Posts: 768
Joined: Sun Jan 22, 2012 11:38 pm

Cross Slopey Bob

Post by spotdespot »

SteveHopwood » Tue Nov 11, 2014 10:30 am wrote:I left Dave's updated version (in post 1) running overnight and awoke to a basket of trades showing +10% profit on the start balance of $500. A few losers had closed, taking the balance down to $490, so bagging the pips in the open basket left the account at $541.

:xm:
He he - doing better than me then ;-) I think I am trying to be too clever with the trade management and managing the opposite! Now there is some movement it has some promise - it was looking like a very damp squib.
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.

Cross Slopey Bob

Post by SteveHopwood »

I checked some of the snapshots to see what is on the chart at the time the trade is taken. The order of events as coded is: new candle; read the indicators and discover a trade signal; send the trade; take the snapshot; refresh the chart feedback.

This means the picture is always out of date.

Anyone wanting a fix, go to lines 1483/4 and replace them with:

Code: Select all

            if (TakeSnapshots)
            {
               DisplayUserFeedback();//Ensure the chart feedback is correct.
               TakeChartSnapshot(TicketNo, " open");
            }//if (TakeSnapshots)
:xm:
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.

Cross Slopey Bob

Post by SteveHopwood »

Dave, your idea to trade only diverging currencies is working so far.
XAGUSDH1.png
:xm:
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.
spotdespot
Trader
Posts: 768
Joined: Sun Jan 22, 2012 11:38 pm

Cross Slopey Bob

Post by spotdespot »

SteveHopwood » Wed Nov 12, 2014 2:26 pm wrote:Dave, your idea to trade only diverging currencies is working so far.



:xm:

Excellent. I am trying something else at the moment - no code change just a different approach. I am essentially looking at it on M5 and just scalping 10 pips or so. It seems that during non-Asian hours almost all pairs that meet the cross criteria move enough to bag 10 pips a cross. I tried on M30 but even though I built a 1000 pip basket I had some significant losers as the re-cross to close was too slow.

Unfortunately I can only test one idea at a time as I still have that weird memory issue.

Could you do me a favour please Steve and check your libCSS file and see what version is says it is? I downloaded the last one from Paul's thread - which is supposed to be v 1.1.3 but the version number in the code header say 1.1.2 Clutching at straws a bit, as probably just a comment oversight, but worth a look as this memory situation is painful. :arrrg:

Cheers,
Dave.
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.

Cross Slopey Bob

Post by SteveHopwood »

Paul's release notes say v1.1.2, 9/6/13

:xm:
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.
spotdespot
Trader
Posts: 768
Joined: Sun Jan 22, 2012 11:38 pm

Cross Slopey Bob

Post by spotdespot »

SteveHopwood » Wed Nov 12, 2014 2:40 pm wrote:Paul's release notes say v1.1.2, 9/6/13

:xm:
Ok - I was clutching at straws then. His LibCSS thread says:

"August 19, 2013: new version v1.1.3

Changes:
Optimized code. Tighter, stronger, faster
Fixed bug in caching mechanism"

So as your version is the same as mine it was a dead end. Thanks for checking.

Cheers,
Dave.
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.

Cross Slopey Bob

Post by SteveHopwood »

My demo is up just over 10% on its starting balance.

The problem I am seeing is that there are lots of little losers closed that hit the bottom line, then a decent run allows me to close to overcome the losers. The result is that I only move ahead very slowly, and that one day the losers might overwhelm the winners and wipe out all of the profits.

Not sure this bot has a future.

:xm:
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 “Thingy Bob EA's”