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
Examples of how to use SetRegression().
PS. Attached is a script to test the SetRegression() function.
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:
Examples of how to use EquationDirect().
SZY. Attached is a script to test EquationDirect().
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 a multiframe indicator I had to use the GetArrowInterval() function:
This is an old variant that has very quickly transformed into a more compact and versatile form:
Examples of how to use GetArrowInterval().
SZY. Attached is a script to test function GetArrowInterval().
In e-SOTrailing EA you need to make modification of take and stops.
Thank you! Done... The corrected EA is on my website.
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:
Please write the second part of the line equation.
Calculate the value of the ordinate Y for the abscissa of X at the point of intersection with a line drawn through one arbitrary point on a graph with a given angle. The function takes the following mandatory parameters:
Thank you.
Please write the second part of the equation of a straight line.
Calculate the value of the ordinate Y for the abscissa X at the point of intersection with a line drawn through one arbitrary point on a graph with a given angle. The function takes the following mandatory parameters:
Thank you.
A 45° angle occurs when the cathetuses are equal. When the unit of measurement of the cathetuses is metric, there is no problem. One cathetus is two meters and the other is also two meters. So that's a 45° angle. But what about when one cathetus is the number of bars or time, and the other cathetus is the price? How do you ensure they are equal so that the angle is 45°? It is a question of scaling. Give me a fulcrum and I'll move the ground (c).