Hi,Can somebody help me in prinitng the lines on last 50 bar??
- How to Read and write data from out side the metatrader folder
- Problem in drawing the horizantal line
- Not running in m1,m5 and m15 time frame
ankityadav:
Hi,Can somebody help me in prinitng the lines on last 50 bar??
Hi,Can somebody help me in prinitng the lines on last 50 bar??
What does that means ? Which lines ?
ankityadav:
What you asked for is very unclear to me. How are these lines drawn ? You "want to print the lines" you mean the chart or the values ? How an horizontal line is related to a given bar ?
Hi thanks for your reply,Horizontal lines if you see the image there are lots of lines so i want filter out and make it through lets say for fifty bars so what i want to print the lines on the given bar criteria through code
ankityadav:
Please read the code i have make a certain condition to draw this line.But the area is surrounded by so many lines so i want to put filter in that to use bars filter if there are 100 bars available then i have to see the lines in only 50 bars that was i m doing but its nt working can you help me to do that
Please read the code i have make a certain condition to draw this line.But the area is surrounded by so many lines so i want to put filter in that to use bars filter if there are 100 bars available then i have to see the lines in only 50 bars that was i m doing but its nt working can you help me to do that
Change the value of limit to use MAX_BARS instead of Bars, something like :
MAX_BARS=50; ... limit=MAX_BARS-counted_bars-1;
But if you see i m printing the line fast and slow band as well so i want to print them from the start Is that possible??
ankityadav:
But if you see i m printing the line fast and slow band as well so i want to print them from the start Is that possible??
But if you see i m printing the line fast and slow band as well so i want to print them from the start Is that possible??
Yes, only print them if limit is <=50.
Yes It does work Thanks for your help and very very thankful to you
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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