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

Renko Trend Trading EA NOT WORKING - PLEASE HELP
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=3198
Page 1 of 1
Author:  czjlj [ Sun Oct 13, 2013 2:22 pm ]
Post subject:  Renko Trend Trading EA NOT WORKING - PLEASE HELP

I don't know why its not working.
Can anybody fix this EA?
Your kind help in this regard is much appreciated.

Thanks!
Author:  phil_trade [ Sun Oct 13, 2013 2:37 pm ]
Post subject:  Re: Renko Trend Trading EA NOT WORKING - PLEASE HELP

czjlj wrote:I don't know why its not working.
Can anybody fix this EA?
Your kind help in this regard is much appreciated.

Thanks!
May be you can first explain :

1 - How is it suppose to work

2 - what is the problem

Philippe
Author:  czjlj [ Sun Oct 13, 2013 2:54 pm ]
Post subject:  Re: Renko Trend Trading EA NOT WORKING - PLEASE HELP

When I used default sets,the EA get error 131.
Then I set lot=0.1,but it trade only once and no more. :shock:
I'm using Ironfx broker terminal (build 509)
I need some one to fix this bug, 'cause I'm not a coder.
Author:  czjlj [ Sun Oct 13, 2013 3:08 pm ]
Post subject:  Re: Renko Trend Trading EA NOT WORKING - PLEASE HELP

If I set Rsi=false,the EA get error 4108.
222.png
333.png
Author:  phil_trade [ Sun Oct 13, 2013 3:24 pm ]
Post subject:  Re: Renko Trend Trading EA NOT WORKING - PLEASE HELP

czjlj wrote:When I used default sets,the EA get error 131.
Then I set lot=0.1,but it trade only once and no more. :shock:
I'm using Ironfx broker terminal (build 509)
I need some one to fix this bug, 'cause I'm not a coder.
It's just a PARAM problem cause your broker accept only 0.1 lot for this pairs.

But, before saying there is a bug in an EA, please learn more about forex ( Min lot etc )
Author:  phil_trade [ Sun Oct 13, 2013 3:26 pm ]
Post subject:  Re: Renko Trend Trading EA NOT WORKING - PLEASE HELP

czjlj wrote:If I set Rsi=false,the EA get error 4108.
222.png
333.png
Same advice as previously ! Learn more about forex and about this EA

This message is about ECN Broker Yes/No. Look deeper in parameter.

and please...learn more
Author:  czjlj [ Sun Oct 13, 2013 3:56 pm ]
Post subject:  Re: Renko Trend Trading EA NOT WORKING - PLEASE HELP

phil_trade wrote:
czjlj wrote:If I set Rsi=false,the EA get error 4108.
222.png
333.png
Same advice as previously ! Learn more about forex and about this EA

This message is about ECN Broker Yes/No. Look deeper in parameter.

and please...learn more
Thanks for your Replies!

I'm not a newbie.Just describe the errors for you.
I think I can solve those problems,like error 131,error 4108 etc.
But the ea trade only once with default parameter(lot>=0.1).I have no solution.
Author:  SteveHopwood [ Sun Oct 13, 2013 8:28 pm ]
Post subject:  Re: Renko Trend Trading EA NOT WORKING - PLEASE HELP

czjlj wrote:
phil_trade wrote:
czjlj wrote:If I set Rsi=false,the EA get error 4108.
222.png
333.png
Same advice as previously ! Learn more about forex and about this EA

This message is about ECN Broker Yes/No. Look deeper in parameter.

and please...learn more
Thanks for your Replies!

I'm not a newbie.Just describe the errors for you.
I think I can solve those problems,like error 131,error 4108 etc.
But the ea trade only once with default parameter(lot>=0.1).I have no solution.
Listen dimwit. I can get deeply offended when some cretin accuses some of my code to not work because the user is too thick to understand the basics.

Others generously provided the answers here yet you appear to be too stupid to understand them.

Your membership here hangs by a thread and one more insulting post will result in its termination. Learn the basics before you post here again.

Capiche?
Author:  czjlj [ Mon Oct 14, 2013 1:24 am ]
Post subject:  Re: Renko Trend Trading EA NOT WORKING - PLEASE HELP

SteveHopwood
I will try to learn.
Thank you for your teachings so much.
Please accept my apologies for any trouble my mistake has caused you.
Author:  czjlj [ Mon Oct 14, 2013 7:26 am ]
Post subject:  Re: Renko Trend Trading EA NOT WORKING - PLEASE HELP

Look at the fourth and the fifth TradeDirection = none please.
Aren't they Effective?

Code: Select all

void GetBrickDirection()
{
   //Sets TradeDirection to up, down or none depending on their direction for the previous LookBackBricks bricks

   if (OldBars == Bars) return;//Only check at the start of each new candle
   //OldBars is reset in start() so that the ea can check the trailing stop loss at the start of each new brick
   
   TradeDirection = none;
   
   //Previous brick direction
   if (Close[1] > Open[1] ) TradeDirection = up;
   if (Close[1] < Open[1] ) TradeDirection = down;
   
   //Confirm that previous LookBackBricks were in the same direction
   for (BrickCount = 2; BrickCount <= LookBackBricks; BrickCount++)
   {
      //Check rising bricks
      if (TradeDirection == up)
      {
         if (Close[BrickCount] < Open[BrickCount] ) 
         {
            TradeDirection = none;
            return;
         }//if (Close[BrickCount] < Open[BrickCount] )  

      }//if (TradeDirection == up)

    
      //Check rising bricks
      if (TradeDirection == down)
      {
         if (Close[BrickCount] > Open[BrickCount] ) 
         {
            TradeDirection = none;
            return;
         }//if (Close[BrickCount] > Open[BrickCount] )  
      
      }//if (TradeDirection == down)
      
   }//for (BrickCount = 0; BrickCount <= Bars; BrickCount++)
   
   //Got this far, so all the bricks have been going in the same direction.
   //Check that the prior to BrickCount was in the opposite direction.
   //This is intended to avoid getting into a trade late in a move.
   if (TradeDirection == up)
   {
      if (Close[BrickCount] > Open[BrickCount] )//Was another riser
      {
         TradeDirection = none;
         return;
      }//if (Close[BrickCount] > Open[BrickCount] )
   }//if (TradeDirection == up)

   if (TradeDirection == down)
   {
      if (Close[BrickCount] < Open[BrickCount] )//Was another faller
      {
         TradeDirection = none;
         return;
      }//if (Close[BrickCount] > Open[BrickCount] )
   }//if (TradeDirection == down)

   
   
}//void GetBrickDirection()
Let's look at this code again.
Is modify if (OrdersTotal() == 0 || !TradeExists) better than if (!TradeExists)?

Code: Select all

   ///////////////////////////////////////////////////////////////////////////////////////////////         
   //Trading
   if (!TradeExists)
   {
      LookForTradingOpportunities();
   }//if (!TradeExists)
   /////////////////////////////////////////////////////////////////////////////////////////////// 


Maybe I'm wrong.
Please correct me.
Thx!
All times are UTC Page 1 of 1