Forum

Magically array size?!

Why does an empty dynamic array, on a 1 day EA with a 5m timeframe produce > 80k element with this code? Is it always linked to the amount of bars on the chart? Because I don't want that. I just need the Series functionality to catch the latest 3 zigzag values. // I've set my_array[] on top and

Fields reset in order screen

Why the hell does MT4 make all fields blank when you just change the volume? This is very VERY anoying as it takes time to fill in those fields. Sometimes you have to be quick.. i lost a lot of potential trades because of this

Indicators in Expert not updating live

Hello, I'm currently writing a simple Expert Adviser that uses a arrow indicator. The problem I have is that the indicator does not paint it's objects until the expert has finished... visually seen, this is of course horrific design. Is this normal behavior? I should see it live right? Why isn't it

Retrieve Ray value of TrendLine

Hey, Is it possible to retrieve a Ray value of a drawn ray line in the past, Or do i have to calculate it myself (how?) Thanks

Showing indicator value in the axis bar

Simple question here regarding the ATR indicator: I feel a little handicapped this way. I want to see the exact value.. not just guessing. I do not want to grab the cross all the time to check. It will take to much time and makes me entering a trade to late. I need that value because i base my

OOP: How to have a static array of singleton classes?

In a static StrategyManager class I want to have a static array of Strategy Singleton classes who's functions i call depending on the current market's behavior. The static functions like OnInit() in the StrategyManager class are being called in the Expert's mq4 file. When I try to compile this, the

A singleton template class

Since build 900 allows us to make parametrized classes I was trying to find a way of creating a Singleton base class. There is nearly no information about Template classes so i tried to mimic c++ kind of template classes. template < typename T> class Singleton { private : static T*

Unable to set OBJ_ARROW_BUY and _SELL properties

Not sure if this is a known problem but I'm unable to set the OBJ_ARROW_BUY and OBJ_ARROW_SELL properties. string obj_name = PREFIX + " Arrow:" + TimeToStr(Time[i]) ObjectCreate ( 0 , obj_name, OBJ_ARROW_SELL , 0 , Time[i], Low[i] - (WindowPriceMax() - WindowPriceMin()) / 15 ); ObjectSetInteger ( 0

CTimepicker class doesn not send any event notification..

I'm struggling hard with MQL coding.. for me it seems like things aren't that 'complete'. Might sound harsh, don't meant to be. Learning for a couple of days to find out one disappointment after another... For example, after trying ON_CLICK and ON_CHANGE events, i found out - the hard way.. grr -

Possible loss of data due to type conversion bug?

The next very simple piece of code... // Get chart dimensions int chart_height = ChartGetInteger ( 0 , CHART_HEIGHT_IN_PIXELS , 0 ); .. produces a beautiful compiler warning.. : possible loss of data due to type conversion Nique - BO5M.mq4 64 22 Is this a bug