Nice clear instructions. Info I couldn't find anywhere else. Made my code with iCustom run 100x faster. I also like the template as a quick way to get an EA up and running.
I wish I could give you just 10 likes at once. This video is the right package. I was about to learn mql4 programming and nothing was more clear than your video so far. And man, my eyes thank you for the 1080p HD crystal clear screen recording.
Thank you so much, was hard to find simple example.... I think when you teach something new to some1, the best way is always with simple examples... Thank you!
I'm certainly both impressed and grateful for this video. Your matter-of-fact approach is refreshingly helpful. My main objective is to read the output from 3rd party custom indicators (which I bought), combining with several other criteria for my own automated trading strategies. This looks like the way forward -- thanks :)
Thank you so much for this great video. It was a blast to watch it. I have learned a lot. At the same time, I have a question, regarding the notation of the 1st letter of the following variables (capital and small letter): In the input part the variables "StopLoss" and "TakeProfit" are defined and in the "OnInit"-part calculated. In the "bool OrderOpen"-function you define "stopLoss" and "takeProfit" as double, but not giving them a value. --> Does this mean they are 0 OR do they have the same values as the "StopLoss" and "TakeProfit" of the input part? Hopefully, I could explain it well. 😀
I have an indicator with a lot of inputs, can I skip some of them? use default indicator ones and do I only need to set inputs that have number values Thank you.
You can leave inputs at the end to default but not in the middle. So if there are 4 inputs you can supply 1 and 2 but not 1 and 3. Yes, you need to also supply strings, booleans, dates, etc.
in the data window, value1 shows 1.000000, 0.000000 If i print the value it is 1.0, how can i say it must buy at 1.0, 0.0 and if its 0.0, 1.0 then sell The biggest problem is the value returns 2 buffers in it, how do i compare if i want to buy, i know its 1.000000, 0.000000 but i cannot make use of this, please help
Bro...insted of Take profit fixed points, can we use Sell Condition for closing all Buy orders and vice versa....basically close all buy orders when sell signal comes and vice versa
I have found these three videos very useful in understanding how to use iCustom in an EA and thank you for your efforts. My question is if I were trying to use a custom indicator for a two-lines cross indicator--such as an Aroon Up and Down--would I need to use two iCustom calls, one for the Aroon Up line and another for the Aroon Down line, to be able to compare the Up value to the Down value? Also would I have to find a custom indicator that uses an argument for the Up value or the Down value and another argument for the number of candles back so that my EA can determine when there has been a crossover of the Up and Down lines and the 50 line? Do you know if such Custom indicators are likely to exist and/or where one might look for them?
First, thank you so much for all of your videos. You are a fantastic coder and teacher! I implemented this iCustom idea using an indicator that gives buy and sell arrows, and it works great, but there is an issue I am having trouble with. When my indicator gives a buy or sell signal the EA waits for the current bar to close before making the trade. This results in losing profit since my TPs are low. I tried commenting out the call to NewBar() thinking this would make it take the trade immediately, but it is still waiting for the bar to close. Am I not understanding something about the OnTick event handler? How would I make it take the trade in the middle of a bar?
If you have removed newbar then the code runs at every tick. My code looks at bar 1 because I expect to only open a trade on a new bar you may want to change that. Does your indicator show the arrows in the middle of a bar or only at change of bar?
@@OrchardForex The indicator prices in the buffer are right before (above or below) the opening of a bar. I modified the call to iCustom to send a 0 instead of 1 and it is taking the order mid-bar now. Thanks so much for your quick reply.
Been having trouble getting iCustom BBands to work in EA someone please explain it for me. At this point i dont have any error populating in journal or compiler however when i run tester it still will not show indicator and yes it does work as a stand alone indicator. it's very similar to the super trend indicator that you made.
Hi. I am search a whole week to find tutorial but result is nothing. Can you help and make a Tutorial for EA that, after confirm signal from indicator 1 cross wait for indicator 2 confirmation to open position? really need help, thank you, Best Regard
I don't know exactly what you are doing but check that you are getting the values for the same candle numbers and using the same inputs. The data will be the same from icustom and the indicator if you use the correct arguments.
@@OrchardForex Yeah I am getting values from index 1 its not a hard indicator just have 4 inputs I checked the inputs its ok but still the values are not coming same
Hi to all in Orchard Forex. I don't know programming and am new to this MQL4 EA and enjoying learning from your videos. In MQL4 I only check one symbol at a time but with 5 charts of different TF. 15min, 1hr, 4hr, D and M. So to go to another Symbol, I have to drag it one at a time to each sheet. Is it possible to make a script or EA using a button with selection of the symbol and it will automatically change the current charts to the new symbol in one click? Thank you very much if you can arrange this. TMArcher
If you are running an EA it should stop by default if you change currency. If you aren't asking about an EA and just want all of your charts to change to the same currency then see ua-cam.com/video/8gpOmQwJ9D8/v-deo.html
Hi Orchard Forex, could you let me know how to change the indicator name which was used for EA , i have MQL5 Source code for the EA , but how i can change the indicator name in the EA Please ? thank you
Thank you But My Indicator is in the EA not in Indicator Folder. EA works fine, but I can see the Indicator name in the Top left hand side chart. I need to “rename” the Indicator which is included in the EA, I don’t have to place the Indicator in the Indicator Folder as EA has coded with Sources code of Indicator it works fine, please help me to change name of indicator shown in the Chart (EA loaded )Left Top corner. Cheers
And I can't see ticket = everything what you have written in the second last line at 8.25 and ticket is not defined one of the errors which I am getting there also only coping your template is that ok ? To get error in just template !
@@OrchardForex sir please make a video of two different indicators cross over with each other,,on main chart,,,,,like a moving average and ichimoku,,,,crossover,, which is able to make trades on user input ichimoku lines,, and cloud's,,,,,,,
Nice clear instructions. Info I couldn't find anywhere else. Made my code with iCustom run 100x faster. I also like the template as a quick way to get an EA up and running.
Your work is invaluable, finally some really cool videos about mql4. I'm glad especially for the OOP stuff! Thank you!
Glad you like them!
Thanks, man, you made my day! Now I know how important is to find someone to explain the matter in my own words!
Thank you
Thank You very much ... I had a bug in iCustom and watching your video solved it for me ... again thank you !!!!
You're welcome!
I wish I could give you just 10 likes at once.
This video is the right package. I was about to learn mql4 programming and nothing was more clear than your video so far.
And man, my eyes thank you for the 1080p HD crystal clear screen recording.
Thank you so much, was hard to find simple example.... I think when you teach something new to some1, the best way is always with simple examples... Thank you!
You're very welcome!
I don't know how to give you 100 likes at once, but I can thank you 100 times
one of the best explanations on every key concept.. many thanks!!
I'm certainly both impressed and grateful for this video. Your matter-of-fact approach is refreshingly helpful.
My main objective is to read the output from 3rd party custom indicators (which I bought), combining with several other criteria for my own automated trading strategies. This looks like the way forward -- thanks :)
Thanks for sharing!
Excellent tutorial!
Thank you!
thanks a lot, sir. you posted the video as I requested.
Welcome!
Thank you so much for this great video. It was a blast to watch it. I have learned a lot.
At the same time, I have a question, regarding the notation of the 1st letter of the following variables (capital and small letter):
In the input part the variables "StopLoss" and "TakeProfit" are defined and in the "OnInit"-part calculated. In the "bool OrderOpen"-function you define "stopLoss" and "takeProfit" as double, but not giving them a value.
--> Does this mean they are 0 OR do they have the same values as the "StopLoss" and "TakeProfit" of the input part?
Hopefully, I could explain it well. 😀
They are different variables, case sensitive. It just means I will give them a value later but before they are used.
@@OrchardForex Thank you so much. This helps a lot. :) Please keep up your great work.
Thank you for the wonderful video. Is it possible to extract value from indicator if SetIndexBuffer is not defined or the value is not set?
I have an indicator with a lot of inputs, can I skip some of them? use default indicator ones and do I only need to set inputs that have number values
Thank you.
You can leave inputs at the end to default but not in the middle. So if there are 4 inputs you can supply 1 and 2 but not 1 and 3. Yes, you need to also supply strings, booleans, dates, etc.
in the data window, value1 shows 1.000000, 0.000000
If i print the value it is 1.0, how can i say it must buy at 1.0, 0.0 and if its 0.0, 1.0 then sell
The biggest problem is the value returns 2 buffers in it, how do i compare if i want to buy, i know its 1.000000, 0.000000 but i cannot make use of this, please help
iCustom indicator loading many time / every tick when I put write it in side "void OnTick()". how to fix it ?
Bro...insted of Take profit fixed points, can we use Sell Condition for closing all Buy orders and vice versa....basically close all buy orders when sell signal comes and vice versa
Yes, that just isn't part of this strategy but of course you can simply close trades when you get a reverse signal
I have found these three videos very useful in understanding how to use iCustom in an EA and thank you for your efforts. My question is if I were trying to use a custom indicator for a two-lines cross indicator--such as an Aroon Up and Down--would I need to use two iCustom calls, one for the Aroon Up line and another for the Aroon Down line, to be able to compare the Up value to the Down value? Also would I have to find a custom indicator that uses an argument for the Up value or the Down value and another argument for the number of candles back so that my EA can determine when there has been a crossover of the Up and Down lines and the 50 line? Do you know if such Custom indicators are likely to exist and/or where one might look for them?
2 values will require 2 calls. Use the buffer number to get different values from the same indicator.
First, thank you so much for all of your videos. You are a fantastic coder and teacher! I implemented this iCustom idea using an indicator that gives buy and sell arrows, and it works great, but there is an issue I am having trouble with. When my indicator gives a buy or sell signal the EA waits for the current bar to close before making the trade. This results in losing profit since my TPs are low. I tried commenting out the call to NewBar() thinking this would make it take the trade immediately, but it is still waiting for the bar to close.
Am I not understanding something about the OnTick event handler? How would I make it take the trade in the middle of a bar?
I also tried changing the last parameter to iCustom() to 0 and -1 but that didn't work either...
If you have removed newbar then the code runs at every tick. My code looks at bar 1 because I expect to only open a trade on a new bar you may want to change that. Does your indicator show the arrows in the middle of a bar or only at change of bar?
@@OrchardForex The indicator prices in the buffer are right before (above or below) the opening of a bar. I modified the call to iCustom to send a 0 instead of 1 and it is taking the order mid-bar now. Thanks so much for your quick reply.
I would not use the PSAR, but if I did I would exit the trade after 2 og 3 dots on the other side. Would that make the code more difficult?
More difficult because it would require counting the number of candles since reversal but not extremely difficult.
Been having trouble getting iCustom BBands to work in EA someone please explain it for me. At this point i dont have any error populating in journal or compiler however when i run tester it still will not show indicator and yes it does work as a stand alone indicator. it's very similar to the super trend indicator that you made.
Hi. I am search a whole week to find tutorial but result is nothing. Can you help and make a Tutorial for EA that, after confirm signal from indicator 1 cross wait for indicator 2 confirmation to open position? really need help, thank you, Best Regard
Great video, some really good info. Was wondering if I could get in contact with you as I need some advice
Use our contact form, www.orchardforex.com/contact-us/
Thank's for your Educational &Informative Video. If you can please make Video for multi currency pair. Thanks
Very good, excellent. Congratulations! Muito bom, excelente. Parabéns!.
Thank you
sir I followed your video and compile no error. when i backtested, it did not make any trade...whats wrong..?
There are too many possibilities with not enough information here.
Sar is not working,,,, working with to,and sl,but not with opposite trades close type Ea
I keep getting "2022.10.10 09:17:46.823 2022.10.07 11:00:00 MACDCustom US30,H1: OrderSend error 130" can you tell me why I keep getting this error?
Prices or lot sizes you are sending are invalid.
Hi I am trying to get value from HMA but value is not coming exact like it is on chart there is a difference in values when I print it on chart
I don't know exactly what you are doing but check that you are getting the values for the same candle numbers and using the same inputs. The data will be the same from icustom and the indicator if you use the correct arguments.
@@OrchardForex Yeah I am getting values from index 1 its not a hard indicator just have 4 inputs I checked the inputs its ok but still the values are not coming same
Hi to all in Orchard Forex. I don't know programming and am new to this MQL4 EA and enjoying learning from your videos. In MQL4 I only check one symbol at a time but with 5 charts of different TF. 15min, 1hr, 4hr, D and M. So to go to another Symbol, I have to drag it one at a time to each sheet. Is it possible to make a script or EA using a button with selection of the symbol and it will automatically change the current charts to the new symbol in one click? Thank you very much if you can arrange this. TMArcher
If you are running an EA it should stop by default if you change currency. If you aren't asking about an EA and just want all of your charts to change to the same currency then see ua-cam.com/video/8gpOmQwJ9D8/v-deo.html
@@OrchardForex Thank you very much. That is what I need. You are great.
Hello how do I convert a Tradingview indicator to my meta trader editor I want to use it in my EA??
Are you expecting me to say there is a magic button to do the cnversion? You have to go through the code and rewrite it.
What if the indicator have some objects like triangle and square? To show double top and bottom
You will have to read the object values with functions like ObjectGetDouble or ObjectGetInteger.
is Icustom part of Orchard forex? is it free or do I need to pay to use Icustom to create a few EAs?
iCustom is a built in Metatrader function
@@OrchardForex I am using MT4 for forex trading. Where do I see Icustom in the menu? Could you please provide a path to icustom?
iCustom is a programming function. It is not on a menu. See ua-cam.com/video/hXq5r7jy0HQ/v-deo.html
@@OrchardForex Thanks.
Hi Orchard Forex, could you let me know how to change the indicator name which was used for EA , i have MQL5 Source code for the EA , but how i can change the indicator name in the EA Please ? thank you
Explained in this video at 10:05, 12:55. Functions are different in MT5 but the technique is the same
Thank you But My Indicator is in the EA not in Indicator Folder. EA works fine, but I can see the Indicator name in the Top left hand side chart. I need to “rename” the Indicator which is included in the EA, I don’t have to place the Indicator in the Indicator Folder as EA has coded with Sources code of Indicator it works fine, please help me to change name of indicator shown in the Chart (EA loaded )Left Top corner. Cheers
Great👌👍
Thanks 😊
Can we combine 2 indicators in 1 EA?
I have a number of videos doing just that. Try the latest here ua-cam.com/video/EdeO9yJSz9c/v-deo.html
how did you copy script from direct indicator input menu
I'm not sure what you're asking. I didn't copy script, the iCustom indicators I used are already suppplied as example files with MT.
@@OrchardForex at minute 8.54 from where and how did you copy input there ??? What is the shortcut for that !!
And also at 9.55 minutes
And is it ok to get error while compiling that template I am getting 8 error coping your template
And I can't see ticket = everything what you have written in the second last line at 8.25 and ticket is not defined one of the errors which I am getting there also only coping your template is that ok ? To get error in just template !
Gold
Thank you
I mean close function is not working properly
My copy from the video is working and you haven't given any information on the problem so I can't help
@@OrchardForex sir please make a video of two different indicators cross over with each other,,on main chart,,,,,like a moving average and ichimoku,,,,crossover,, which is able to make trades on user input ichimoku lines,, and cloud's,,,,,,,
Yessir really helpful Thank you. how can i contact you boss , are you on Instagram or telegram ?
You can find us on discord orchardforex.com/discord
Is it possible to decompile ex4 to MQ4?