Slopey Peaky Stochy Bob

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

Slopey Peaky Stochy Bob

Post by SteveHopwood »

tomele » Tue Jul 02, 2019 5:03 pm wrote:
It does not even affect TDesk. You can update your signals for TDesk as frequently as you want. TDesk reads them every 10 seconds. They are not working as a trigger forcing TDesk into any action when you update them without changing.
Great. That saves me some effort. :clap: :clap: :clap: :clap: :clap:

: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. [email protected] 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.
wallywonka
Trader
Posts: 176
Joined: Thu May 12, 2016 7:46 am

Slopey Peaky Stochy Bob

Post by wallywonka »

Just noticed stochy opened this trade below... It's set to Cross on 1H in the settings but as you can see it's no where near crossing at all... Anyone else experienced similar?
stochy.jpg
You do not have the required permissions to view the files attached to this post.
User avatar
SteveHopwood
Owner
Posts: 9754
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Slopey Peaky Stochy Bob

Post by SteveHopwood »

wallywonka » Fri Jul 05, 2019 10:11 am wrote:Just noticed stochy opened this trade below... It's set to Cross on 1H in the settings but as you can see it's no where near crossing at all... Anyone else experienced similar?
Thanks wallywonka. I had a look at the code and found I had forgotten a conditional, so Stochy was trading the area method even though it is not wanted. Fixed in post 1.

Easiest DIY in the world. Do a search for: //Using the trading area method
The first line of code is: if (stoVal[pairIndex] < OverBought)

Insert this immediately above:
if (TradingMethod == area)

: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. [email protected] 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.
wallywonka
Trader
Posts: 176
Joined: Thu May 12, 2016 7:46 am

Slopey Peaky Stochy Bob

Post by wallywonka »

Cheers Steve, I'll throw the new version up on the VPS for testing! :D :D :D
wallywonka
Trader
Posts: 176
Joined: Thu May 12, 2016 7:46 am

Slopey Peaky Stochy Bob

Post by wallywonka »

Couple of days running the Stochastic on H1 with defaults, had some issues so only managed to get the start started mid week. Promising results.
stochastic.jpg
You do not have the required permissions to view the files attached to this post.
User avatar
SteveHopwood
Owner
Posts: 9754
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Slopey Peaky Stochy Bob

Post by SteveHopwood »

I am adapting Stochy for one of our members and noticed a coding bloop. Once the stochastic status was set to either overbought or oversold, it remained that way until a restart. Fixed in post 1.

Easy DIY. Do a search for this comment: //Using the cross trading method

Copy the amended code over both the cross method and the area method code:

Code: Select all

//Using the cross trading method
         if (TradingMethod == cross)
         {
            stoStatus[pairIndex] = untradable;
            //Cross long
            if (oldStoVal[pairIndex] < OverSold)
               if (stoVal[pairIndex] > OverSold)
                  stoStatus[pairIndex] = tradablelong;
                  
            //Cross short
            if (stoStatus[pairIndex] == untradable)
               if (oldStoVal[pairIndex] > OverBought)
                  if (stoVal[pairIndex] < OverBought)
                     stoStatus[pairIndex] = tradableshort;
                     
         }//if (TradingMethod == cross)
         
         //Using the trading area method
         if (TradingMethod == area)
         {
            stoStatus[pairIndex] = untradable;
            
            if (stoVal[pairIndex] < OverBought)
               if (stoVal[pairIndex] > OverSold)
               {
                  //Is sto rising?
                  if (oldStoVal[pairIndex] < stoVal[pairIndex])
                     stoStatus[pairIndex] = tradablelong;
                  else
                  if (oldStoVal[pairIndex] > stoVal[pairIndex])//It is falling
                     stoStatus[pairIndex] = tradableshort;
                     
               }//if (stoVal[pairIndex] > OverSold)

         }//if (TradingMethod == area)
         
: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. [email protected] 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: 9754
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Slopey Peaky Stochy Bob

Post by SteveHopwood »

V 1a is in post 1, with the hidden stop loss and scaling back in code added.

You need the "SPB core library.mqh" file in your platform's Include folder. Download it from viewtopic.php?p=159559#p159559


: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. [email protected] 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: 9754
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Slopey Peaky Stochy Bob

Post by SteveHopwood »

I was checking that I have resized all the relevant arrays and found I had missed one here. Please re-download 1a from post 1.

: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. [email protected] 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 “Super Slope EA's”