
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
You don't need to add anything... It's already in the line.
Thank you very much!
Your thread is a treasure on the internet. I can't get enough of what I found.
You don't need to add anything... It's already in the line.
I would like to ask Igor and everyone who writes regularly in this thread. I have browsed through the branch and did not find the function that determines the angle of the trend. Do you have a function that will determine the angle of the trend on a 15-minute chart for 6 or more candlesticks?are there any functions that allow you to pull (trigger)
profile
template
???
I would like to ask Igor and everyone who writes regularly in this thread. I looked through the branch and did not find the function that determines the angle of the trend. Do you have a function that will determine the angle of the trend on a 15-minute candle at 6 or more candles?
We can talk not about the angle, but the rate of change in price
Greetings! Thanks for your work, you are doing a good job.
I am making an indicator but the EquationDirect function sometimes calculates the crossing point incorrectly :(
I have calculated the points of lines on my chart and attached them in a test indicator for clarity. The function does not calculate the intersection correctly with an offset, i.e. at some angle the formula in the function is not appropriate and it needs to be corrected in some way, so when it happens the calculations will be done by a different formula IMHO
screenshot
added via opera, not added in explorer
How can I determine the end time (from left) that is visible in the graph?
TimeCurrent()
TimeCurrent()
This seems to be on the right.
I already figured it out.
it is not because of the EquationDirect function, the calculation is correct, it is because of a bug in the terminal, the line is drawn with an offset
that is why I had to first determine the crossing point with Time[0] and then draw a trend line from the initial point to the crossing point with Time[0], in this case everything works fine
the rightmost time in the chart is needed for positioning the indicator signal switch icon (when the chart scale is changed), i.e. if you move the switch icon beyond the rightmost time, i.e. not yet reached, the icon switches (the signal for placing an order switches on or off, it means that you can prohibit or permit the EA to trade by switching the signal)
The lefthand time is determined as follows: we obtain the outermost bar visible on the chart
WindowFirstVisibleBar() and get the time Time[WindowFirstVisibleBar()]