Carl Schreiber
Carl Schreiber
  • Information
9+ years
experience
2
products
7
demo versions
0
jobs
0
signals
0
subscribers
Carl Schreiber
Added topic Hex to color ???
Hi, I am building a colour scheme for me and I was using this to get the Hex-code of e.g. yellow 0xFFFF00: But if I use this in mql4 I get clrAqua (light blue): Comment ( "Clr-Schemes: " + ColorToString ( 0xFFFF00 , true )+ "\n" ) Of course the
Carl Schreiber
Added topic Switching TF in the Terminal causes sometimes(?) questionable results - any idea what to do?
Hi, (preliminary comment: absolutely no line of code was changed during the following procedures!!) I wrote in OOP a simple ema based on M1 for which I can define its TF and its paints it ema lines on the chart. Here you see TF of the ema and the
Carl Schreiber
Added topic is It True that ...
.. this does not work as the ArraySize is zero: //within OnInit() of an indicator:          int i= 0 ;          SetIndexBuffer (i,Buff_A);
Carl Schreiber
Added topic Showing the Ask-Line :(
Hi, do I miss something? Hi I enabled in the chart properties "Show Ask-Line" and set the colour of Ask-Line to "White" but it is not shown
Carl Schreiber
Added topic Matringale or Grid-EA Optimized by AI or NN - does this exist?
Hi, I think it would be quite interesting to see the outcome of Martingale- or Grid-EAs which were optimized by Atrificial Intellingence and or neural networks . As for Martingale- or Grid-EAsthe the crash risk is very high - I would like to know
Carl Schreiber
Added topic Is it true - there is no way ..
to get the name of the class (like EnumToString()) except by the file name - which fails as soon as you have (to have) two or more classes within the same file
Carl Schreiber
Added topic OOP, next problem: how many instances do I have and why is one pointer still NULL??
Hi, hope you don't mind me being nasty. Anyway this is my script and I get at this runtime error: 2016.09.21 15:26:50.468 testClass02 EURUSD,M1: invalid pointer access in 'testClass02.mq4' (91,12) For your understanding. I have two base classes CI
Carl Schreiber
Added topic OOP - calling the constructor from within another method?
Hi, My aim: One base class with its constructor and several different derived classes with different parameters using the one constructor of the base class. The default approach would be a A constructor of the derived classed that references to the
Carl Schreiber
Added topic OOP, creating an instance from within the contructor of another class - how?
Hi, in the class CI the constructor needs to create an instance of another class (CQ) which is forward declared - but this fails :( The mt4 compiler complains: 'CQ' - struct undefined CI.mqh  105     25 '=' - type
Carl Schreiber
Added topic Calling Methods of Nested Classes - HowTo?
Hi, the problem seems to be easy but I am stuck. I want to have 2 classes CQ and CI. CI in its constructor searches within an array of pointers (ArrCQ[]) to existing instances of CQ whether there is one that matches. For this "match-check" CQ has a
Carl Schreiber
Added topic starting to move to OOP and MQL5 seems to be very frustrating!!
There was once a poll here about who is planning when or why or .. (can't remember exactly) to switch to OOP-mq5 or something like that. The last days I started to think about coding in OOP and MQL5 and I was searching for some examples - may be an
Carl Schreiber
Added topic Does Anybody Remember the Indicator ..
HI, I know it has been discussed here. It was an indicator that looks quite interesting but is nothing but an ema. I remember there was a post that shows the original indicator and the ema and after some bars both show identical values (line). Doe
Carl Schreiber
Added topic open a file: read|bin & UTF8?
Hi, we heard mt4 is now UTF8. So I have a file save as a utf-8 file from Notepad++. Its first line in Notepad++, in Windows' Editor and Word Pad begins with Sugar; ... BUT if I open it like this:    int nL,hdl  = FileOpen (
Carl Schreiber
Added topic SymbolSelect(SYM,false) - isn't it working - or do I do something wrong?
I have written a loop within a script to get some symbol spec.s: void OnStart ()  {    int nSym = SymbolsTotal ( false );    while (--nSym>= 0 && ! IsStopped () ) {       
Carl Schreiber
Published article Enhancing the StrategyTester to Optimize Indicators Solely on the Example of Flat and Trend Markets
Enhancing the StrategyTester to Optimize Indicators Solely on the Example of Flat and Trend Markets

It is essential to detect whether a market is flat or not for many strategies. Using the well known ADX we demonstrate how we can use the Strategy Tester not only to optimize this indicator for our specific purpose, but as well we can decide whether this indicator will meet our needs and get to know the average range of the flat and trend markets which might be quite important to determine stops and targets of the markets.

Carl Schreiber
Added topic how do I now define 2-dim arrays in a mt4-mqh-file?
Function definition - what is wrong? int getInt2Index( int i0, int & arr[][]){ causes '[' - invalid index value    Defines.mqh    581    36 Char 36 is the 2nd [ Even a int getInt2Index( int i0, int
Carl Schreiber
Added topic OnTester() the Genetic Algorithm and return(INIT_PARAMETERS_INCORRECT)
Hi, does anybody know a workaround for this disappointing behaviour? In OnInit() I use: if (IsPerA == false && ValPerA != 2 ) return ( INIT_PARAMETERS_INCORRECT ); to switch on and off the test of variables and in case of an off to 
Carl Schreiber
Added topic Always INVALID_HANDLE in the TERMINAL_COMMONDATA_PATH ??
Hi, I am using the code example of the mt4-reference to read some csv-files in the COMMON-Folder - despite my terminals are placed at 'my' folders (keyword: /portable mode) and fail?? My COMMON-Folder
Carl Schreiber
Added topic real volume.. ?
Especially for Shares it would be quite helpful if the brokers offering mt4 & mt5 would finally provide the real volume. Ok, the brokers only offers cfds for trading but the but the prices are related to the prices of the real market so
Carl Schreiber
Added topic 'extend' the line?
Hi, is there a way in the mql4-editor to 'extend' the line? Hear is what what I mean: #define checkA( var ,lim1,lim2) var >lim1 ? 1 : var <lim2 ? - 1 : 0 // this is accepted by the compiler // this not: #define checkB( var