Formula Result
-
Formula Result is gone as a Condition option. All my projects with formulas are affected.
-
Fixed. It's now Value -> Numeric. There will be no "Formula" selection in "Condition" anymore, because the block "Formula" will write it's values in a regular Variables that must be manually defined.
The first reason for this is because it's easier for me to have it in the code, it's much simpler than before. And the orher reason is because people tend to use Formula results in very bad way - when they create a Formula block, they just leave it's result name how it is, and I have seen many projects with many Formula blocks, each one of them creating it's own Formula result. I can't understand how such projects work, I can't imagine how people work with them. So now each Variable must be manually written, which means that the person will take a little bit more care of the way it is named, so later when he opens his project he will immediately know what that Variable means and for what it is used.
I still don't like "Formula" block because it is too simple, but I'm not sure how to make it better, so if you (or anyone) have some idea, I'm here to listen
My goal is to make this block able to do multiple calculations, not only one. -
Dear fxDreema,
I have a question, just to make sure i fully understand the formula.
If I want to add +1 to a result formula whenever a certain condition is fullfilled , do I just connect the condition (Orange) to the Formula (White) ?
And can I make 2 different results formulas and later on compare between the two?
I will highly appreciate an answer and additional guidence.
Thank you very much.
Izik -
What "Formula" block does is simple mathematical operation using two values (on the left and on the right) and then it writes the result in some Variable (the one you put in "Put the result into this Variable). After that you have new value in this Variable.
Variables can also be incremented with "Modify Variables", like this http://prntscr.com/9egdkr or with "Custom MQL4 code".
-
Would be great to have a free formula block where we can write some mql4 code
area for some lines of free code (hints apprecheated for the existing variables / constants / MQL4 keywords)
last line must be an assignment like
[ResultVariable = ] some free code.
the User must define the Name of the ResultVariable