Adding multiple formula results together easily
-
Hi,
Is there an easy way to add multiple formula results together easily, e.g. 1 + 1 + 1 + 1?
Currently the only way I can think to do this is to do the first formula and they carry the result over to the second and so on. But this doesn't really work with what I'm trying to do.
Cheers
Cam
-
You can do math in all input fields in all blocks. "Formula" block is used when you want to get some value from the available toolset in fxDreema, but you can always go deeper and work with pure MQL4/MQL5 code everywhere
-
Thanks, I'll take this new approach and see if it fits what I'm trying to do.
Cheers
-
Hi again, I can't seem to get over this hurdle.
It may help if you view the project first: just check out the one called "Candy EA v1.1" and the Area called "Buy Trade Entry - Different Patterns".
Here's what I'm trying to do:
- Enter a buy trade after the following has happened:
- within the last X (PatternsBarsBack) bars X (NumberOfPatterns) number of candlestick patterns have been formed (I'm currently working with 3 patterns but will add several more when I have sorted this out)
At the moment I'm trying to count the patterns within the last X bars and then when the count number matches the Constant Input "NumberOfPatterns" it places a buy trade.
Is this enough information for you to check to see where I'm going wrong? I've tried Counter, Formula and Modify Varialbes blocks and keep going round in circles.
Any help much appreciated.
Cheers
Cam
-
No worries, I worked it out using Mod Variables and Values in the end... taxing on the brain!!
