[ARCHIVE!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Can't go anywhere without you - 4. - page 398
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
How can I find the maximum tails of buy candlesticks?
I.e. the current candlestick is built, the previous buy candlestick, we determined the tail of the buy candlestick, then we continue to build the chart, the buy candlestick appears again and again we calculated the tail,
now how to find the maximum of these tails and write them in the variable????
how to write this part of the code correctly to find the max!
Zn_b=xBost_b; if(xBost_b>Zn_b) Max_b=xBost_b;
https://docs.mql4.com/ru/series/ilowest you can, so that everything is accurate at the time of debugging, put the high and low values in the comment.
https://docs.mql4.com/ru/constants/timeframes
but this is a bit different than what I would like to see...
for buy bars we define the tail in points xBost_b=(hi-cl)*10000;
for the sell bars... xBost_s=(cl-lo)*10000;
B-Buy, S-Sell, ()-current bar
for example a series of bars:
1) B(S)-determine the tail of B
2)BS(B) - now define the tail of S
3) BSB(S) - now we define the tail of bar B once again and then we need to determine which tail is greater this one or that one, thesame for sell bars
But after recalculation (for example) 10 bars maximum will be reset and everything will go back to zero
for example:
I know how to get the most out of it in my head, but I can't convert it into code) I hope for your help!
I don't pretend to be right, as I am an amateur, but in one of my EAs I found maxima and minima in the same way, as you have already been told:
extern int count = 10;
..............................
highprice = High[iHighest(NULL,0,MODE_HIGH,count,0)];
..............................
lowprice = Low[iLowest(NULL,0,MODE_LOW,count,0)];
It's not a good idea to post code with errors