- Search Energy EXCH
- 35 Results
- Pett replied Mar 24, 2022
Hi Jean, Thank you so much for the code. It's working as expected and I can even get the index with the highest correlation and run further analysis. To be honest I wouldn't have come close to stripping down the problem as you did. I truly ...
- Pett replied Mar 23, 2022
Here you go. file
- Pett replied Mar 23, 2022
Hello all, I'm stuck trying to program dynamic arrays within a for loop. The goal is to have two dynamic arrays containing RSI values with an initial size of 8 and then apply a correlation function. If the correlation is > 0.5, break the loop else ...
- Pett replied Jan 6, 2022
Hi Jean, Thank you very much for taking the time and for the detailed explanation. Thanks to you I am now able to draw lines using both static and dynamic arrays. I truly appreciate your valuable input and wish you the very best. Regards.
- Pett replied Jan 5, 2022
Hello all, I am wondering if anyone can help me. I am trying to draw a series of horizontal lines from an array but so far no joy. Basically, I am attempting to loop through the array and draw a line at each price point in the array. double ...
- Pett replied Aug 21, 2021
Finally solved it. I created a new array, looped through the duplicating array and added the elements only if the index of an element was < 0 in the new array. Goes to show half the solution is how you look at the problem. I appreciate the time and ...
- Pett replied Aug 20, 2021
Hello all, I am having a bit of a problem and I could really use your help. I am trying to delete duplicate values in a dynamic array without relying on CArray. For instance; string Pairs[] = { "EURAUD", "EURNZD", "GBPCHF", "EURAUD", // <-- ...
- Pett replied Apr 25, 2021
Hello Jean, Thank you for taking the time to detail the issues with my code. Clearly I still have a lot of learning to do and I appreciate the guidance you have offered. To be precise, I meant that that I have never had to store counter values in a ...
- Pett replied Apr 24, 2021
Hello Jean, This is perfect! Exactly what I was looking for. I have never worked with counter buffers before, it has all been trial and error. Thank you so much, I truly appreciate your kind assistance here. Bless.
- Pett replied Apr 23, 2021
Hello @PaulMF If you have a moment, kindly have a look at this indicator and tell me what I am doing wrong. My aim is to count once when the RSI crosses 50 across a currency list. I have tried implementing your techniques as as much as I could but ...
- Pett replied Apr 19, 2021
Hi Paul, this is really awesome! Far beyond what I was expecting and opens up for me new coding techniques. Thank you so much for your kind assistance. I sincerely wish you the very best. Thank you!!
- Pett replied Apr 19, 2021
Hello Paul, Thank you for the feedback. I was hoping to programatically achieve something similar to Excel Solver on MT4 but clearly that is not feasible with multiple constraints. I think the easiest way is to implement the EA approach, with ...
- Pett replied Apr 19, 2021
Hello all, this is a follow up to my previous question and the feedback provided by @PaulMF. I am attempting indicator parameter optimization in order to find the most suitable inputs for trading the RSI indicator. So for the indicator, we have... ...
- Pett replied Apr 16, 2021
Hi Jean, thanks for the feedback. The thing is, I want to find the max/min values across different buffers. I think the ArrayMaximum function works only within an array(or buffer) so unless there is a broader use for the function that I am not aware ...
- Pett replied Apr 16, 2021
Hello all, I have a slightly weird question and will appreciate any feedback you guys can offer. So I have eight buffers; RSI1[], RSI2[], RSI3[], RSI4[],RSI5[], RSI6[], RSI7[], RSI8[]; I would like to find the maximum and minimum values across all 8 ...
- Pett replied Nov 24, 2020
Hi Mntiwana, thank you for taking the time. I was actually looking for a way to implement RSI/BB in an EA using arrays. I finally found a solution which I detailed in Post #41,782. Regards.
- Pett replied Nov 24, 2020
Alright, so quick update to the question I had posted earlier. For anyone who'd taken an interest, it turns out that ArraySetAsSeries() is actually quite important for obtaining the correct values. MQL4 documentation is not quite clear on this and ...
- Pett replied Nov 24, 2020
Hello all, I am trying to combine RSI and Bollinger Bands within an EA but I seem to be running into a weird problem. When I combine the default RSI with Bollinger Bands using Previous Indicator's Data or within an indicator (see attached) , I ...
- Pett replied Oct 27, 2020
@BlueRain, this is Brilliant!! I hadn't even considered using different modules/functions for pattern detection. Your approach is way more easier and straight forward. Thank you for pointing me in this direction.
- Pett replied Oct 27, 2020
Hello @BlueRain, thanks for the feedback. I was originally using one loop for this but since the number of candles in the pattern varies (2 to 20) I was hoping there would be a simpler way to express this in loop(s) form rather than define each ...