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
Thanks for that RaptorUK, however it is the actual coding that I am having difficulties with. I am very new to MQL4, and have only been doing it a couple of months, and am still learning - so I am needing a simple explanation of the coding and how to set it up in the indicator.
No you can't. I just tried it. It won't compile if you leave out one of the parameters by just leaving an empty place between the commas.
I knew I should have correct the last statement. Take-out the comma's for the parameters.
I just complied this Indicator as TOR.mqh within my Indicator Folder. Then I wrote the following Code in the Expert Folder.
It complied fine for me without passing any parameters.I just complied this Indicator as TOR.mqh within my Indicator Folder. Then I wrote the following Code in the Expert Folder.
It compiled fine for me without passing any parameters.But does it actually work?
Thanks for your help guys, Ill have a look tomorrow night and see what I can figure out.
Thanks
Hey Guys. I still seem to be having some difficulty.
Here is the code, in the indicator ( I Have not changed anything in the indicator), I am showing what I think is the relevant part. Please note that these do not follow each other in the indicator, there is lots more that I have stripped.
Now here is the code in the EA
What I don't understand is the parameters part. What values do I put in here? This is the part which I am struggling with. I am wanting to use the values of the STDBuffer and stddevma in a test further down the EA. For example, do I include Pair1 (which is elsewhere in the Indicator declared as the current chart)? As its already declared as Null at the start of iCustom.
Also, is there any way to physically see what values are being sent to the EA?
Any help would be greatly appreciated.
Thanks
Here is the code, in the indicator ( I Have not changed anything in the indicator), I am showing what I think is the relevant part. Please note that these do not follow each other in the indicator, there is lots more that I have stripped.
Now here is the code in the EA
What I don't understand is the parameters part. What values do I put in here? This is the part which I am struggling with. I am wanting to use the values of the STDBuffer and stddevma in a test further down the EA. For example, do I include Pair1 (which is elsewhere in the Indicator declared as the current chart)? As its already declared as Null at the start of iCustom.
You have not shown the relevant parts of the indicator. You need to show all the extern statements AND the order in which they occur.
You need to show all the SetIndexBuffer statements. When you understand why you need to show these you will probably see what you have to do.
Oh, and you can't have blanks in between commas in the iCustom statements; it won't compile.
Try re-reading the iCustom documentation, taking into account it was originally in Russian. You have to study it carefully.
You have not shown the relevant parts of the indicator. You need to show all the extern statements AND the order in which they occur.
You need to show all the SetIndexBuffer statements. When you understand why you need to show these you will probably see what you have to do.
Oh, and you can't have blanks in between commas in the iCustom statements; it won't compile.
Try re-reading the iCustom documentation, taking into account it was originally in Russian. You have to study it carefully.
Thanks Dabbler. I have attached the full EA and Indicator. I have read the statements on iCustom, and understand everything apart from the parameters part, it is extremely vague. The EA is very cut down thou, as I am only testing at the mo.
Thanks,
Mike.
Indicator:
EA:
Please ignore the fact that the EA is doing the job of an indicator, as I said, I am testing at the moment.
Thanks Dabbler. I have attached the full EA and Indicator. I have read the statements on iCustom, and understand everything apart from the parameters part, it is extremely vague. The EA is very cut down thou, as I am only testing at the mo.
Thanks,
Mike.
Indicator:
EA:
Please ignore the fact that the EA is doing the job of an indicator, as I said, I am testing at the moment.
You had have some great advice here and still you are struggling....
To know how iCustom works with your indicator you can make a helpEA or helpIndicator to check what is inside the buffers of the indicator
This way you learn the most about checking commands in MT4. Read here https://www.mql5.com/en/forum/138379
make something like that and you will learn how to use it..... in the EA's you wanna make