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

Tomele and Steve's Blindbot
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=4953
Page 2 of 4
Author:  stormin [ Tue Nov 01, 2016 10:07 am ]
Post subject:  Tomele and Steve's Blindbot

Hello Steve and Tomele , Thanks so much for all the effort on this along with everyone else on Dotty :smile: .

Trading GBPJPY on live .01 account. Standard settings with diff start/stop times.
Blindbot.png
regards

Stormin
Author:  Yannis [ Tue Nov 01, 2016 10:53 am ]
Post subject:  Tomele and Steve's Blindbot

Great results Stormin, could you please give some additional details about the time used?
Yannis
Author:  stormin [ Tue Nov 01, 2016 7:41 pm ]
Post subject:  Tomele and Steve's Blindbot

Hi Yannis,

ss=---- Start/Stop time ----
ss1=Use 24H format, SERVER time.
ss2=Example: '01.30'
SundayStartTradingTime=24.26
MondayStartTradingTime=02.43
FridayStopTradingTime=12.38
SaturdayStopTradingTime=00.00

I really dont know if the different times have much affect as once its trading it does its thing. Possibly the initial kickoff when no hedge set or not adding new trades on those closes.

Latest pip count, there are 8 buys and 5 sells running. As per Steve's earlier comment on the DD. If it can stay ahead will be nice

open and closed
Blindbot2.png
closed
Blindbot3.png
rgds Stormin
Author:  SteveHopwood [ Wed Nov 02, 2016 1:04 am ]
Post subject:  Tomele and Steve's Blindbot

stormin » Tue Nov 01, 2016 7:41 pm wrote: really dont know if the different times have much affect as once its trading it does its thing. Possibly the initial kickoff when no hedge set or not adding new trades on those closes.
When you have been around here for a while you will come to understand that I create my EA's from code shells.

The beauty of this is that I only ever need to add a few lines of code to create the next EA.

The un-beauty is that there can be a lot of redundant code. Here, trading times are those.

Having said that, only an idiot would think that trading times are relevant here. I thought that was screamingly obvious to any sentient being with a firing brain cell.

Much will be removed from the code in the unlikely event that BB sees the light of trading a real cash account. Until then, I suggest that potential users turn what passes for their brains on, hurt themselves a bit and do some actual thinking. Clearly a unique experience amongst some here.

:xm:
Author:  m0d0 [ Wed Nov 02, 2016 7:01 am ]
Post subject:  Tomele and Steve's Blindbot

Not using BlindBot but since it still based on the same shell code, I tried Unbalanced at 20 it is working. Full hedge still goes on as usual.

I'm on HGBnD
Author:  moebiusx [ Wed Nov 02, 2016 7:06 am ]
Post subject:  Tomele and Steve's Blindbot

moebiusx » Tue Nov 01, 2016 9:15 am wrote:Thanks to Tomele and Steve for this amazing Ea

Hi guys,
maybe my think is wrong but i dont see the creation of the full hedge trade (i have set the option at 5)

-BuyAndSellUnbalancedAt
Hi guys,
now the full hedge trade is created but seems to work only with:

-BuyAndSellUnbalancedAt >=10

(my setting is always = 5)
Author:  moebiusx [ Thu Nov 03, 2016 8:18 am ]
Post subject:  Tomele and Steve's Blindbot

moebiusx » Wed Nov 02, 2016 7:06 am wrote:
Hi guys,
now the full hedge trade is created but seems to work only with:

-BuyAndSellUnbalancedAt >=10

(my setting is always = 5)
Thanks to Tomele and Steve for this fantastic EA

Hi guys
maybe i understand why the full hedge trade creation did not happen in my case.

UseLowerTimeFrameControl=true;
LtfTimeFrame=H4; (default=D1)

Now i have my full hedge trade at unbalanced = 5
Author:  tomele [ Sat Nov 12, 2016 6:35 pm ]
Post subject:  Tomele and Steve's Blindbot

Hello.

I have uploaded version "f" of the EA to the first post. It contains some code fixes and improvements.

GENERAL WARNING: This EA is not forward tested for very long. Never use any new EA version on a live cash account without prior demo testing. Stick to your actual live version until you are convinced of the new versions profitability.

Explanation and advice for DIYers are here: http://www.stevehopwoodforex.com/phpBB3 ... 45#p149345

Additionally, there are some more changes. This bot has always shown to be a resource hog. Dwain (@dap711) made a suggestion how to reduce this. The basic idea was to use internal code instead of calling the BaludaCSS indi via iCustom(). We have implemented this and the indi is obsolete now. Thank you Dwain. Absolutely brilliant.

1. Change the definition section for the SuperSlope variables to this:

Code: Select all

//I added HTF as an afterthought, so these variables are for TradingTimeFrame
double         Curr1Val[3];//For shifts 0 to 2
string         SsColour[3];//For shifts 0 to 2. Colours defined at top of file
string         SsCrossStatus="";//ssnocross, sslongcross or ssshortcross defined above
//Variables for HigherTimeFrame
double         HtfCurr1Val;
string         HtfSsColour="";
//Variables for MediumTimeFrame
double         MtfCurr1Val;
string         MtfSsColour="";
//Variables for SuperSlope
bool           BrokerHasSundayCandles;
2. Change the screen output for SS trading timeframe to this:

Code: Select all

   text = "SuperSlope trading time frame currency strengths: ";
   for (cc = 2; cc >= 0; cc--)
   {
      text = text + DoubleToStr(Curr1Val[cc], 4) + ": ";
   }//for (cc = 2; cc >= 0; cc--)
   SM(text + NL);
   
   //text = "Second trading time frame currency strengths: ";
   //for (cc = 2; cc >= 0; cc--)
   //{
   //   text = text + DoubleToStr(Curr2Val[cc], 4) + ": ";
   //}//for (cc = 2; cc >= 0; cc--)
   //SM(text + NL);
3. Comment out or delete the check for indi existence:

Code: Select all

      //if (!indiExists( "Baluda.SuperSlope.v.2.0 for EA" ))
      //{
      //   Alert("");
      //   Alert("Download the indi from Bob's HGI thread and adit the HGI_Name input");
      //   Alert("The required indicator Baluda.SuperSlope.v.2.0 for EA does not exist on your platform. I am removing myself from your chart.");
      //   RemoveExpert = true;
      //   ExpertRemove();
      //   return(0);
      //}//if (! indiExists( "IndiName" ))
4. Add the check for sunday candles at the end of OnInit() :

Code: Select all

   BrokerHasSundayCandles = false;
   for ( int i = 0; i < 8; i++ )
   {
      if ( TimeDayOfWeek( iTime( NULL, PERIOD_D1, i ) ) == 0 )
      {
         BrokerHasSundayCandles = true;
         break;
      }
   }
   
   //Call sq's show trades indi
   //iCustom(NULL, 0, "SQ_showTrades",Magic, 0,0);
5. Replace GetSuperSlope() with this:

Code: Select all

//+------------------------------------------------------------------+
//| GetSuperSlope()                                                       |
//+------------------------------------------------------------------+
double GetSuperSlope( int tf, int maperiod, int atrperiod, int pShift )
{
   double dblTma, dblPrev;
   int shiftWithoutSunday = pShift;
   if ( BrokerHasSundayCandles && PERIOD_CURRENT == PERIOD_D1 )
   {
      if ( TimeDayOfWeek( iTime( NULL, PERIOD_D1, pShift ) ) == 0  ) shiftWithoutSunday++;
   }   

   double atr = iATR( NULL, tf, atrperiod, shiftWithoutSunday + 10 ) / 10;
   double result = 0.0;
   if ( atr != 0 )
   {
      dblTma = iMA( NULL, tf, maperiod, 0, MODE_LWMA, PRICE_CLOSE, shiftWithoutSunday );
      dblPrev = ( iMA( NULL, tf, maperiod, 0, MODE_LWMA, PRICE_CLOSE, shiftWithoutSunday + 1 ) * 231 + iClose( NULL, tf, shiftWithoutSunday ) * 20 ) / 251;

      result = ( dblTma - dblPrev ) / atr;
   }
   
   return ( result );
   
}//GetSuperSlope()
6. Change the indi reading code to this:

Code: Select all

      ///////////////////////////////////////
      //Indi reading code goes here.

      if (!UseHGI || TrendTimeFrameStatus == hginotrend)
      {
         //HTF SS
         //Read at the open of each new LtfTimeFrame in case it has changed colour
         if (UseHigherTimeFrameControl)
         {
               
               //Buffer 0 holds first currency in the pair
               HtfCurr1Val = GetSuperSlope(HigherTimeFrame,HtfSlopeMAPeriod,HtfSlopeATRPeriod,0);
               
               //What colour is the histo:
               MtfSsColour = red;
               if (MtfCurr1Val > 0)
                  MtfSsColour = green;
                                                                 
         }//if (UseHigherTimeFrameControl)
         
         //MTF SS
         //Read at the open of each new LtfTimeFrame in case it has changed colour
         if (UseMediumTimeFrameControl)
         {
               
               //Buffer 0 holds first currency in the pair
               MtfCurr1Val = GetSuperSlope(MediumTimeFrame,MtfSlopeMAPeriod,MtfSlopeATRPeriod,0);
               
               //What colour is the histo:
               MtfSsColour = red;
               if (MtfCurr1Val > 0)
                  MtfSsColour = green;
                                               
         }//if (UseMediumTimeFrameControl)
   
         LongTradeTrigger = false;
         ShortTradeTrigger = false;
         LtfTimeFrameStatus = hginosignal;
         
         //Read SuperSlope
         for (cc = 2; cc >= 0; cc--)
         {
            //Buffer 0 holds first currency in the pair
            Curr1Val[cc] = GetSuperSlope(LtfTimeFrame,LtfSlopeMAPeriod,LtfSlopeATRPeriod,cc);
            
            //Set the colours
            SsColour[cc] = red;
            if (Curr1Val[cc] > 0)
               SsColour[cc] = green;
                                     
         }//for (cc = 2; cc >= 0; cc--)
                  
         //The cross status
         SsCrossStatus = ssnocross;
         
         //Longcross
         if (SsColour[2] == red)
            if (SsColour[1] == green)
               if (SsColour[0] == green)
               {
                  SsCrossStatus = sslongcross;
                  LongTradeTrigger = true;
               }//if (SsColour[0] == green)
               
         //Short cross
         if (SsColour[2] == green)
            if (SsColour[1] == red)
               if (SsColour[0] == red)
               {
                  SsCrossStatus = ssshortcross;
                  ShortTradeTrigger = true;
               }//if (SsColour[0] == red)
         
      }//if (UseHGI || TrendTimeFrameStatus == hginotrend)
Author:  SteveHopwood [ Mon Nov 28, 2016 1:48 pm ]
Post subject:  Tomele and Steve's Blindbot

V 1g is in post 1, with the same changes as those I made to HGBnD. Any bloops that show up with HGBnD will need correcting here as well.

:xm:
Author:  SteveHopwood [ Mon Nov 28, 2016 2:12 pm ]
Post subject:  Tomele and Steve's Blindbot

Keep an eye on Blindbot. I just checked the demo and found him endlessly deleting and replacing the buy stop side of the grid - GJ only. A few hours of that would have resulted in an automatic blocking of all my demos by GP.

Removing and replacing the bot has stopped the behaviour and I have no idea what caused it.

:xm:
All times are UTC Page 2 of 4