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

Nanningbob 10.2 auto-trading EA
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=552
Page 49 of 54
Author:  patman [ Tue Jul 03, 2012 10:05 am ]
Post subject:  Re: 10.2; the auto-trading EA is born.

Hi Steve

Version 2c still has this code in one place

//Down histo buffer
v = iCustom(NULL, tf, "10.2 WOH 2x1 5.22", barsToProcess, 1, shift);
if (v < 0) return(v);

needs to be

//Down histo buffer
v = iCustom(NULL, tf, "10.2 WeeklyOpenHistogram 2x1 4.29", barsToProcess, 1, shift);
if (v < 0) return(v);

I think

Pat
Author:  SteveHopwood [ Tue Jul 03, 2012 10:27 am ]
Post subject:  Re: 10.2; the auto-trading EA is born.

patman wrote:Hi Steve

Version 2c still has this code in one place

//Down histo buffer
v = iCustom(NULL, tf, "10.2 WOH 2x1 5.22", barsToProcess, 1, shift);
if (v < 0) return(v);

needs to be

//Down histo buffer
v = iCustom(NULL, tf, "10.2 WeeklyOpenHistogram 2x1 4.29", barsToProcess, 1, shift);
if (v < 0) return(v);

I think

Pat
Nice one Pat. Cheers.

V 2c in post 1. Doesn't really matter so long as you have the other Woh in your indi folder.

:D
Author:  mobthehop [ Tue Jul 03, 2012 11:38 am ]
Post subject:  Re: 10.2; the auto-trading EA is born.

Steve, I thought you wanted to bring the GetWOH in-house (see my PM a week or two ago) and Bob updated the WOH to version 6.26 recently (though I have not yet looked at the changes)

Cheers
Author:  NeoTrader [ Tue Jul 03, 2012 12:12 pm ]
Post subject:  Re: 10.2; the auto-trading EA is born.

hi mobthehop,
mobthehop wrote:Steve, I thought you wanted to bring the GetWOH in-house (see my PM a week or two ago) and Bob updated the WOH to version 6.26 recently (though I have not yet looked at the changes)
If I remind correct I don't think that there are great changes...I think he only put the adapted WOH from gary in.

happy trading,

NeoTrader

-
Author:  SteveHopwood [ Tue Jul 03, 2012 6:24 pm ]
Post subject:  Re: 10.2; the auto-trading EA is born.

mobthehop wrote:Steve, I thought you wanted to bring the GetWOH in-house (see my PM a week or two ago) and Bob updated the WOH to version 6.26 recently (though I have not yet looked at the changes)

Cheers
I thought I had until I found I hadn't.

:D
Author:  Yoi [ Tue Jul 03, 2012 6:43 pm ]
Post subject:  Re: 10.2; the auto-trading EA is born.

Hi guys, first time I post here however I'm here since the first days.

I think there is a bloop in the code of the H1 trades.

Line 1728 a bias is up if bid > monthlypivot and weeklypivot (reverse for down)

Code: Select all

      if (Bid > MonthlyPivot && Bid > WeeklyPivot) bias = up;
      if (Bid < MonthlyPivot && Bid < WeeklyPivot) bias = down;
However when the ea looks for H1 long trade (line 1574) we check if bias = up and if the bid < to the weekly pivot which can't be possible if bias == up

Code: Select all

   if (type == OP_BUY)
   {
      if (bias == up)
      {
         if (Bid > BbLower)
         {
            if (iLow(NULL, BbTimeFrame, 0) < BbLower || iLow(NULL, BbTimeFrame, 1) < BbLower)
            {
               if (Bid < WeeklyPivot && WeeklyPivot - Bid >= (MinimumRangeTakeProfit * Point))
               {
                  SendLong = true;
                  TradeOrigin = BbRangeTrade;//TradeOrigin is used by CalculateTakeProfit()
                  magic = BbRangeTradeMN;
                  comment = BbRangeTradeComment;
               }//if (Bid < WeeklyPivot && WeeklyPivot - Bid >= (MinimumRangeTakeProfit * Point))                  
            }//if (iLow(NULL, BbTimeFrame, 0) < BbLower || iLow(NULL, BbTimeFrame, 1) < BbLower)
         }//if (Bid > BbLower)    
      }//if (bias == up)
   }//if (type == OP_BUY)
I hope I'm not wrong :oops:
Author:  SteveHopwood [ Tue Jul 03, 2012 8:45 pm ]
Post subject:  Re: 10.2; the auto-trading EA is born.

Yoi wrote:Hi guys, first time I post here however I'm here since the first days.

I think there is a bloop in the code of the H1 trades.

Line 1728 a bias is up if bid > monthlypivot and weeklypivot (reverse for down)

Code: Select all

      if (Bid > MonthlyPivot && Bid > WeeklyPivot) bias = up;
      if (Bid < MonthlyPivot && Bid < WeeklyPivot) bias = down;
However when the ea looks for H1 long trade (line 1574) we check if bias = up and if the bid < to the weekly pivot which can't be possible if bias == up

Code: Select all

   if (type == OP_BUY)
   {
      if (bias == up)
      {
         if (Bid > BbLower)
         {
            if (iLow(NULL, BbTimeFrame, 0) < BbLower || iLow(NULL, BbTimeFrame, 1) < BbLower)
            {
               if (Bid < WeeklyPivot && WeeklyPivot - Bid >= (MinimumRangeTakeProfit * Point))
               {
                  SendLong = true;
                  TradeOrigin = BbRangeTrade;//TradeOrigin is used by CalculateTakeProfit()
                  magic = BbRangeTradeMN;
                  comment = BbRangeTradeComment;
               }//if (Bid < WeeklyPivot && WeeklyPivot - Bid >= (MinimumRangeTakeProfit * Point))                  
            }//if (iLow(NULL, BbTimeFrame, 0) < BbLower || iLow(NULL, BbTimeFrame, 1) < BbLower)
         }//if (Bid > BbLower)    
      }//if (bias == up)
   }//if (type == OP_BUY)
I hope I'm not wrong :oops:
Not a clue Yoi. Just because I coded the EA doesn't mean I now understand the code or what it does. I cannot see where the bias comes into the BB H1 trend trading stuff.

:D
Author:  al3xx [ Wed Jul 04, 2012 4:12 pm ]
Post subject:  Re: 10.2; the auto-trading EA is born.

Yoi wrote: I hope I'm not wrong :oops:
No you are not. I pointed that out and fixed it a few posts ago. I believe it is in the Page 1 version now since Steve said he put it there.
SteveHopwood wrote: Not a clue Yoi. Just because I coded the EA doesn't mean I now understand the code or what it does. I cannot see where the bias comes into the BB H1 trend trading stuff.
:D
I still haven't seen any BB trades yet. Dunno if it's the markets, the EA or just Steve. ;)
Author:  Panamamike [ Fri Jul 06, 2012 1:43 pm ]
Post subject:  Re: 10.2; the auto-trading EA is born.

Just an update. I have been running 10.2A for two weeks now. I have manually taken profits near session closings , Asia, Europe, and USA when trades are well into profit. Have not had any large floating negatives or draw downs. The 5k demo account is just under 6.5 k with 8 open positions and -$36 floating loss. I am basically using the EA to enter trades and then making decisions when to manually close. Going live next week on an small test account.
Author:  patman [ Fri Jul 06, 2012 1:55 pm ]
Post subject:  Re: 10.2; the auto-trading EA is born.

Hi Panamamike,

Sounds like a great result - well done & good luck on live

Which EA is for 10.2A? I didn't think that was done yet
All times are UTC Page 49 of 54