![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
Hi guys, this is how I define support and resistance to be coded.
First determine how many bars we want to use... for example its 500...
Then determine the range between highest and lowest in that bars ( for example 500 pips ).
Next, we let the user input the length of the legs of the support or resistance level in percentage based on the full range ( 500 pips that we talked before ).
So if the user input 30 %, then the two legs of support and resistance must at least have 150 pips.
So anyone has solution how to code this ?
In pseucode frist...
Hello guys,
I have attached thge source code as separate file. Screeshot of the terminal is alsO included![OUTPUT FOR THE ALGO OUTPUT FOR THE ALGO](https://c.mql5.com/3/337/MQL4_SR_ERROR__1.jpg)
Code for your direct check here: