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

Slopey Peaky Stochy Bob
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=5691
Page 2 of 2
Author:  SteveHopwood [ Tue Jul 02, 2019 5:41 pm ]
Post subject:  Slopey Peaky Stochy Bob

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:
Author:  wallywonka [ Fri Jul 05, 2019 10:11 am ]
Post subject:  Slopey Peaky Stochy Bob

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
Author:  SteveHopwood [ Fri Jul 05, 2019 12:59 pm ]
Post subject:  Slopey Peaky Stochy Bob

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:
Author:  wallywonka [ Fri Jul 05, 2019 1:11 pm ]
Post subject:  Slopey Peaky Stochy Bob

Cheers Steve, I'll throw the new version up on the VPS for testing! :D :D :D
Author:  wallywonka [ Fri Jul 19, 2019 7:18 am ]
Post subject:  Slopey Peaky Stochy Bob

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
Author:  SteveHopwood [ Sun Oct 06, 2019 2:02 pm ]
Post subject:  Slopey Peaky Stochy Bob

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:
Author:  SteveHopwood [ Thu Jan 02, 2020 4:09 pm ]
Post subject:  Slopey Peaky Stochy Bob

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:
Author:  SteveHopwood [ Sat Jan 04, 2020 4:17 pm ]
Post subject:  Slopey Peaky Stochy Bob

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:
All times are UTC Page 2 of 2