Great explanations every step of the way ! I thought learning MQL5 was way to hard, but your detailed videos are giving me hope . Its hard to find well explained MQL5 learning material like this. Great Job mate !
Excellent video, very helpful, thank you. Around 8 mins you discuss looking at the data window to determine the index number but I see a potential issue here: 1) What if somebody were to clear the chart down at a later date and this time add 2 indicators alongside the EA, say RSI then MACD, would that then break the EA? 2) In the case of an EA multiple indicators, would the indicators always be loaded in the same order when starting up? Your thoughts on this greatly appreciated.
Test it yourself Run indy1 & see what index values are Run indy2 & see indexes Run indy1 & indy2 to see indexes Then think Issue mitigation: if problem try only calling one indy1 using one iCustom and think another way to get indy2 into EA.
@15:34 CopyBuffer function doesn't behave that way anymore. It copies to the destination array as the index array once you set the destination ArraySetAsSeries as true.
That is the way it has always behaved, notice in this video I didn't use ArraySetAsSeries. Even then, the copy works in the same way. ArraySetAsSeries changes the indexing into the array works, not the direction of storage in the array.
This is fantastic video... I would like to use divergences (hidden and normal) in my EA, but don't know how to manage not to use every single peak or of-peak... In other words, I would like to create EA which takes in to account only swings of the same degree, and reduces noise between ''main peaks''... It is easy when you trade manually and actually see the chart, you can decide which tops or bottoms you will use, but how to do it with EA? Hope my explanation is not confusing. If so, please share any EA (or idea), which deals with divergences... Thank you in advance.
You want something like take the average of the last N highs or lows, perhaps discard the highest and lowest of each, maybe get the SD as a way of building a channel around the peaks.
how can i add two indicators.. i have a nice strategy but struggling to code it. wil you be able to help me please to code it.. it only takes sells with no stop loss as stop loss doesnt work on boom1000 with a tp of 5000 pips adjustable.. it must have the opion to either buy or sell and can be switched on and off.. please kind sir.. i have the indicators its only 3. how can we communicate
Hi, thanks for your help. I'm confused with the indices for iCustom vs (for example) iATR, The latest for price, iATR and so on, is index 0 whereas for ICustom the latest is 1. Do you have any explanation for this, please ?
Hi how can I just trade the macd signal line cross by tick without a closing candle confirmation. If the the macd line crosses over the signal line I want to buy right away. I thought the current value is index 0 in the arrays I am getting confused lol. Thanks
@@OrchardForex ah ok thanks, I was wondering if you could show how to implement a RSI that is calculated based on heiken ashi candles that can be used in an ea. Thanks
Hello Arthur, good day to you. I have two questions for you, 1. Could you use two iCustom indicators in one EA? Let's say for example, same symbol but two timeframes. 2. Could you use two EA's on the same chart?
1. Yes, as many as you like. 2. No. I thought you could in MT5 but just tested and I couldn't. But you can open the same symbol/timeframe in a different chart and run another EA there
@@OrchardForex I tried using iCustom in an EA for both a 1min and 5min timeframe using the technique on your video. I couldn't get it to work. I will try again and see if I can find a solution.
Ok, I found a solution. Using the one indicator I copied it and used a next name for the copy: then I changed the magic number in the copy and then I duplicated the buffers and indices and named them accordingly: const string IndicatorName = "Buy & Sell (Moving Arrow) Indicator"; const string IndicatorNameX = "Buy & Sell (Moving Arrow) IndicatorX"; Then for the handles: HullHandle= iCustom(Symbol(),Period(),IndicatorName); HullHandleX = iCustom(Symbol(),PERIOD_M5,IndicatorNameX);
@@productvisibilitytvshoppin1107 I have no idea why you wanted to make a copy of the indicator. All you need to do is create 2 handles using different timeframes but if this works for you then go ahead.
@@OrchardForex I tried your approach initially and I couldn't get it to work. I thought it was going to be that simple until after a few days I still couldn't understand why it wouldn't work so I started looking for an alternative approach. In all it took me about 2 weeks to get that solution.
Loved it very beneficial thanks a lot but I have a problem hope you can answer; When I use the expert advisor (which I ve created with your method) in strategy tester It is not working Unless I enable visualized mode
I have just tried both of the EAs and they work in both visual and non visual mode. In non visual what are you expecting to see, they complete very quickly and you won't know they have run unless you go to the backtest or graph tabs to see the results.
@@OrchardForex Yes If the indicator is predefined by MT5 it works however with self made custom indicators it doesn't. The reason why I want nonvisual mode is that I want machine do the optimization for parameters lol
@@muratgurpnar3632 iCustom does not differentiate between indicators supplied with the platform and custom indicators. If your EA works in visual mode but not in non visual then it will be because your indicator does not work in non visual mode. Possibly it is trying to read or write screen properties and failing because there is no screen.
Good afternoon. Excellent video. Very explanatory. It worked with other indicators I have, but not another one. It is the Volume_Average custom indicator with 2 input data: 20 (period for volume averaging) and VOLUME_REAL. However, the function does not work. If you can help me, I appreciate it.
Hi! It is possible to create indicator based on raw price movement, say all candles where price is moved at h1 at least 30 pips up, changes color to green and where moved down, changes to red.
There is no indicator, only a template for an expert. The link still works. You have to go through the whole shop experience and then download from the email.
I love that unlike other channels you share everything and every detail.
I have just started coding and your videos are very informative
Awesome, thank you!
Suppose I'm working on an indicator not provided by metaquotes, how do i go on about the inputs.
Cases where i can't put inpFast or slow??
@@panganaikelatlheletswe6352 Same way
@@OrchardForex thank you i watched your recent video on beast indicator and it provided a clue
you are hero bro...i am a expert creator but mt4, i am always confuse if using mt5, now i understand, thanks a lot brother..
Happy to help
Cheers, Loving it, like always clear and educational!
Thank you for this usefull and perfaect video and sharing templates ❤🙏🏻
Great explanations every step of the way ! I thought learning MQL5 was way to hard, but your detailed videos are giving me hope . Its hard to find well explained MQL5 learning material like this.
Great Job mate !
Great to hear!
Excellent video, very helpful, thank you. Around 8 mins you discuss looking at the data window to determine the index number but I see a potential issue here: 1) What if somebody were to clear the chart down at a later date and this time add 2 indicators alongside the EA, say RSI then MACD, would that then break the EA? 2) In the case of an EA multiple indicators, would the indicators always be loaded in the same order when starting up? Your thoughts on this greatly appreciated.
Test it yourself
Run indy1 & see what index values are
Run indy2 & see indexes
Run indy1 & indy2 to see indexes
Then think
Issue mitigation: if problem try only calling one indy1 using one iCustom and think another way to get indy2 into EA.
Thanks alot for this. God Bless you.
You are very welcome
Very Good! Thank you for the template code!
Thanks man, this video is very helpful, appreciated !
Glad it helped!
@15:34 CopyBuffer function doesn't behave that way anymore. It copies to the destination array as the index array once you set the destination ArraySetAsSeries as true.
That is the way it has always behaved, notice in this video I didn't use ArraySetAsSeries. Even then, the copy works in the same way. ArraySetAsSeries changes the indexing into the array works, not the direction of storage in the array.
This is very good video...do you also have any video where we can take values of arrows from indicator and place buy sell trades automatically
Amazing what you can find if you look. ua-cam.com/video/vifnkkHhxaQ/v-deo.html
This is fantastic video...
I would like to use divergences (hidden and normal) in my EA, but don't know how to manage not to use every single peak or of-peak... In other words, I would like to create EA which takes in to account only swings of the same degree, and reduces noise between ''main peaks''... It is easy when you trade manually and actually see the chart, you can decide which tops or bottoms you will use, but how to do it with EA? Hope my explanation is not confusing. If so, please share any EA (or idea), which deals with divergences... Thank you in advance.
You want something like take the average of the last N highs or lows, perhaps discard the highest and lowest of each, maybe get the SD as a way of building a channel around the peaks.
there on youtube are a lot of video about experts creation, but much less about indicators creation.
That reflects the much higher demand from viewers for experts.
Thank you very much.
Great video, tried it. Any idea why a custom indicator would not show on the chart/backtests?
On MT5 they usually show automatically. Maybe the indicator author has prevented it from showing to protect their IP
@@OrchardForex both cases I tried were the PSAR and RSI. I'll review again if I missed some of the instructions
@@DestoTrading There is no code to write, indicators show on backtests by default, but not on charts.
@@OrchardForex that is my understanding as well, but for some reason they do not show in backtests. Weirdly, the ATR does show up. It is MT5.
You are like a breath of fresh air! Thank you very much for this. Do you have a training course for coding?
Not yet!
how can i add two indicators.. i have a nice strategy but struggling to code it. wil you be able to help me please to code it..
it only takes sells with no stop loss as stop loss doesnt work on boom1000 with a tp of 5000 pips adjustable.. it must have the opion to either buy or sell and can be switched on and off..
please kind sir.. i have the indicators its only 3. how can we communicate
Hi, thanks for your help. I'm confused with the indices for iCustom vs (for example) iATR, The latest for price, iATR and so on, is index 0 whereas for ICustom the latest is 1. Do you have any explanation for this, please ?
No, the latest for all is 0, or if you haven't set the array to ArraySetAsSeries then ArraySize()-1
@@OrchardForex Thanks again - I got confused with the video at about 17:24 where currentMACD = BufferMACD[1] and priorMACD = BufferMACD[0]
Hi how can I just trade the macd signal line cross by tick without a closing candle confirmation. If the the macd line crosses over the signal line I want to buy right away. I thought the current value is index 0 in the arrays I am getting confused lol. Thanks
Yes the current bar is usually number 0, but for indicator buffers in MQL5 it will be ArraySize(buffer)-1
@@OrchardForex ah ok thanks, I was wondering if you could show how to implement a RSI that is calculated based on heiken ashi candles that can be used in an ea. Thanks
thank you it works
Hello Arthur, good day to you. I have two questions for you,
1. Could you use two iCustom indicators in one EA? Let's say for example, same symbol but two timeframes.
2. Could you use two EA's on the same chart?
1. Yes, as many as you like.
2. No. I thought you could in MT5 but just tested and I couldn't. But you can open the same symbol/timeframe in a different chart and run another EA there
@@OrchardForex I tried using iCustom in an EA for both a 1min and 5min timeframe using the technique on your video. I couldn't get it to work. I will try again and see if I can find a solution.
Ok, I found a solution. Using the one indicator I copied it and used a next name for the copy: then I changed the magic number in the copy and then I duplicated the buffers and indices and named them accordingly:
const string IndicatorName = "Buy & Sell (Moving Arrow) Indicator";
const string IndicatorNameX = "Buy & Sell (Moving Arrow) IndicatorX";
Then for the handles:
HullHandle= iCustom(Symbol(),Period(),IndicatorName);
HullHandleX = iCustom(Symbol(),PERIOD_M5,IndicatorNameX);
@@productvisibilitytvshoppin1107 I have no idea why you wanted to make a copy of the indicator. All you need to do is create 2 handles using different timeframes but if this works for you then go ahead.
@@OrchardForex I tried your approach initially and I couldn't get it to work. I thought it was going to be that simple until after a few days I still couldn't understand why it wouldn't work so I started looking for an alternative approach. In all it took me about 2 weeks to get that solution.
Loved it very beneficial thanks a lot but I have a problem hope you can answer; When I use the expert advisor (which I ve created with your method) in strategy tester It is not working Unless I enable visualized mode
I have just tried both of the EAs and they work in both visual and non visual mode. In non visual what are you expecting to see, they complete very quickly and you won't know they have run unless you go to the backtest or graph tabs to see the results.
@@OrchardForex Yes If the indicator is predefined by MT5 it works however with self made custom indicators it doesn't. The reason why I want nonvisual mode is that I want machine do the optimization for parameters lol
@@muratgurpnar3632 iCustom does not differentiate between indicators supplied with the platform and custom indicators. If your EA works in visual mode but not in non visual then it will be because your indicator does not work in non visual mode. Possibly it is trying to read or write screen properties and failing because there is no screen.
Good afternoon. Excellent video. Very explanatory. It worked with other indicators I have, but not another one. It is the Volume_Average custom indicator with 2 input data: 20 (period for volume averaging) and VOLUME_REAL. However, the function does not work. If you can help me, I appreciate it.
Maybe your indicator doesn't have a data buffer
@@OrchardForex Hello. I just put the bookmark name without the subfolder. Worked well. Thanks for your attention.
Hello, Did you make a similar video for mt4? how can we adapt this video to mt4 "Copybuffer"
There is a version for MT4, ua-cam.com/video/9PfIfGzSHak/v-deo.html but it doesn't use copybuffer.
Hi! It is possible to create indicator based on raw price movement, say all candles where price is moved at h1 at least 30 pips up, changes color to green and where moved down, changes to red.
I can add something like this to the by request videos. Not sure how soon it will be, we are already planned for the next 7 episodes
7:00 start from here. thanks
hi can i download this script for not scrolling up and down the video?
I don't have a script to prevent the video from scrolling.
Thank you
Hi. Did what you said about the EA won't attach to the Chart
Check the experts and journal tabs for an error message.
Was the indicator removed? The link is broken.
There is no indicator, only a template for an expert. The link still works. You have to go through the whole shop experience and then download from the email.
I keep getting this error please help me out : cannot load custom indicator 'indicators\custom indicator' [4002]
Is this literally the error message? in iCustom you must use the actual name of the custom indicator including .ex4 or .ex5
@@OrchardForex im using the actual name that was just an example
@@mighty_productions-c3p I don't know why you don't want to upload the real error message or the line of code but I gave you an example answer.
@@OrchardForex 2021.08.23 16:26:30.017 2019.12.30 00:00:00 cannot load custom indicator 'System\Volatility quality zero line' [4002]
The error message says it all. You don't have an indicator called "Volatility quality zero line" in the Indicators\System folder