OANDA Forex Forum

A history of transparency

OANDA hosts one of the longest-standing forex forums on the web. Since June 2000, our forum has given forex traders a vehicle for sharing views, airing grievances, and learning from each other. Membership in the OANDA Forex Forum comes with searchable access to diverse topic threads dating back to the very first forex forum posts.

Join in on the discussion with fellow OANDA traders by signing in with your existing fxTrade or fxTrade Practice account. If you don’t already have a forex trading account with OANDA, you can begin by registering for one today.


#1 March 19, 2012 13:07:00

dick2368
Junior Member
Member #27553
From: Rochester,NY
Registered: 2011-05-30
Posts: 19
Reputation: +  0  -
Profile  

Tutorial

Does anyone know of a web site for more detailed instruction on the use of MT4? The tutorial in MT4 tells what needs to be done but not how exactly to do it. I am looking for information on how to convert and modify standard indicators (ma,stochastic,rsi, etc) to expert advisors.

Offline

#2 March 19, 2012 16:58:00

chartblazers
Member
Member #28634
From: moscow, florida
Registered: 2012-03-09
Posts: 139
Reputation: +  0  -
Profile  

Tutorial

hello bumpa,

you might try: http://www.mql4.com

dont forget to stop over at http://youtube.com and search for metatrader or mt4 or whatever, there are quite a few videos about the metatrader platform over there.

if you should get stuck with something, just post to me your question here. or not.

happy coding,

zero/.

Offline

#3 March 19, 2012 17:54:00

chartblazers
Member
Member #28634
From: moscow, florida
Registered: 2012-03-09
Posts: 139
Reputation: +  0  -
Profile  

Tutorial

also, if you are really into the metatrader thing, dont forget to at least window shop at the primary website of the people that made the thing..

http://metaquotes.net

Offline

#4 March 19, 2012 18:37:00

dick2368
Junior Member
Member #27553
From: Rochester,NY
Registered: 2011-05-30
Posts: 19
Reputation: +  0  -
Profile  

Tutorial

chartblazers
thank you for the ingormation, will give them a try.

Offline

#5 March 19, 2012 21:26:00

chartblazers
Member
Member #28634
From: moscow, florida
Registered: 2012-03-09
Posts: 139
Reputation: +  0  -
Profile  

Tutorial

quote:
Originally posted by Bumpa:
Does anyone know of a web site for more detailed instruction on the use of MT4? The tutorial in MT4 tells what needs to be done but not how exactly to do it. I am looking for information on how to convert and modify standard indicators (ma,stochastic,rsi, etc) to expert advisors.

why dont we make this easy?

tell me what it is that you are trying to do and then lets see if i can just point you in the right direction, codewise.

me.

Offline

#6 March 19, 2012 22:31:00

chartblazers
Member
Member #28634
From: moscow, florida
Registered: 2012-03-09
Posts: 139
Reputation: +  0  -
Profile  

Tutorial

i will try to describe the basic differences between an INDICATOR and an EXPERT_ADVISOR...

metatrader 101:

custom indicators can produce line graphs and such things but can not trade, where expert advisors are the opposite, ea's can place and close trades but can not draw line graphs. weird.

from the root/primary subdirectory where you installed your metatrader platform, INDICATORS are stored in /experts/indicators and EXPERT ADVISORS are stored in /experts.

both types of files have the same primary structure, they both have an init() function and a deinit() function and a start() function.

the init() function executes automatically when you run the indicator or expert advisor.

similarly, the de-init() function executes automatically when the execution of said indicator or expert adviser terminates.

the start() function contains your code that you want to run upon loading of your indicator or expert advisor. this is where you will design your indicator or expert advisor.

when writing code for an indicator, you can place one of the following lines at the very top of your code to specify whether you want your custom indicator to appear in the chart window directly or if you want it to display in a separate window below your chart.

#property indicator_chart_window
#property indicator_separate_window

following is the basic structure of a indicator or expert advisor:

code:
//if this is an indicator, perhaps insert this:
#property indicator_chart_window


int init()
{

}//end of init

int deinit()
{

}//end of deinit

int start()
{

}//end of start

note:
when in the metatrader platform, pressing F4 will load up the metaeditor programming editor and pressing F4 again will return you back to the platform.

when in metaeditor, pressing F5 compiles the file currently open.

click FILE->NEW to get started.

me.

Offline

#7 March 20, 2012 08:16:00

Garrettlive
Member
Member #28586
From: India
Registered: 2012-02-23
Posts: 32
Reputation: +  0  -
Profile  

Tutorial

quote:
Originally posted by chartblazers:
hello bumpa,

you might try: http://www.mql4.com

Yes, this is sound good to understand the MT4 application in forex trade... Thank you!


Some forex product reviews at here.. forex software review

Offline

#8 March 20, 2012 11:23:00

dick2368
Junior Member
Member #27553
From: Rochester,NY
Registered: 2011-05-30
Posts: 19
Reputation: +  0  -
Profile  

Tutorial

chartblazers
Thank you for the additional info. What i am trying to do is download the EA's that are in the library that came with the mt4 from oanda. I assume that most are free and that they can be easily altered in small ways to make them more efficient. At this time I have not been able to download,place and open them in the EA folder.
I am a trader not a programer and somewhat familiar with tradestation easy language. Am looking for simple programs that can run more than more than 2-3 hours per day that i now devote to trading.

Offline

#9 March 20, 2012 13:07:00

chartblazers
Member
Member #28634
From: moscow, florida
Registered: 2012-03-09
Posts: 139
Reputation: +  0  -
Profile  

Tutorial

oh. i see. personally, i do not ever use others code, and the first thing that i do is to erase all files in the /experts and /experts/indicators subdirectories, cuz i dont use their stuff.

i do remember that the /experts/indicators subdirectory is usually populated with several custom indicator files(which i do not use) but i do not remember any expert advisor example files in the /experts subdirectory.

i think that you are not going to find any expert advisor programs in your /experts subdirectory, but instead you will need to write your own or acquire it some other way.

as you say that you have experience writing tradestation language code(which i am not experienced with), but if you were to tell me the basics of what your desired trading system is about, perhaps i can get you started in the right direction.

happy coding,

edward/.

Offline

#10 March 20, 2012 18:04:00

chartblazers
Member
Member #28634
From: moscow, florida
Registered: 2012-03-09
Posts: 139
Reputation: +  0  -
Profile  

Tutorial

global variables are one thing about metatrader4 code that i like using.

example:
code:
maxdrawdown=GlobalVariableGet("maxdrawdown");
maxdrawup=GlobalVariableGet("maxdrawup");

if(AccountProfit()<maxdrawdown)
GlobalVariableSet("maxdrawdown",AccountProfit());

if(AccountProfit()>maxdrawup)
GlobalVariableSet("maxdrawup",AccountProfit();

when in the metatrader platform, pressing F3 will open up your GLOBAL VARIABLES WINDOW, as is shown in the following image..

 -

note that you can feed parameters to your code, on the fly, by using global variables. for example, you might want to pass a timeframe value to your code. it is easy. click Add and off you go.

happy coding.

 -

Offline

Board footer

Moderator control

Powered by DjangoBB

Loading nanoRep