Forex
Google
New signals service!

Go Back   Forex Trading > Downloads > Tools and utilities


Register in Forex TSD!
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time).
Click here to register and get more information

Reply
 
LinkBack (2) Thread Tools Display Modes
  #11 (permalink)  
Old 03-09-2006, 11:04 PM
Member
 
Join Date: Dec 2005
Posts: 60
yousky is on a distinguished road
Here the new version one without this bug I hope.

http://yousky.free.fr/phpBB2/viewtopic.php?t=87

For beerhunter and other users like mention in the version informations, I've not converting all functions from MQL2 because like SetIndexValue, GetIndexValue, ... I don't know how to convert them in MQL4 ???

If some one know the good MQL4 code for those functions, give me and I will implemente them in next version.

Thanks.

Last edited by yousky; 03-09-2006 at 11:09 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 03-11-2006, 03:38 PM
Foreverold's Avatar
Senior Member
 
Join Date: Oct 2005
Posts: 262
Foreverold is on a distinguished road
With a little work you can convert mt2 int mt4 with yousky's tool, the attached was converted with his beta3 version, yousky is fixing a few bugs and will have beta4 out soon. But while you are waiting and you had some interesting ea's in mt3 ty using his tool to convert them.

GReat tool yousky thanks
Attached Files
File Type: mq4 True scalper.mq4 (5.3 KB, 43 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 03-12-2006, 09:17 AM
Senior Member
 
Join Date: Jan 2006
Location: 3rd rock from the sun
Posts: 130
fred is on a distinguished road
None of the coverters works, I have tried them all. I get errors in the bottom window.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14 (permalink)  
Old 03-12-2006, 12:25 PM
Foreverold's Avatar
Senior Member
 
Join Date: Oct 2005
Posts: 262
Foreverold is on a distinguished road
Fred,

you have to take the time to fix the errors, the converter does most of the work, but will leave in code that is not used. That code must be deleted, and there is some code in mt3 that is not referenced, that also must be deleted or changed, then your ea will work.

The converter does 95% of the work, you must do the rest.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15 (permalink)  
Old 03-12-2006, 02:32 PM
Member
 
Join Date: Dec 2005
Posts: 60
yousky is on a distinguished road
Big thanks Foreverold for your help .

I have to say that somes EA are very bad coded, for exemple in "while" syntax, or "if" you can see some times one or 2 brakets that are not used for exemple:

Quote:
if (StopLoss > 0)) then
Here you can see one open braket and 2 close bratkets, in MQL2 the compilator don't give any error, but in MQL4 theres errors.

So Mql2Mq4 works an EA good coded for other you have to make manual changes.

I will improve my tool, so tell me what is not working and I hope correct them.

Thanks bye bye
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #16 (permalink)  
Old 03-12-2006, 05:19 PM
Senior Member
 
Join Date: Oct 2005
Location: Porto/Portugal
Posts: 283
hellkas is on a distinguished road
hi yousky..

Many thanks for this great tool

I already converted dayimpuls mql for mq4, but I dont understand why it does not give the same value...

Take a look, please...
mql code
PHP Code:
/*[[
    Name := DayImpuls
    Author := Copyright © 2005, HomeSoftware Corp.
    Link := spiky@sinet.spb.ru
    Notes := Èíäèêàòîð ïðåäíàçíà÷åí äëÿ îïðåäåëåíèÿ òåíäåíöèè ðûíêà çà ïîñëåäíèå 24 ÷àñà íà ãðàôèêàõ Ì15
    Separate Window := Yes
    First Color := Yellow
    First Draw Type := Line
    First Symbol := 217
    Use Second Data := Yes
    Second Color := Red
    Second Draw Type := Line
    Second Symbol := 218
]]*/
Input per(14),d(100),porog(30);
Variables shift(0),i(0),imp(0),mBar(0),trigger(0);

SetLoopCount(0);
// loop from first bar to current bar (with shift=0)
For shift=Bars-1 Downto 0 Begin SetIndexValue(shift,0);SetIndexValue2(shift,0); EndmBar=d*per;

for 
shift=mBar downto per Begin imp=0;
for 
i=shift downto shift-per Begin imp=imp+(O[i]-C[i]);end;
imp=round(imp/point);if imp==0 then imp=0.0001;
if 
imp!=0 then Begin imp=-imp;SetIndexValue(shift-per,imp);end;
if 
imp>0 then trigger=porog;if imp<0 then trigger=-porog;
SetIndexValue2(shift-per,trigger);end
and mq4 code
PHP Code:
//+------------------------------------------------------------------+
//|                                                      DayImpuls.mq4
//+------------------------------------------------------------------+
#property copyright ""
#property link      ""

#property indicator_separate_window
#property indicator_buffers 2
#property indicator_color1 Gold
//---- input parameters
extern int       per=14;
extern int       d=100;
extern int       porog=30;
//---- buffers
double ExtMapBuffer1[];
double ExtMapBuffer2[];
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
  {
//---- indicators
   
SetIndexStyle(0,DRAW_LINE);
   
SetIndexBuffer(0,ExtMapBuffer1);
    
SetIndexStyle(1,DRAW_LINE);
   
SetIndexBuffer(1,ExtMapBuffer2);
//----
   
return(0);
  }
//+------------------------------------------------------------------+
//| Custor indicator deinitialization function                       |
//+------------------------------------------------------------------+
int deinit()
  {
//---- 
   
//----
   
return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int start()
  {
   
int    counted_bars=IndicatorCounted();
   
   
int  shift,i;
double imp,mBar,trigger;

for(
shift=Bars-1;shift>=;shift--)

ExtMapBuffer1[shift]=0
ExtMapBuffer2[shift]=0;
   } 
 
mBar=d*per;
for(
shift=mBar;shift>=per ;shift--)
{
   
imp=0;

for(
i=shift;i>=shift-per ;i--)

imp=imp+(Open[i]-Close[i]);


imp=MathRound(imp/Point);
if( 
imp == imp=0.0001;
if( 
imp != 

imp=-imp;
ExtMapBuffer1[shift-per]=imp;


if( 
imp>trigger=porog;
if( 
imp<trigger=-porog;
ExtMapBuffer2[shift-per]=trigger;} 

   return(
0);

I think that it is all good but I dont understand this difference of values

many thx

Last edited by hellkas; 03-12-2006 at 05:30 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #17 (permalink)  
Old 03-12-2006, 05:31 PM
Member
 
Join Date: Dec 2005
Posts: 60
yousky is on a distinguished road
Hi hellkas,

I've tried to convert your MQL2 code in MQ4, and I have the same value for the "per" variable. It was your problem no ?

You have post all the code of your DayImpuls ?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #18 (permalink)  
Old 03-12-2006, 05:49 PM
Senior Member
 
Join Date: Oct 2005
Location: Porto/Portugal
Posts: 283
hellkas is on a distinguished road
Quote:
Originally Posted by yousky
Hi hellkas,

I've tried to convert your MQL2 code in MQ4, and I have the same value for the "per" variable. It was your problem no ?

You have post all the code of your DayImpuls ?
i put the "per" at same value (14)... And my code its all there..

Tke a look at this pictures please?
Attached Images
File Type: jpg implus_mql.JPG (41.4 KB, 71 views)
File Type: jpg implus_mq4.JPG (45.4 KB, 63 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #19 (permalink)  
Old 03-13-2006, 09:10 AM
Member
 
Join Date: Dec 2005
Posts: 60
yousky is on a distinguished road
Hello hellkas,

So your problem is that you don't have the same result after convertion on MT3 and MT4 ? Can you post your MT3 version and I will test it afer converting.

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #20 (permalink)  
Old 03-13-2006, 09:56 AM
Senior Member
 
Join Date: Oct 2005
Location: Porto/Portugal
Posts: 283
hellkas is on a distinguished road
Quote:
Originally Posted by yousky
Hello hellkas,

So your problem is that you don't have the same result after convertion on MT3 and MT4 ? Can you post your MT3 version and I will test it afer converting.

Thanks
yes, thats my problem...

Thank you..
Attached Files
File Type: mql DayImpuls.mql (989 Bytes, 14 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Tags
DayImpuls.ex4, NDUET

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

LinkBacks (?)
LinkBack to this Thread: http://www.forex-tsd.com/tools-utilities/1244-mql2mq4-conversion-tool-beta-v0-2-a.html
Posted By For Type Date
Yousky Soft - View topic - V 0.4 is out of date, new version 0.5 available tomorrow This thread Refback 05-12-2008 02:37 PM
Yousky Soft - View topic - V 0.4 is out of date, new version 0.5 available tomorrow This thread Refback 07-13-2007 05:15 PM

Similar Threads
Thread Thread Starter Forum Replies Last Post
Looking for beta testers. AdamDuritz99 Tools and utilities 6 03-28-2007 07:47 AM
4 Hr Expert very profitable needs conversion saslam Expert Advisors - Metatrader 4 8 09-24-2006 12:57 PM


All times are GMT. The time now is 03:52 AM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.