Forex



Go Back   Forex Trading > Training > Metatrader > Metatrader 4 mql 4 - Development course
Forex Forum Register More recent Blogs Calendar Advertising Others Help






Register
Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.

From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.

Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
  • Elite Section
    Get access to private discussions, specialized support, indicators and trading systems reported every week.
  • Advanced Elite Section
    For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
See more

View Poll Results: Would you like to see all the lessons have been gathered in one ebook?
Yes! 1,907 96.65%
No! 14 0.71%
Dosen't matter! 52 2.64%
Voters: 1973. You may not vote on this poll

Reply
 
Thread Tools Display Modes
  #101 (permalink)  
Old 02-01-2009, 05:35 AM
Junior Member
 
Join Date: Jan 2009
Posts: 3
powercouple is on a distinguished road
Programmer course downloads?

I am going through the programming course done by codeguru, and it references this site as the location to download the samples in the tutorial, but I cannot find them anywhere. Can anyone help me?

Thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #102 (permalink)  
Old 02-01-2009, 05:55 AM
Junior Member
 
Join Date: Feb 2009
Posts: 3
promoteam is on a distinguished road
many thanks Guru

i am quite nude in this field. i'm trying to program the following EA with great difficulty: can anyone help direct me.

on H1 timeframe, if MA13 (moving average set to 13) goes above (crosses) MA120
and
stochastic 120 > 50 and
sto 15 > 60

then buy

if MA 13 goes below MA120 and
sto 120 >50
and sto 15 <20
then sell

with the parameters changeable
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #103 (permalink)  
Old 02-04-2009, 08:52 PM
Junior Member
 
Join Date: Feb 2009
Location: Norfolk, UK
Posts: 9
blott203 is on a distinguished road
MT4 tutorial

HI Coders Guru,

I'm not at this stage interested in developing EAs, scripts, indicators etc, I just need to know what the various options/settings are on MT4 e.g. how to change bear & bull colours on candle charts globally not just for individual charts. Will your tutorial tell me things like that, or will it over the top for a FOREX newbie like myself?

Cheers,

Mike
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #104 (permalink)  
Old 02-05-2009, 01:53 AM
Linuxser's Avatar
User Root
 
Join Date: May 2006
Location: Helliconia (Winter)
Posts: 4,410
Blog Entries: 56
Linuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond repute
Quote:
Originally Posted by blott203 View Post
HI Coders Guru,

I'm not at this stage interested in developing EAs, scripts, indicators etc, I just need to know what the various options/settings are on MT4 e.g. how to change bear & bull colours on candle charts globally not just for individual charts. Will your tutorial tell me things like that, or will it over the top for a FOREX newbie like myself?

Cheers,

Mike
You can also read The First Book on MQL4

And another interesting thread: Best Way To Learn Mql4.....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #105 (permalink)  
Old 02-10-2009, 04:51 AM
MANSTIR's Avatar
Senior Member
 
Join Date: Nov 2007
Posts: 162
MANSTIR is on a distinguished road
New styles of Money Management...

Here is what i use on my ea

Quote:
extern bool UseMM = True;
extern bool Micro = True;
extern double Lots = 0.01;
extern double Risk = 0.1;
extern double MinLots = 0.01;
extern double MaxLots = 100.0;

//+------------------------------------------------------------------+
//| calculate optimal lot size |
//+------------------------------------------------------------------+

double LotsOptimized()
{
//----
double lot = Lots;
int orders = HistoryTotal(); // history orders total
int losses = 0; // number of losses orders without a break

if(UseMM){
if(!Micro){
lot = NormalizeDouble((Risk*AccountFreeMargin())/1000,1);
if(lot>MaxLots){lot=MaxLots;}
else if(lot<MinLots){lot=MinLots;}
}
else{
lot = NormalizeDouble((Risk*AccountFreeMargin())/1000,2);
if(lot>MaxLots){lot=MaxLots;}
else if(lot<MinLots){lot=MinLots;}
}
return(lot);
}
else{
return(Lots);
}
}
here is some of others best of MM

Quote:
extern double Lots = 0.01;
extern double DecreaseFactor = 0.3;
extern int Leverage = 200;


double LotsOptimized()
{
double lot=Lots;
int orders=HistoryTotal(); // history orders total
int losses=0; // number of losses orders without a break
//---- select lot size
lot=NormalizeDouble(Risk*AccountFreeMargin()* AccountLeverage()/100000.0,1);
//---- calcuulate number of losses orders without a break
if(DecreaseFactor>0)
{
for(int i=orders-1;i>=0;i--)
{
if(OrderSelect(i,SELECT_BY_POS,MODE_HISTORY)==fals e)
{ Print("Error in history!"); break; }
if(OrderSymbol()!=Symbol() || OrderType()>OP_SELL) continue;
//----
if(OrderProfit()>0) break;
if(OrderProfit()<0) losses++;
}
if(losses>1) lot=NormalizeDouble(lot+lot*losses*DecreaseFactor, 1);
}
//---- return lot size
if(lot<0.01) lot=0.01;
return(lot);
}
Can someone suggest to me how to combine both coding into one ...?
your help, hope me win on my eas...

1st order open sell/buy loss,
then
2nd open order sell/buy increase double (2x) from previous lots...to cover loss from 1st order... hope it may win...

main things is i want to recover every losses i made by increasing the lot after each losses...

thank you...

regards,

MANSTIR

Last edited by MANSTIR; 02-10-2009 at 04:54 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #106 (permalink)  
Old 02-12-2009, 02:31 PM
Junior Member
 
Join Date: Nov 2008
Posts: 14
ramiz1236 is on a distinguished road
3 Questions if someone can help me

how to add multiple TP's Levels ??
how to set an EA to email me whenever a trade is placed by it ??
how to hide or lock all the codes so no one can modify it ???

Thanks for any Help
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #107 (permalink)  
Old 02-19-2009, 11:51 PM
Junior Member
 
Join Date: Feb 2009
Posts: 2
tomywa is on a distinguished road
Post wonderfully nice guy, Codeguru

i could not find the thread containing the ffg lessons: 1,2,5,6,11 and 14. pls direct me to wher to get them. Tnxs alot
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #108 (permalink)  
Old 02-20-2009, 01:31 AM
Linuxser's Avatar
User Root
 
Join Date: May 2006
Location: Helliconia (Winter)
Posts: 4,410
Blog Entries: 56
Linuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond repute
Quote:
Originally Posted by tomywa View Post
i could not find the thread containing the ffg lessons: 1,2,5,6,11 and 14. pls direct me to wher to get them. Tnxs alot
Everything is there but if you need help:

http://www.forex-tsd.com/243856-post15.html
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #109 (permalink)  
Old 03-03-2009, 02:25 PM
Junior Member
 
Join Date: May 2007
Posts: 4
delcor is on a distinguished road
re: ema cross over

Quote:
Originally Posted by jhp2025 View Post
Welll thanking you much Mr Coders Guru,

I'm an old guy but I like to learn something that is maybe useful to me and/or my kids.

Anyway, is there any update and/or development and/or suggestion since you release EMA_CROSS_2.mq4 which is quiet good for me but I saw that still we can further develop it so it can reduce the MODIFY function into more positive order closing one.

Again, thanks a lot,
John
hi

i have wrote an ema cross over as well but have some problems with it
i have wonder if you can look at it or can i look at your system. we can work together to improve it

john
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #110 (permalink)  
Old 03-10-2009, 06:45 AM
pgd pgd is offline
Junior Member
 
Join Date: Oct 2007
Posts: 9
pgd is on a distinguished road
Re: functions init() & deinit()

Hello all,

Would a coding expert kindly explain:

when code should be written within the function init() ?
when code should be written within the function deinit() ?

I have been looking for the answer to these questions on the internet but I got nothing that explains it in clear practical application terms.

examples would help...

Thanks in advance.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
Reply

Bookmarks

Tags
forex, forex mql4, how to program mql4, learning mql4, lesson, mladen, mq4 course, MQ4 forum, mql training, mql4 course, mql4 courses, mql4 ebook, mql4 forum, MQL4 lessons, MQL4 TRAINING, MT4 course, slope direction line


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Arrays in MQL4 clippertm Questions 5 08-11-2008 02:16 AM
Help for convert from VT to MQL4 M-E-C Expert Advisors - Metatrader 4 11 07-27-2007 07:53 PM
www.mql4.com DeSt Metatrader 4 18 02-02-2006 12:59 AM


All times are GMT. The time now is 06:51 AM.



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