Petr Nosek
Petr Nosek
  • Information
7+ years
experience
5
products
46
demo versions
1
jobs
0
signals
0
subscribers
Petr Nosek
Added topic Graphic overlay and label name overlay
I have an indicator that plots 3 buffers. The first is a line ( buffer number 0) and the other two are arrows (bufer numbers 1 and 2) that lie on that line (see picture). With this order of the buffers, the indicator is plotted in a desirable way
Petr Nosek
Added topic Is it possible to "omit" the output parameter of a function?
For example, I have a defined function: int Func(int &result) In some cases I don't care about the "result" reference, yet I need (maybe not) to define it like this: int res, ret; ret = Func(res); Is it possible to use some placeholder instead
Petr Nosek
Added topic 10015 Invalid price
I got stuck trying to BUY/SELL STOP LIMIT orders. When I send this type of order, it always comes back with error 10015 (Invalid price). I've been looking at this for a few hours now and still can't figure out where the problem is. The problem is
Petr Nosek
Added topic Deprecated behavior, hidden method calling will be disabled in a future MQL compiler version
I create an inherited class from class CSymbolInfo . I overwrite the Name( const string name ) method, not the Name( void ) method. Than I call the Name( void ) method in the script and it says (warning) "deprecated behavior, hidden method calling
Petr Nosek
Added topic Incorrectly displayed indicator
If I have only one chart open in the terminal (build 4755) and add any indicator to the chart that should be displayed in the terminal window, it will be displayed correctly: If I open another chart and try to add an indicator, the indicator will
Petr Nosek
Added topic Strange behaviour of an indicator at weekends (without ticks)
If I need to have synchronized data in the indicator, I perform a synchronization check. Unfortunately, if there is no next tick coming (e.g. on weekends), there is no further call to OnCalculate and the indicator is not calculated. I helped myself
Petr Nosek
Added topic Disable chart scaling
I try to disable chart scrolling and scaling by the ChartSetInteger function with the property CHART_KEYBOARD_CONTROL (in MT4). Disabling scrolling is successful in this way, but unfortunately scaling cannot be disabled in this way. Every time you
Petr Nosek
Added topic Price scale changing
Can we detect that the scale of the price axis has changed when the price rises/falls outside the original interval on the price axis? I thought this should be handled by a function OnChartEvent with id CHARTEVENT_CHART_CHANGE, but unfortunately
Petr Nosek
Added topic What derived class
I need to have a base class and several classes derived from that base class. Since the derived classes are derived from the base class, I can assign the variable (pointer) of any derived class to the variable (pointer) of the base class. So far
Petr Nosek
Added topic STAT_MIN_MARGINLEVEL
I'm a little bit stuck with the function TesterStatistics (STAT_MIN_MARGINLEVEL). The documentation says the function returns "Minimum value of the margin level". What this exactly mean? I thought that the value is the minimum margin level but it
Petr Nosek Published product

The script writes to a text file all-important trading information about the chart symbol including symbol leverage, point value, required margin, swaps, trade and quote sessions and so on. Most traders need this information for their trading decisions. For example for stop loss placement, for volume calculating, for trades closing before session end... You can see a text file example on the screenshot

Petr Nosek
Added topic Pointer to the function
Is there a possibility to set a pointer to the function as a class method (not a static method )? This example is without problems but only with a static method: typedef void (*TAction)(); class Foo   { private :   
Petr Nosek
Added topic A custom indicator as a resource
A custom indicator included as a resource slow down 60 times tester against using the same indicator with the same inputs (not as a resource). Is it a bug? Or am I doing something wrong? Here is a simple EA so you can try it: #define
Petr Nosek
Added topic Parent destructor override
I want to use classes inherited from CChartObject (Metaquotes standard library ). For example, I want my script to draw a trend line by using CChartObjectTrend class. But the parent class (CChartObject) destructor contains deleting the object. That
Petr Nosek
Left feedback to customer for job TDI (RSI) divergence indicator as Histogram
Petr Nosek Published product

Description The base of this indicator is an ZigZag algorithm based on ATR and Fibo retracement. The ZigZag can be drawn like a classic ZigZag or like Arrows or needn't be drawn at all. This indicator is not redrawing in sense that the ZigZag's last shoulder is formed right after the appropriate conditions occur on the market. The shoulder doesn't change its direction afterwards (can only continue). There are some other possibilities to show advanced information in this indicator: Auto Fibo

Petr Nosek Published product

Description The base of this indicator is an ZigZag algorithm based on ATR and Fibo retracement. The ZigZag can be drawn like a classic ZigZag or like Arrows or needn't be drawn at all. This indicator is not redrawing in sense that the ZigZag's last shoulder is formed right after the appropriate conditions occur on the market. The shoulder doesn't change its direction afterwards (can only continue). There are some other possibilities to show advanced information in this indicator: Auto Fibo

Petr Nosek Published product

Description The base of this indicator is an ZigZag algorithm based on ATR and Fibo retracement. This indicator is not redrawing in sense that the ZigZag's last shoulder is formed right after the appropriate conditions occur on the market. The shoulder doesn't change its direction afterwards (can only continue). Note:  An indicator with advanced possibilities is also available. Indicator input parameters The input parameters allow to change the sensitivity of the ZigZag. ATR

Petr Nosek Published product

Description The base of this indicator is an ZigZag algorithm based on ATR and Fibo retracement. This indicator is not redrawing in sense that the ZigZag's last shoulder is formed right after the appropriate conditions occur on the market. The shoulder doesn't change its direction afterwards (can only continue). Note:  An indicator with advanced possibilities is also available. Indicator input parameters The input parameters allow to change the sensitivity of the ZigZag. ATR

Petr Nosek
Added topic Get indicator's buffer color
Hello everyone, I'm looking for a function in MQL4 that returns a color of a specific indicator's buffer. Something like PlotIndexGetInteger(plotNr,PLOT_LINE_COLOR) in MQL5. I know there is a constant indicator_colorN but if I change the color in the
12