• Home
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • User/Email: Password:
  • 4:18am
Menu
  • Forums
  • Trades
  • News
  • Calendar
  • Market
  • Brokers
  • Login
  • Join
  • 4:18am
Sister Sites
  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Options

Bookmark Thread

First Page First Unread Last Page Last Post

Print Thread

Similar Threads

Live Renko charts on MT4 and EAs? Is it possible? 7 replies

RENKO Trading SYSTEM - RENKO Indicators 7 replies

New Renko Bar and Reversal Renko Bar Indicator Alert Help Please 5 replies

Looking for RENKO Indicator for live Chart? 1 reply

Renko SFS 2013 - A live test 31 replies

  • Platform Tech
  • /
  • Reply to Thread
  • Subscribe
  • 5
Attachments: EA won't trade live on MT4 Renko
Exit Attachments
Tags: EA won't trade live on MT4 Renko
Cancel

EA won't trade live on MT4 Renko

  • Last Post
  •  
  • Page 1 2
  • Page 1 2
  •  
  • Post #1
  • Quote
  • First Post: Dec 4, 2012 9:03pm Dec 4, 2012 9:03pm
  •  notoriouskfb
  • | Joined Nov 2009 | Status: Member | 76 Posts
Hi all!

I've been having a lot of fun with renko bars lately. I've been able to backtest some EAs on MT4 and would like to trade live. However, when i attach an EA to a live renko chart, no trades get made! I don't even get like a 130 or 131 error it just never tries to send an order. I've seen others on ForexFactory with screenshots and whatnot but I have had no sucess.

Have you been able to make it happen?

How did you do it?

Thanks.
  • Post #2
  • Quote
  • Dec 5, 2012 10:15am Dec 5, 2012 10:15am
  •  notoriouskfb
  • | Joined Nov 2009 | Status: Member | 76 Posts
I've been using RenkoLiveChart_v3.2.mq4 (as a script as an indicator and as an EA) with EmulateOnLineChart = true and various other scripts EAs and indicators. But still, cannot seem to get a live trade out of my EA while attached to an offline chart.

Has anyone programmed renko to not make a chart but instead write a little renko array? i sure could use that right about now. Then, i could just wrap my code up in that and run the whole thing directly from a 1M chart.

Still it would be better to be able to just run my EA from an offline chart.
 
 
  • Post #3
  • Quote
  • Dec 5, 2012 10:28am Dec 5, 2012 10:28am
  •  jeuro
  • | Commercial Member | Joined Jan 2012 | 459 Posts
.

Maybe your EA does not trade in live accounts.
Does it make trades in demos accounts?
J.
 
 
  • Post #4
  • Quote
  • Dec 5, 2012 12:06pm Dec 5, 2012 12:06pm
  •  notoriouskfb
  • | Joined Nov 2009 | Status: Member | 76 Posts
Quoting jeuro
Disliked
.

Maybe your EA does not trade in live accounts.
Does it make trades in demos accounts?
J.
Ignored
It works on regular timeframes, but not on offline charts.
 
 
  • Post #5
  • Quote
  • Dec 5, 2012 12:53pm Dec 5, 2012 12:53pm
  •  ~bull.bear~
  • Joined Sep 2012 | Status: Aim Consistent Income | 791 Posts
I have the same problem. It doesn't send any order after try attach all the available EA provided from FF. Not sure what's going on.

I would like to code my own EA but don't know how to code with offline renko bar. It doesn't have buffer, so absolutely is unable to use icustom.

Appreciate if someone could help.
Thanks.
 
 
  • Post #6
  • Quote
  • Dec 5, 2012 1:59pm Dec 5, 2012 1:59pm
  •  jeuro
  • | Commercial Member | Joined Jan 2012 | 459 Posts
Quoting ~bull.bear~
Disliked
I have the same problem. It doesn't send any order after try attach all the available EA provided from FF. Not sure what's going on.

I would like to code my own EA but don't know how to code with offline renko bar. It doesn't have buffer, so absolutely is unable to use icustom.

Appreciate if someone could help.
Thanks.
Ignored
Most EAs should work when attached to a renko chart. I have never find one that does not work.
It must be some small details you guy are missing.

Just attach the "renko EA" to the 1m chart as you always do... and then attached the regular EA to the offline renko chart.
Sometimes, due to EA indicators, it needs a good amount of renko bars to trigger trades. So make sure you have plenty of 1M bar history in your regular TF chart, so your renko EA can make enought bars ... if not the number of renko will not be enough to calculate correctly and not trigger anything.

You create more history in the charts by pressing key "page up".

Don't know what else to suggest.

J.
.
 
 
  • Post #7
  • Quote
  • Dec 5, 2012 2:33pm Dec 5, 2012 2:33pm
  •  notoriouskfb
  • | Joined Nov 2009 | Status: Member | 76 Posts
Quoting jeuro
Disliked
Most EAs should work when attached to a renko chart. I have never find one that does not work.
It must be some small details you guy are missing.

Just attach the "renko EA" to the 1m chart as you always do... and then attached the regular EA to the offline renko chart.
Sometimes, due to EA indicators, it needs a good amount of renko bars to trigger trades. So make sure you have plenty of 1M bar history in your regular TF chart, so your renko EA can make enought bars ... if not the number of renko will not be enough to calculate correctly...
Ignored
which "renko EA" do you use?
 
 
  • Post #8
  • Quote
  • Dec 5, 2012 2:40pm Dec 5, 2012 2:40pm
  •  jeuro
  • | Commercial Member | Joined Jan 2012 | 459 Posts
Quoting notoriouskfb
Disliked
which "renko EA" do you use?
Ignored
I use a commercial one. But the the newer free version of v3.2 you mentioned should work ok.
Older version are a problem.
J.
 
 
  • Post #9
  • Quote
  • Dec 5, 2012 3:48pm Dec 5, 2012 3:48pm
  •  ~bull.bear~
  • Joined Sep 2012 | Status: Aim Consistent Income | 791 Posts
Quoting jeuro
Disliked
Just attach the "renko EA" to the 1m chart as you always do... and then attached the regular EA to the offline renko chart.
Sometimes, due to EA indicators, it needs a good amount of renko bars to trigger trades. So make sure you have plenty of 1M bar history in your regular TF chart, so your renko EA can make enought bars ... if not the number of renko will not be enough to calculate correctly and not trigger anything.
Ignored

Ok. i will try to delete all historical data and setup again. Thanks.
 
 
  • Post #10
  • Quote
  • Dec 6, 2012 5:30am Dec 6, 2012 5:30am
  •  ~bull.bear~
  • Joined Sep 2012 | Status: Aim Consistent Income | 791 Posts
Hi Guys!

Unfortunately, i try all the possible methods but EA is still unable to trigger any ordersend.
OK, i attach one of the EA here and screenshots. You can see the time where i attached the EA, and now many renko bars have been formed. But EA do nothing, and shows no error.

Please note the indicator line on renko chart is not relevant for the EA. Just ignore it.

Please assist.
Thanks.
Attached Image(s) (click to enlarge)
Click to Enlarge

Name: P1.jpg
Size: 127 KB
Click to Enlarge

Name: P2.jpg
Size: 168 KB
Attached File(s)
File Type: mq4 Renko auto-trading EA by Steve Hopwood.mq4   11 KB | 1,365 downloads
 
 
  • Post #11
  • Quote
  • Dec 6, 2012 7:04am Dec 6, 2012 7:04am
  •  jeuro
  • | Commercial Member | Joined Jan 2012 | 459 Posts
Quoting ~bull.bear~
Disliked
Hi Guys!

Unfortunately, i try all the possible methods but EA is still unable to trigger any ordersend.
OK, i attach one of the EA here and screenshots. You can see the time where i attached the EA, and now many renko bars have been formed. But EA do nothing, and shows no error.

Please note the indicator line on renko chart is not relevant for the EA. Just ignore it.

Please assist.
Thanks.
Ignored

The file you uploaded is an excel file.. not an mql4... maybe that is the problem.
Give you skype in a pm and I can guide you tru... some detail is missing but could take forever
by writing here.

J.
 
 
  • Post #12
  • Quote
  • Dec 6, 2012 6:52pm Dec 6, 2012 6:52pm
  •  notoriouskfb
  • | Joined Nov 2009 | Status: Member | 76 Posts
So i thought i might be having trouble getting ticks, even wrote another version of my code with an infinite loop in it to try and fix it that didn't work. I put Print(); statements in all of the key pieces of my code. and as it turns out everything is working fine except for my buy and sell fuctions. I'm on a 5-digit broker, oanda to be exact if that helps you understand better. here are my fuctions that aren't working. Most likely the Ordersend() part.
Inserted Code
int BuyMarket(string symb, double lot, double stop=0.0, double takep=0.0)
{double stp=0.0, tak=0.0;
if(stop!=0.0)
stp=Ask-(stop*0.0001);
if(takep!=0.0)
tak=Ask+(takep*0.0001);
OrderSend(symb, OP_BUY, lot, Ask, 3, stp, tak);
return(0);}

int SellMarket(string symb, double lot, double stop=0.0, double takep=0.0)
{
double stp=0.0, tak=0.0;
if(stop!=0.0)
stp=Bid+(stop*0.0001);
if(takep!=0.0)
tak=Bid-(takep*0.0001);
OrderSend(symb,OP_SELL,lot,Bid,3,stp,tak);
return(0);}
if you have any idea about where I made the error, or have any similar experience with oanda MT4 trading live, I'd very much appreciate your reply. So far, I think it might have something to do with slippage, but really don't know.
 
 
  • Post #13
  • Quote
  • Dec 6, 2012 7:28pm Dec 6, 2012 7:28pm
  •  CodeMeister
  • Joined Sep 2009 | Status: Making Code While Making Pips | 1,672 Posts
I can spot a number of problems with the code. These need to be fixed first, then perhaps it will be possible to identify the problem(s). Every trade operation, like OrderSend() and OrderClose must be followed by a call to GetLastError() and Print(). Otherwise you are left guessing if the transaction was successful and wasting time. GetLastError() won't solve your problem, but perhaps it will point you in the right direction.

Another thing I noticed is no use of NormalizeDouble() for values like SL and TP. This may or may not fix the problem, but it is good programming practice.
 
 
  • Post #14
  • Quote
  • Dec 6, 2012 8:13pm Dec 6, 2012 8:13pm
  •  notoriouskfb
  • | Joined Nov 2009 | Status: Member | 76 Posts
Problem Solved!

I lifted code from watube to try another approach. The problem appears to be that you cannot OrderSend() a TP and SL you have to send a naked order and then modify. kind of like this:
Inserted Code
   ticket=OrderSend(Symbol(),OP_BUY,Lots,Ask,5,0,0,0,0,0,CLR_NONE);
   if(ticket<1)
     {
      error=GetLastError();
      Print("Error = ",ErrorDescription(error));
     }
   else
     {
     OrderSelect(ticket,SELECT_BY_TICKET);
     OrderModify(ticket,OrderOpenPrice(),Bid - SL * Point, Ask + TP * Point,0);
     OrderPrint();
     }
I had to mod it a little bit because apparently ErrorDescription() wouldn't compile but that's okay because ErrorDescription() is kind of useless if you have google. My EA is up and trading live as I write this. It's been a very frustrating couple of days.

Quoting CodeMeister
Disliked
I can spot a number of problems with the code. These need to be fixed first, then perhaps it will be possible to identify the problem(s). Every trade operation, like OrderSend() and OrderClose must be followed by a call to GetLastError() and Print(). Otherwise you are left guessing if the transaction was successful and wasting time. GetLastError() won't solve your problem, but perhaps it will point you in the right direction.

Another thing I noticed is no use of NormalizeDouble() for values like SL and TP. This may or may not fix the problem,...
Ignored
Thanks for looking CodeMeister. I am a huge fan! Yes, I do need to track errors better. NormalizeDouble() is good practice and I'll take that under advisement. Best practices a very important and i need to adopt them into my coding.

Thanks to everyone else for looking in as well, esp. jeuro.
I hope you got sorted ~bull.bear~
 
 
  • Post #15
  • Quote
  • Dec 7, 2012 12:12pm Dec 7, 2012 12:12pm
  •  ~bull.bear~
  • Joined Sep 2012 | Status: Aim Consistent Income | 791 Posts
Quoting jeuro
Disliked
The file you uploaded is an excel file.. not an mql4... maybe that is the problem.
Give you skype in a pm and I can guide you tru... some detail is missing but could take forever
by writing here.

J.
Ignored
Thanks for your help. I solved my issue because the renko indicator i used did not work with the EA. The EA should work with this renko indicator "RenkoLiveChart_v3.2". However, i dislike this indicator but i prefer this as attach here. But i don't know how to amend this indicator to allow for LIVE trading with EA.
Attached File(s)
File Type: mq4 Indicator RenkoLiveChart.mq4   9 KB | 1,384 downloads
 
 
  • Post #16
  • Quote
  • Dec 7, 2012 1:26pm Dec 7, 2012 1:26pm
  •  LastViking
  • | Joined Aug 2009 | Status: Member | 58 Posts
Quoting ~bull.bear~
Disliked
Thanks for your help. I solved my issue because the renko indicator i used did not work with the EA. The EA should work with this renko indicator "RenkoLiveChart_v3.2". However, i dislike this indicator but i prefer this as attach here. But i don't know how to amend this indicator to allow for LIVE trading with EA.
Ignored
WTF??? "Copyright Mohammed I., InstaForex 2010". Ok, I gave it away as copyleft but still... (it's just the old V2.3 as far as I can tell) I think I'm about to develop a dislike for Mohammed I.

Anyway, using a indicator based "renko chart generator" is a really bad idea -It will stop updating the chart then you minimise MT4. (That's why I asked twee to remove all indicator versions of RenkolLiveChartxxx.mq4 from the original RenkoLiveChart thread.)

/Leif
 
 
  • Post #17
  • Quote
  • Aug 27, 2013 1:37pm Aug 27, 2013 1:37pm
  •  gerrylint
  • | Joined Aug 2013 | Status: Member | 48 Posts
HI, I WAS going through the forum today when i came across this post. I am looking for a Renko EA that can buy and sell automatically and From what i read, i believe you guys were working on something like that. So pls if you were successful, can you post your renko EA. TANKS ( I tried the one attarched to the post but it is for renko charts only)
 
 
  • Post #18
  • Quote
  • Sep 19, 2013 11:00pm Sep 19, 2013 11:00pm
  •  sasha100
  • | Joined Aug 2009 | Status: Member | 21 Posts
I got the same problem. Slope Direction EA does not open trades on renko offline chart. How to fix this problem?
 
 
  • Post #19
  • Quote
  • Edited 9:39am Jan 18, 2016 8:37am | Edited 9:39am
  •  WHRoeder
  • | Joined Sep 2009 | Status: Member | 10 Posts
http://assets.forexfactory.net/images/attach/mq4.gif Indicator RenkoLiveChart.mq4 9 KB is pre build 600. It can not be used.
Get the current generator (From the MT4 codebase) that has been updated for build 600+ (2014) The terminal is now at 950.
If the generator does not write tick volume, spread and real volume, it has not been updated.
See http://forum.mql4.com/71061#1028727
 
 
  • Post #20
  • Quote
  • Nov 2, 2016 5:23pm Nov 2, 2016 5:23pm
  •  Pagenturm
  • | Joined Jun 2016 | Status: Member | 36 Posts
Have you tried lately....mine do!
 
 
  • Platform Tech
  • /
  • EA won't trade live on MT4 Renko
  • Reply to Thread
    • Page 1 2
    • Page 1 2
0 traders viewing now
  • More
Top of Page
  • Facebook
  • Twitter
About FF
  • Mission
  • Products
  • User Guide
  • Media Kit
  • Blog
  • Contact
FF Products
  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer
FF Website
  • Homepage
  • Search
  • Members
  • Report a Bug
Follow FF
  • Facebook
  • Twitter

FF Sister Sites:

  • Metals Mine
  • Energy EXCH
  • Crypto Craft

Forex Factory® is a brand of Fair Economy, Inc.

Terms of Service / ©2023