Petr Nosek
Petr Nosek
  • Information
6+ years
experience
5
products
44
demo versions
1
jobs
0
signals
0
subscribers
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
Petr Nosek
Added topic Leverage for each symbol
I know it isn't a new problem but with new ESMA rules (about leverages) it became "interesting" for me. Generally now we have a different leverage for each symbol. But I know only the function AccountLeverage() (or with the same result
Petr Nosek
Added topic Is there any way to load programmatically entire history (of a Symbol and a Period) from server?
I'm looking for programmatically solution of loading entire history for a symbol and a timeframe from server. I can do it manually by opening a chart with the required symbol and the required timeframe and then (unlock Scroll the chart button)
Petr Nosek
Added topic Object seletion state after a click
At the very first I know that this thread is about MQL5 and I've attached MQL4 code but I think this problem is the same in MQL4 or MQL5 (maybe I'm wrong). EDIT: I've tried in MQL5 and this problem doesn't exist in MQL5 I create (by code) several
Petr Nosek
Added topic Is there an universal solution for Tick value?
I wonder how you manage  the Tick value in your code. For some Symbols it is in the deposit currency but for some Symbols it is in another currency. In my opinion it depends on the value of MARGINCALCMODE. If it is 0 (Forex) the Tick
Petr Nosek
Added topic Message disappearance
Why some messages disappear from the forum? For example my post #4:  https://www.mql5.com/en/forum/225879#comment_6429410
Petr Nosek
Added topic OBJ_EDIT focus
Hello, I have two similar questions related to OBJ_EDIT: 1) Can I find out if the object (OBJ_EDIT) has focus (t he cursor blinks inside the box) in MQL ? 2) Can I set focus to an object (OBJ_EDIT) in MQL
12