[Archive!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Couldn't go anywhere without you - 2. - page 232
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 need to programmatically request the price of the level. To do this, you must have "Fibo" object put on a chart and configured (all programmatically). It is not as easy as it may seem at first sight. However, Gods do not burn the pot. I once had to play with Fibo levels. And now I am working with processing of these levels. In general, if you want you can figure it out.
Here is an example of code to create a Fibo on a chart.
I had to make a subroutine to request the price of the level. Here it is (you can figure it out if you want to)
In other words, we need to add the Fibonacci object to the Fibonacci vector and find out the price of the level only that way. Have I got it right?
enter them into variables or an array and compare the price with these levels calculated by yourself. That's exactly what I do... Although - all this is IMHO.
It is not necessary to put a standard Fibo object on the chart. You can simply programmatically calculate all of the Fibo levels based on the existing conditions,
put them into variables or an array and compare the price with these levels you calculated. That's exactly what I do... Although - all this is IMHO.
Can you please write a code example?
And it's more complicated than the one Vladimir suggested... :))
Well, maybe I will like it better :) And besides, I don't want additional objects on the screen. There will be plenty of them there already, and any unnecessary ones will only hinder
My code is tightly bound to the data obtained by the Expert Advisor for which it was written. The function is only a part of necessary calculations and won't be of any practical value for you - only as a tutorial for self-comprehension. And that's with the rest of the code, where all the preliminary calculations are made.
If I made it universal, it would work slower, but I don't want that... :)
But you're welcome. This function was rewritten from Excel, where I checked its calculations. Two parameters are passed into it - the break of ZigZag (lower or upper, depending on type of position opened) and Price level 23.6 of the fib. The fib is not plotted as is generally accepted, but price is considered to have broken through the 23.6 fib and is above the consolidation level calculated in advance. The zero of the fib is placed on the break in ZZ, and a pose is opened on 23.6 (when it is broken). The remaining levels are written in the variables declared on the global level and subsequently entered into the array of the orders, from which levels are taken for any open position.
As for its usage, I would have to gut the entire Expert Advisor to understand it...
My code is tightly attached to the data obtained by the Expert Advisor it was written for. The function is only a part of the necessary calculations and will not be of any practical value to you - just as a tutorial for self-comprehension. And that's along with the rest of the code, where all the preliminary calculations are made.
If I made it universal, it would be slower, and I don't want that... :)
But you're welcome. This function is rewritten from Excel, where I checked its calculations. Two parameters are passed to it - the break of ZigZag (lower or upper, depending on type of position opened) and Price level 23.6 of the fib. The fib is not plotted as is generally accepted, but price is considered to have broken through the 23.6 fib and is above the consolidation level calculated in advance. The zero of the fib is placed on the break in ZZ, and a pose is opened on 23.6 (when it is broken). The remaining levels are written in the variables declared on the global level and subsequently entered into the array of the orders, from which levels are taken for any open position.
As to how to use it, you should gut the entire Expert Advisor to make it clear...
Hi all! Please help me combine the following things. The result should be: two lines following the price, one lower than Ask by 20 pips..,
the other one is higher. Besides, I get a beep if price changes by 20 points per 1 tick.
All works fine separately. Thanks in advance!
1) The line below the Ask by 20 pips.
2) The line is 20 pips above the Ask.
3) Rate of price change over time.
Can you please explain why this code sometimes freezes in one place and you have to restart the terminal to resume it?
Hi all! Please help me combine the following things. The result should be: two lines following the price, one lower than Ask by 20 pips..,
the other one is higher. Besides, I get a beep if price changes by 20 points per 1 tick.
All works fine separately. Thanks in advance!
1) The line below the Ask by 20 pips.
2) The line is 20 pips above the Ask.
3) Rate of price change over time.
Seems to be boring already... It's elementary, Watson:
It's the name of a single line.
Hint: look up the name of the second line. Is it different from the first?
Yes, and why keep building an already-built facility?
Now look at the difference: