Carl Schreiber / Profile
- Information
8+ years
experience
|
2
products
|
7
demo versions
|
0
jobs
|
0
signals
|
0
subscribers
|
Friends
981
Requests
Outgoing
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](https://c.mql5.com/2/22/Optimize-Indicators-Only.png)
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.
Share on social networks · 7
17018
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
Share on social networks · 1
1
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
Share on social networks · 2
2
Carl Schreiber
Added topic More Elegant Way to Format Output?
We now have in mql4 a way to formate the output with a variable number of digits: ... string fmt = StringFormat ( "%%.%df" ,digs), Comment ( StringFormat ( "Var1: %s Var2: %s ..."
Carl Schreiber
Added topic voodoo puppets?
I am waiting for an supplier of voodoo puppets highly specialized to act on signal providers , EA or Indicator sellers, and brokers with a detailed HowTo.chm ;) It seems that this forum has become the right place for things like that
Carl Schreiber
Added topic Download of the News File fails: 404 Page not found
Hi, since the last terminal update to 890 I do have several problems. A serious one is that my tries to load the new-file of the week fails: #import "wininet.dll" int InternetOpenUrlW(int,string,string,uint,uint,uint); #import ... string
Carl Schreiber
Added topic Am I correct and fail safe this way?
Hi, In the MQL4-Reference I just read in the capital of SymbolInfoDouble (): Note It is recommended to use SymbolInfoTick() if the function is used for getting information about the last tick. It may well be that not a single quote has appeared yet
Carl Schreiber
Added topic looking for confirmation ..
Hi, am I right that we cannot have this kind of pointer structure? struct _S{ int i; }; _S p, arr[]; ArrayResize (arr, 5 ); p = &arr[ 2 ]; // compiler error: '&' - operand expected test_OrderArrray.mq4 Is
: