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 17 of 54
Author:  traderduke [ Mon May 21, 2012 4:50 pm ]
Post subject:  Re: 10.2; the auto-trading EA is born.

Does anyone have any idea why the RS&Pivots would not work on a Renko chart or am I asking too much of a good thing?
Author:  blazko [ Mon May 21, 2012 9:37 pm ]
Post subject:  Re: 10.2; the auto-trading EA is born.

Guys, ive been looking into SL levels set by the EA. They look very wide. If i recall correctly, there was the idea (in 10.1 or 10.0) to treat candels closed below/above one of the MA lines as reversals. Maybe this could be a user input SL option as well?
Currently im on a buy with GJ fired at 21may 00:00 (Cowboy IBFX AU) 125.148 and a SL set to 130.441 - which would be after monthly pivot is crossed. If the bot could close this trade earlier (say on MA line or one of the nearest supports as spotdespot suggested) i could be on a long position by then.
Best regards for every brilliant mind working on Nannigbob's strategy :)
Author:  SteveHopwood [ Mon May 21, 2012 10:24 pm ]
Post subject:  Re: 10.2; the auto-trading EA is born.

New toy guys. http://www.stevehopwoodforex.com/phpBB3 ... 430#p13430

:D
Author:  phil_trade [ Tue May 22, 2012 5:19 am ]
Post subject:  H4 Weekly Open Histogram 1x0

Hi Steve

I have not found in the this thread why you don't use "H4 Weekly Open Histogram 1x0" for H4/D1 confirmation entry ?

Thks

Just catch why

Code: Select all

   //Direction of movement so far this week
   double wo = iMA(NULL,PERIOD_W1,1,0,MODE_SMA,PRICE_OPEN,0);
   double ma = iMA(NULL,0,1,0,MODE_SMA,PRICE_MEDIAN,0);
   WeeklyDirection = none;
   if (ma > wo) WeeklyDirection = up;
   if (ma < wo) WeeklyDirection = down;

Philippe
Author:  quanttraderjoe [ Tue May 22, 2012 8:10 am ]
Post subject:  Re: 10.2; the auto-trading EA is born.

hello Steve,


yeah i have put the latest version of 10.2 autobot with the wpc range trade ea on demo and manually put a stop loss of 75pips in the stoploss field but it doesnt seem to be respected when the ea places trades.

i thought a 75pip stoploss would be good cos when i started the demo at the end of the trend it was holding lots of negative trades..since this bot wins 90% of trades, a couple of stop outs wounldnt hurt.
Author:  crashout [ Tue May 22, 2012 8:17 am ]
Post subject:  Re: 10.2; the auto-trading EA is born.

quanttraderjoe wrote:hello Steve,


yeah i have put the latest version of 10.2 autobot with the wpc range trade ea on demo and manually put a stop loss of 75pips in the stoploss field but it doesnt seem to be respected when the ea places trades.

i thought a 75pip stoploss would be good cos when i started the demo at the end of the trend it was holding lots of negative trades..since this bot wins 90% of trades, a couple of stop outs wounldnt hurt.
That's probably because of wide stops it have 90 % success ... So if you change the size of stoploss you change all the logic of the system.
Author:  quanttraderjoe [ Tue May 22, 2012 8:31 am ]
Post subject:  Re: 10.2; the auto-trading EA is born.

hello Crashout,

yeah i understand the cons of tight stops, but i was looking at the trades from mid may during the strong trends and with breakeven kicking in at 25pips...lots of trades taken with the trend would be in the money even with narrow stops, so i was thinking this would be a really solid and conservative way to take trend trades whilst keeping stops relatively tight with bigger lot size. but i do see your point. appreciate it man.
thanks!
Author:  phil_trade [ Tue May 22, 2012 8:37 am ]
Post subject:  Re: 10.2; the auto-trading EA is born.

Hi Steve

I think TradeRange Test is missing in LookForWeeklyCrossRangeTrade()

Am'I right ?

Philippe

Code: Select all

void LookForWeeklyCrossRangeTrade()
{
   //Called from LookForTradingOpportunities() if magic = 0, indicating no trades have been triggered by other systems.
   //Looks for D1/H4 Slopes both ranging, or some part of the D1 candle tradubg within the moving averages
   
   if (!TradeRange) return;
---> added line
Author:  SteveHopwood [ Tue May 22, 2012 8:46 am ]
Post subject:  Re: H4 Weekly Open Histogram 1x0

phil_trade wrote:Hi Steve

I have not found in the this thread why you don't use "H4 Weekly Open Histogram 1x0" for H4/D1 confirmation entry ?

Thks

Philippe
That is a great piece of bloop-spotting.

These two functions have the extra code required. WeeklyDirection is the movement since the W1 open, and is either 'up', 'down' or 'none'.

Code: Select all

bool LookForLongTrend(int tf)
{
   /*
   Returns true if Slope and Woh trend are up, else returns false
   - Slope must be >= 0.4
   - Woh must be green   
   */
   
   if (tf == PERIOD_D1)
   {
      if (D1SlopeVal < 0.4) return(false);
      if (D1WohVal <= 0) return(false);
      if (WeeklyDirection <= up) return(false);
   }//if (tf = PERIOD_D1)

   if (tf == LowerTimeFrame)
   {
      if (LtfSlopeVal < 0.4) return(false);
      if (LtfWohVal <= 0) return(false);
      if (WeeklyDirection <= up) return(false);
   }//if (tf = LowerTimeFrame)
   
   
   //Got this far without returning false, so must be in trend
   return(true);

}//End bool LookForLongTrend(int tf)


bool LookForShortTrend(int tf)
{
   /*
   Returns true if D1 Slope and Woh trend are down, else returns false
   - Slope must be <= -0.4
   - Woh must be red   
   */
   
   if (tf == PERIOD_D1)
   {
      if (D1SlopeVal > -0.4) return(false);
      if (D1WohVal >= 0) return(false);
      if (WeeklyDirection <= down) return(false);
   }//if (tf = PERIOD_D1)
   
   if (tf == LowerTimeFrame)
   {
      if (LtfSlopeVal > -0.4) return(false);
      if (LtfWohVal >= 0) return(false);
      if (WeeklyDirection <= down) return(false);
   }//if (tf == LowerTimeFrame)
   
   
   //Got this far without returning false, so must be in trend
   return(true);

}//End bool LookForShortTrend(int tf)

:D
Author:  SteveHopwood [ Tue May 22, 2012 8:47 am ]
Post subject:  Re: 10.2; the auto-trading EA is born.

quanttraderjoe wrote:hello Steve,


yeah i have put the latest version of 10.2 autobot with the wpc range trade ea on demo and manually put a stop loss of 75pips in the stoploss field but it doesnt seem to be respected when the ea places trades.

i thought a 75pip stoploss would be good cos when i started the demo at the end of the trend it was holding lots of negative trades..since this bot wins 90% of trades, a couple of stop outs wounldnt hurt.
Thanks. I had forgotten to add the code that overrides automatic sl calculation if StopLoss has a >0 value.

Version 1m is in post 1 and is an essential download.

:D
All times are UTC Page 17 of 54