I actually do know how to create iMA handles and get values for them. I also coded the EA I wanted. I then incorporated your code for "Difference of Two iMA Formula" indicator into my code. Works well.
Then I realized, I needed to use the values of the "Difference of Two iMA Formula" indicator line to close trades. But this is a custom indicator so I don't know how to manipulate.
Below is a screenshot of the Custom indicator in action and the formula I chose here is the "F_1" option or the "fast/slow" . You can see the difference between the Two iMAs in the attached screenshot is 0.00000. Now, I want to use this "0.00000" to close positions. Like if value exceeds "0.00000", close trade. Or For instance like if difference of the 2 iMAs is greater than 0, close trade .
I think I haven't been explaining my problem clearly in the previous comments. I apologize.
Seleucus # : I actually do know how to create iMA handles and get values for them. I also coded the EA I wanted. I then incorporated your code for "Difference of Two iMA Formula" indicator into my code. Works well.
Then I realized, I needed to use the values of the "Difference of Two iMA Formula" indicator line to close trades. But this is a custom indicator so I don't know how to manipulate.
Below is a screenshot of the Custom indicator in action and the formula I chose here is the "F_1" option or the "fast/slow" . You can see the difference between the Two iMAs in the attached screenshot is 0.00000. Now, I want to use this "0.00000" to close positions. Like if value exceeds "0.00000", close trade. Or For instance like if difference of the 2 iMAs is greater than 0, close trade .
I think I haven't been explaining my problem clearly in the previous comments. I apologize.
Do you need an example of working with a custom indicator? Then you need to use the iCustom function to create the handle.
Do you need an example of working with a custom indicator? Then you need to use the iCustom function to create the handle.
I'm lost. I read up on how to use the iCustom () but most of the examples I saw only have 3 input parameters. I'm trying to use values of the Two iMA Formula custom indicator you showed me. It has 9 input parameters. I filled them in the iCustom (...) that I created in my EA . When I compile and test in the strategy tester I get two errors. Cannot load indicator'moving average' [4002] and failed to create handle of the iMA ('fast') error code 4002.
Seleucus # : I'm lost. I read up on how to use the iCustom () but most of the examples I saw only have 3 input parameters. I'm trying to use values of the Two iMA Formula custom indicator you showed me. It has 9 input parameters. I filled them in the iCustom (...) that I created in my EA . When I compile and test in the strategy tester I get two errors. Cannot load indicator'moving average' [4002] and failed to create handle of the iMA ('fast') error code 4002.
This is how I filled in the parameters iCustom
Do give me feedback on how I can make it work
If you have a question about an indicator that is published in CodeBase - please ask your question in a special discussion topic for this indicator (each code from CodeBase has its own special discussion page).
If you have a question about an indicator that is published in CodeBase - please ask your question in a special discussion topic for this indicator (each code from CodeBase has its own special discussion page).
I'm new to this and didn't know there are different pages for different topics. secondly since you are the author of this custom indicator. https://www.mql5.com/en/code/38978 please show me with an example how to get values from your custom indicator. I can create a handle for it and call it using iCustom but getting values from it has been a headache. I have scoured through pages of people asking similar stuff but none of their examples or solutions they got has helped. I have also read documentation in the links you have been attaching. I have gained lots of insight but ultimately they have yielded nothing. just show me an example based on this specific custom indicator since I feel this is a unique indicator you coded and other examples out there just aren't similar.
I'm new to this and didn't know there are different pages for different topics. secondly since you are the author of this custom indicator. https://www.mql5.com/en/code/38978 please show me with an example how to get values from your custom indicator. I can create a handle for it and call it using iCustom but getting values from it has been a headache. I have scoured through pages of people asking similar stuff but none of their examples or solutions they got has helped. I have also read documentation in the links you have been attaching. I have gained lots of insight but ultimately they have yielded nothing. just show me an example based on this specific custom indicator since I feel this is a unique indicator you coded and other examples out there just aren't similar.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Example: Very Simple Intersection iMA Open Position
I actually do know how to create iMA handles and get values for them. I also coded the EA I wanted. I then incorporated your code for "Difference of Two iMA Formula" indicator into my code. Works well.
Do you need an example of working with a custom indicator? Then you need to use the iCustom function to create the handle.
Do you need an example of working with a custom indicator? Then you need to use the iCustom function to create the handle.
I'm lost. I read up on how to use the iCustom () but most of the examples I saw only have 3 input parameters. I'm trying to use values of the Two iMA Formula custom indicator you showed me. It has 9 input parameters. I filled them in the iCustom (...) that I created in my EA . When I compile and test in the strategy tester I get two errors. Cannot load indicator'moving average' [4002] and failed to create handle of the iMA ('fast') error code 4002.
If you have a question about an indicator that is published in CodeBase - please ask your question in a special discussion topic for this indicator (each code from CodeBase has its own special discussion page).
If you have a question about an indicator that is published in CodeBase - please ask your question in a special discussion topic for this indicator (each code from CodeBase has its own special discussion page).
I'm new to this and didn't know there are different pages for different topics. secondly since you are the author of this custom indicator. https://www.mql5.com/en/code/38978 please show me with an example how to get values from your custom indicator. I can create a handle for it and call it using iCustom but getting values from it has been a headache. I have scoured through pages of people asking similar stuff but none of their examples or solutions they got has helped. I have also read documentation in the links you have been attaching. I have gained lots of insight but ultimately they have yielded nothing. just show me an example based on this specific custom indicator since I feel this is a unique indicator you coded and other examples out there just aren't similar.
I'm new to this and didn't know there are different pages for different topics. secondly since you are the author of this custom indicator. https://www.mql5.com/en/code/38978 please show me with an example how to get values from your custom indicator. I can create a handle for it and call it using iCustom but getting values from it has been a headache. I have scoured through pages of people asking similar stuff but none of their examples or solutions they got has helped. I have also read documentation in the links you have been attaching. I have gained lots of insight but ultimately they have yielded nothing. just show me an example based on this specific custom indicator since I feel this is a unique indicator you coded and other examples out there just aren't similar.
I posted an example.
I posted an example.