Renko Trend Trading EA NOT WORKING - PLEASE HELP

Post Reply
czjlj
Posts: 7
Joined: Sun Apr 28, 2013 3:21 am

Renko Trend Trading EA NOT WORKING - PLEASE HELP

Post by czjlj »

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

Thanks!
You do not have the required permissions to view the files attached to this post.
phil_trade

Re: Renko Trend Trading EA NOT WORKING - PLEASE HELP

Post by phil_trade »

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
czjlj
Posts: 7
Joined: Sun Apr 28, 2013 3:21 am

Re: Renko Trend Trading EA NOT WORKING - PLEASE HELP

Post by czjlj »

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.
You do not have the required permissions to view the files attached to this post.
czjlj
Posts: 7
Joined: Sun Apr 28, 2013 3:21 am

Re: Renko Trend Trading EA NOT WORKING - PLEASE HELP

Post by czjlj »

If I set Rsi=false,the EA get error 4108.
222.png
333.png
You do not have the required permissions to view the files attached to this post.
phil_trade

Re: Renko Trend Trading EA NOT WORKING - PLEASE HELP

Post by phil_trade »

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 )
phil_trade

Re: Renko Trend Trading EA NOT WORKING - PLEASE HELP

Post by phil_trade »

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
czjlj
Posts: 7
Joined: Sun Apr 28, 2013 3:21 am

Re: Renko Trend Trading EA NOT WORKING - PLEASE HELP

Post by czjlj »

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.
User avatar
SteveHopwood
Owner
Posts: 9904
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Re: Renko Trend Trading EA NOT WORKING - PLEASE HELP

Post by SteveHopwood »

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?
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. pianodoodler@hotmail.com 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.
czjlj
Posts: 7
Joined: Sun Apr 28, 2013 3:21 am

Re: Renko Trend Trading EA NOT WORKING - PLEASE HELP

Post by czjlj »

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.
Last edited by czjlj on Mon Oct 14, 2013 7:30 am, edited 1 time in total.
czjlj
Posts: 7
Joined: Sun Apr 28, 2013 3:21 am

Re: Renko Trend Trading EA NOT WORKING - PLEASE HELP

Post by czjlj »

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!
Post Reply

Return to “Coders Hangout”