Things to Keep in Mind When Building an Metatrader Indicator
When you are going about building a Metatrader indicator, there are some important things you will need to keep in mind. On such an indicator, there are three different functions, including unit, start, and deinit. The first function is called after it is has been used for the very first time. The last function is called just before the indicator itself is removed. When this happens the chart that contains the indicator must be closed along with the program itself. The start function is called after every single tick.
Your main goal is to have the indicator run the same way in the test as it does in the actual run time. Although this can be slightly tricky, with enough knowledge and practice, you will be able to do it. You will want to keep in mind that during the testing phase, there are no ticks. Even though Metatrader will try its best to simulate prices that are probable with the help of OHLC, it is not the same, and you will have to consider that when going through this phase of building your forex indicator.
In the event that the indicator you are building has many complexities, or if there are multiple metatrader indicators open at one time, chances are the computer will begin to slow down. While this problem may be a difficult one to overcome for some, you will be able to do it by using a certain piece of code in order to figure out whether or not the very first tick is the start of a new bar. A new dot will be added to the indicator in the event that it is the start of a new bar. While this may be a somewhat difficult phase to get past, with enough attempts you will be able to get it right.
When recalculating each time, you will need to consider the number of bars. A lot of people use codes that utilize all available data which tends to get redrawn. Although you may see it a lot on the Internet, it is still a fairly inefficient way of going about building an indicator. What is really important to keep in mind is that with each new bar, there are certain things which are not immediately known, including the high, low, and the close; there is only the “open” that is known.
There are those that want their indicator to draw the last point with every single tick, and that is certainly something that you will be able to do. When you are doing this, you will have to realize that “close” simply means that it is the last value and not the close of the bar itself. Building a reliable indicator will certainly give you an advantage when it comes to trading. It is something which everyone who uses this software should do themselves. You will be able to use your own code to come up with a highly effective method of trading, so you can drastically increase your money-making potential.
BJF Trading Group inc.
http://iticsoftware.com
This entry was posted on Friday, October 8th, 2010 at 11:27 pm and is filed under forex indicator, metatrader indicator. You can follow any responses to this entry through the RSS 2.0 feed. Responses are currently closed, but you can trackback from your own site.





TIMOTHY December 22nd, 2010 at 12:12 pm
dosage of amoxicillin for respiratory disorder…
Buygeneric drugs…