[WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. - page 33
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
Do you know the answer to my additional question?
The condition below is fine, but I don't use the update function, so I can't tell you.
P.S. I'm also a beginner.
but does anyone know if this order of listing conditions through several (&&) in one line of if() operator is acceptable?
Acceptable, although I would put more brackets - operations have different priorities in different languages - so as not to think about trivialities - something like:
You look for highs among the x nearest neighbours of the indicator and compare them.
What does the function of searching for the last 2 maxima on RSI look like ?
Can someone show me the code?
...(does refresh with RefreshRates() have to be done?)...
What is the purpose of RefreshRates? The point is, that after a new tick comes, built-in variables (like Ask, Bid, etc.) are read and passed to start() function. If the start takes too long, a new tick may come, but variables are not updated. That is when you call RefreshRates.
When start takes too long? Usually when a trade operation is in progress - there is a network exchange, the server's permission for the operation is required, and a response is expected. So usually RefreshRates is used when more than 1 order is opened/closed on one tick. It is used between operations.
What does the search function for the last 2 highs on RSI look like ?
Can anyone show me the code?
Strange as it may seem, the task is not easy. Technically you have to go back and look for points such that:
y(x-1)<y(x) and y(x)>y(x+1).
But this will find local extrema, and that's a bit of a stretch - you won't be happy with the result.
Strange as it may seem, the task is not easy. Technically, you have to go back and look for points such that:
y(x-1)<y(x) and y(x)>y(x+1).
But that will find local extrema, and that's a bit off - you won't be happy with the result.
I'm thinking roughly the same, but confused by some thoughts: how will the 1st maximum be distinguished from the 2nd,
because this condition fits both the first maximum and the second and third maximum....
I'm thinking along the same lines, but I'm confused by some thoughts: how will the 1st maximum be differentiated from the 2nd maximum,
because both the first maximum and the 2nd and the 3rd maximum fit under this condition....
I can recommend you to search and read about ZigZag (there is plenty of literature). I would recommend the Rochev zigzag - 'Zigzag R'.
I can recommend searching and reading about the ZigZag (there is plenty of literature). I would recommend the Rochev zigzag - 'Zigzag R'.
>>Thank you. I'll have a look.
Had a look at....((( I don't understand anything clearly... The array is filled in, then the shifft function is unclear what exactly it does.
Thanks. I'll have a look.
Looked at....(((( I don't understand anything... The array is filled, then the shifft function is unclear exactly what it does.
That's the thing - the matter is quite complex - but this zigzag works without error. You can use it for RSI.
what does the function for finding the last 2 highs on the RSI look like ?
can someone show it in code form ?
It looks like this: