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.
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.
quote:why dont we make this easy?
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.
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.
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.
following is the basic structure of a indicator or expert advisor:
code:note://if this is an indicator, perhaps insert this:
}//end of init
}//end of deinit
}//end of start
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.
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.
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.
code:when in the metatrader platform, pressing F3 will open up your GLOBAL VARIABLES WINDOW, as is shown in the following image..maxdrawdown=GlobalVariableGet("maxdrawdown");
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.