![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
This is closest I can have.
Still not exactly each candle but close enough to test when market start.
This is closest I can have.
Still not exactly each candle but close enough to test when market start.
MQL4Newbie
Here is a version that is converted to show on the main chart : directional_breakout_on_chart.mq4
MQL4Newbie Here is a version that is converted to show on the main chart : directional_breakout_on_chart.mq4
Thank you so much, still I have learned some lines of coding![](https://c.mql5.com/forextsd/smiles/biggrin.png)
Thank you, again /SetLoopCount/ again![](https://c.mql5.com/forextsd/smiles/biggrin.png)
Yes mladen - regardless of direction Just want average of last "X" swings. Youi cna use the standard zigzag in MT4 or if you have a version with better math you can use that also. I trust your judgement on this. Thanks again for you time and response.
Regardless of the dirrection?
______________
PS: which zigzag are you using? Please attach itYes mladen - regardless of direction Just want average of last "X" swings. Youi cna use the standard zigzag in MT4 or if you have a version with better math you can use that also. I trust your judgement on this. Thanks again for you time and response.
OK.
Will be done
Hello mladen ,
I was trying to use i cumtom "NonLag ma nrp 2 nmc" for my ea .
I was writing the code like
It can open trade but i cant change the "PctFilter" value like 2.5 , it only can insert 2 or 3 (round number) , why ?
I try to change it direct in the code and compile warning is "truncation of constant value"
And the shift function is not working too , can you give me some advice ?
Thank you .
Hello mladen ,
I was trying to use i cumtom "NonLag ma nrp 2 nmc" for my ea .
I was writing the code like
It can open trade but i cant change the "PctFilter" value like 2.5 , it only can insert 2 or 3 (round number) , why ?
I try to change it direct in the code and compile warning is "truncation of constant value"
And the shift function is not working too , can you give me some advice ?
Thank you .stevenpun
All seems to be working OK for me
See the example attached : _test_1.mq4
_________________________
As of shift : all shift does is it shifts the indicator display on chart. Current bar value is still O-th element of buffer and so on regardless where it is displayed. Shift does not change that. It just makes it appear as if it is a value of another bar
Hi.
My first attempt to build an EA was a total faliure, I have not given up my strategy idea just jet.
For my next implantation and twist i need help to define a bollinger band squeeze. It is easy to identify but hard to define.
Thanks
EDIT: Can I use standard deviation in some way to identify a squeeze?
stevenpun
All seems to be working OK for me
See the example attached : _test_1.mq4
_________________________
As of shift : all shift does is it shifts the indicator display on chart. Current bar value is still O-th element of buffer and so on regardless where it is displayed. Shift does not change that. It just makes it appear as if it is a value of another barThanks , i find out the problem now .
I have insert wrong code
Thanks mladen , you have help me a lot![](https://c.mql5.com/forextsd/smiles/regular_smile.png)
hello traders/ coders
any one help me with this indicator, i need a small help that i need to a alert with pop up window for this indicator
alert 1 tenkan - kijun cross
alert 2 senkou A- senkou B cross
with pop up window
thanks in advance
abmmalay