Forum

Metatrader freezes during backtesting

An EA (or all EAs) that worked yesterday (and all the other days) suddenly stops after a minut while I'm doing backtesting . It doesn't matter if I choose another method (tick/opening) , the chart still freezes and I get NO ERROR MESSAGE! Then after a minute the whole program (Metatrader) freezes

Object on the right place

I want to to create a line with according to pixels not with price and time... On my "trading view" I would like to have "mini-charts" with different time frames, like the picture I linked to... http://www.mediafire.com/i/?2hnu70cc2pjw6s0 A work around could be a loop with text like "dots" (.), like

Get last trade from current bar

If I want to get information about last knowing and really executed trade (for example S&P emini) in the current bar. Is "Close[0]" the right way? If i use Bid+Ask/2 i could get the average price. But will "Close[0]" work when I simulate and doing tests? In simulation mode I am afraid of getting the

Strategy tester in WARP speed?

First of all i´m a newbie... Right now I´m running the strategy tester and I want simulate a month with 1 hour resolution . This takes forever... Is this normal? If I use visual mode I can see every tick is used, for the hour... I don´t mean this is wrong, that the tester is accurate. But I just

Indicator working only after a while

This is strange, but proberly a newbie problem. When I first run my indicator no lines is visible, but after a minute they start to show (I have 1 min resoloution). This is irritating because I have to wait for a hour before everything works as it should... When I run my other indicators they draw

iMAOnArray

I having problem with this function and are getting mad... According to the documentation it reads the array from left to right and if I choose 0 it has to start from 0? Example: value=iMAOnArray(Close_Buffer,0,15,0,MODE_EMA,0); I "fed" the Close_Buffer with the latest value (latest is 0 in array)

Indicator call through iCustom

If I make an indicator. Do I have to apply that indicator to a special chart to use the indicator or could I just use it with function iCustom to get the values. To specify my question: Lets pretend that I´ve made an indicator namned WG (Wholy Grail) and I want to use it on EUR/USD. Do I have to

Update only once a minute

I´m a newbie to MT4, so there are a lot of features that I may miss... Background: I export all the quotes to a MySQL-database, when a new minute/bar occurs. But there is a problem... If the new minute/bar tick will occur at 12:10:00 (HH:MM:SS) that would be perfect, but the new minute/tick could

Using same functions

Is it possible to create an EA/indicator/script, that has my "best of functions " that I can "Call/use" for my indicators and EA (like a DLL). So I don´t have to add these functions in every EA or indicator, maybe just "include" this in the header

IndicatorCounted() and Dollar Index

I´ve developed a Dollar Index Indicator . I´m newbie to MT4 and I´ve been stealing code from expert/indicators in my MT4 installation folder... What is "IndicatorCounted()"??? I have read the documentation. So what is "new bars". This value has to be equal with "bars" while running? Or if I restart