Tomele and Steve's Blindbot

EA's inspired by nanningbob's work here, especially those based on his 240 Moving Average trend detection filter.
stormin
Posts: 2
Joined: Tue Sep 29, 2015 10:22 pm

Tomele and Steve's Blindbot

Post by stormin »

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
You do not have the required permissions to view the files attached to this post.
Yannis
Trader
Posts: 56
Joined: Tue May 22, 2012 7:42 am

Tomele and Steve's Blindbot

Post by Yannis »

Great results Stormin, could you please give some additional details about the time used?
Yannis
stormin
Posts: 2
Joined: Tue Sep 29, 2015 10:22 pm

Tomele and Steve's Blindbot

Post by stormin »

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

Tomele and Steve's Blindbot

Post by SteveHopwood »

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:
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.
m0d0
Posts: 6
Joined: Mon Sep 19, 2016 12:55 am

Tomele and Steve's Blindbot

Post by m0d0 »

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
moebiusx

Tomele and Steve's Blindbot

Post by moebiusx »

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

Tomele and Steve's Blindbot

Post by moebiusx »

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
You do not have the required permissions to view the files attached to this post.
User avatar
tomele
Administrator
Posts: 1166
Joined: Tue May 17, 2016 3:40 pm
Location: Germany, Forest of Odes, Defending the Limes

Tomele and Steve's Blindbot

Post by tomele »

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)
Happy pippin, Thomas :-BD

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

Tomele and Steve's Blindbot

Post by SteveHopwood »

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

Tomele and Steve's Blindbot

Post by SteveHopwood »

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