Download View the Value in On Calculate Parameters for MetaTrader 5

View the Value in On Calculate Parameters

View the Value in On Calculate Parameters

This professional-grade solution for MetaTrader 5 helps traders achieve greater efficiency in their daily workflow. This technical indicator acts as a specialized analysis tool designed to visualize market data. It helps traders identify emerging trends, momentum shifts, and key support or resistance levels by plotting statistical calculations directly onto price charts.

How to Setup and Use View the Value in On Calculate Parameters

1. Installation: Place your file in the MQL/Indicators folder via "Open Data Folder" and restart your terminal.

2. Loading: Find the indicator in the Navigator, drag it onto your chart, and configure the input parameters in the popup window.

3. Customization: Press Ctrl+I to open the indicator list, select your tool, and click "Properties" to change colors, levels, or visual styles.

4. Updating: Replace the old file in the Indicators folder with the new version and restart the platform to apply changes.

Frequently Asked Questions

Q: Why is my indicator not showing? A: Verify the file is in the MQL/Indicators folder, or try right-clicking the "Indicators" tree in the Navigator and clicking "Refresh."

Q: Do custom indicators slow down the platform? A: Too many complex indicators can impact performance; remove unused ones via the "Indicator List" (Ctrl+I).

Q: Can I use MT4 indicators on MT5? A: No, MQL4 and MQL5 are distinct languages; ensure the indicator is compiled specifically for your platform version.

Description & Settings


This is a utility for beginning indicator programmers, or others, that want to have a look at values provided by OnCalculate and a few other functions.The indicator shows:1) The most recent value provided with the most recent OnCalculate call.2) The previous value from the previous OnCalculate call.3) The first value from the first time OnCalculate executed.4) Each array's series value, as_series or not_series, with the ability to change the series value with a click on the display.
This picture shows the values the OnCalculate_Values utility displays. Note the three values, delimited by the '/', separating the "Most Recent Value", "Previous Value" and "First Value". The OnCalculate values are set to 'as_series' or 'not_series' with every OnCalculate event - when Set Arrays is 'ON', otherwise, they are left to the terminal default value. Note the value after the array names in brackets, that value indicates which bar the value comes from - the index '0' value, or the 'value at the maximum index'.
The code implements a single indicator line, a plot of the Open price of each bar as provided by iMA; the purpose is to provide a buffer to use the "BarsCalculated" function and to show the display of an Indicator when set to 'as_series' or 'not_series'. Clicking iMA_Val[0] sets the iMA buffer to as_series or not_series only once, when clicked; the iMA indicator array is not set with each call of OnCalculate.
A collection of arrays hold the properties of each of the display objects (OBJ_LABEL) in the display:
The "ArrayGetAsSeries" function is used to determine if the arrays in OnCalculate parameters are time series arrays or not, and the display shows the outcome (As_Series or Not_Series) - the display shows that these arrays are not series initially, or from one call to the next after being set as series (the SetAsSeries function sets them as series only when it is on, it lets them revert to their default when it is off - it does not set 'as series' to false).
The 3 member array, ary_OnCalcVals, holds the 1) Most Recent, 2) Previous, and 3) First values found in the OnCalculate parameters. The CopyNewToOld and MoveNewTo functions take the current value for each display parameter and places it in the historical storage provided by ary_OnCalcVals.

You May Also Like

RobotFX does not own any of the code provided on this platform. All tools are freely available on the internet; we simply index and re-offer them for download. We are not responsible for any financial losses that may occur. Trading responsibilities rely solely on the traders downloading and using the displayed Expert Advisors, indicators, and scripts. These tools are provided for educational purposes only and may require modification or optimization to align with a trader's specific strategy or needs.
© ROBOTFX - Best MetaTrader Expert Advisors & Indicators