
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
The ArrayMin() function.
This function returns the value of the minimum element of the array.
The ArrayAvg() function.
This function returns the average arithmetic of the array elements.
The ArrayAvGeom() function.
This function returns the geometric mean of the array items.
The SetHLine() function.
This function sets the OBJ_HLINE horizontal line object on the current chart.
The SetVLine() function.
This function sets the OBJ_VLINE object vertical line on the current chart.
The SetTLine() function.
This function sets the OBJ_TREND trendline object on the current chart.
Function SetTLineByAngle().
This function sets the OBJ_TRENDBYANGLE object by the slope angle in the current chart.
The SetArrow() function.
This function sets the OBJ_ARROW object icon to the current chart.
SetLabel() function.
This function sets the OBJ_LABEL text label object in the current chart.
The CrossPointOfLines() function.
This function calculates the coordinates of the intersection point of two lines. Each line is defined by a pair of its point coordinates. Three arrays are passed to the function as parameters:
Function SetRegression().
This function sets the OBJ_REGRESSION object of the linear regression channel on the current chart.
The EquationDirect() function.
The equation of a straight line. This function calculates the value of the ordinate Y for the abscissa X at the intersection with a line drawn through two arbitrary points on the graph. The function takes the following mandatory parameters:
GetArrowInterval() function.
I wrote this function to improve the convenience of developing signal indicators, i.e. those indicators that give clear buy or sell signals. The signal of such indicator I usually make as a down arrow above the Khai of a bar or as an up arrow below the low of the corresponding bar. The value of "under" and "over" was usually a few points, so the arrow would not "run over" the bar. It wasn't much of a problem in case of a single timeframe indicator designed for one hour bars only, for example. For each timeframe I had different values "under" and "over". However, for multiframe indicators I had to use the GetArrowInterval() function:
Function FindNearFractal().
This function searches for the nearest fractal and returns its price level. The function accepts the following optional parameters:
GetExtremumZZBar() function.
This function searches for an extremum of the standard custom ZigZag indicator and returns the bar number. The function accepts the following optional parameters:
GetExtremumZZZPrice() function.
This function searches for an extremum of the standard custom ZigZag indicator and returns its price level. The function accepts the following optional parameters:
GetNearestDownFractal() function.
This function searches for the nearest bottom fractal and returns its price level. The peculiarity of this function is the possibility to set an arbitrary formula for the fractal. The standard, generally accepted fractal formula is 2-2. It means 2 bars on the left and 2 bars on the right. With this function, you can perform even very exotic fractals, such as 8-2 (8 bars on the left and 2 bars on the right) or 5-3 (5 bars on the left and 3 bars on the right) and so on. The function accepts the following optional parameters:
GetNearestUpFractal() function.
This function searches for the nearest upward fractal and returns its price level. The peculiarity of this function is the possibility to set an arbitrary formula for the fractal. The standard, generally accepted fractal formula is 2-2. It means 2 bars on the left and 2 bars on the right. With this function, you can perform even very exotic fractals, such as 8-2 (8 bars on the left and 2 bars on the right) or 5-3 (5 bars on the left and 3 bars on the right) and so on. The function accepts the following optional parameters: