Best Practice Formulas
-
Hi,
I'm pretty new with fxDreema and so far love it.
Yesterday, I wanted to dive in a bit deeper and struggeled with formulas.Let's say I want to define a Variable:
Pivot = (Last Candles High + Last Candles Low + Last Candles Close) / 3How am I supposed to do that in a proper way?
The only thing I found was:a. Custom Code
b. Do two calculation at one step and combine multiple formulasAs for b. it is not easy to do more and more complex formulas (and understand them a week after)
Did I miss something?
Thanks
Mic -
To add:
Something like the attached screenshot seems not to work.
None of the values are filled. All are still and remain 0. -
Learning curve is steeper as expected.
I set the variables:

But they are running to infinity ...

The reference, directly added candle values in the comment box, is ok.
(showing yesterdays open low and high)......
2016-10-21 13_53_44-Wetter.png
2016-10-21 13_54_18-Forex Pivot.png -
Nooo, look at the white and orange circles on the left side of each input field in the "Variables" panel. If you put this calculation in the left (white) field, it will happen BEFORE the block does its job. That white circle represents the input of the block (which is also white) => the calculation happen in the input, when the block is called. Put the formula on the orange field and then the formula will run AFTER the block does its job, which is to set values to the variables.
mfuetterer, I also see another problem in your screenshot. You have put Variables in the Adjust fields. The result is like this:
Candle_Close = Candle's Close %(#FF0000)[+ Candle_Close]
This %(#FF0000)[+ Candle_Close] is the extra thing added because of the Adjust field. As you might expect, every time you run this block, the value of Candle_Close will increment more and more, because you are actually adding Candle's Close to its value.
-
Anyway, why don't you try this: http://prntscr.com/cxkx0a Well, set the timeframe to daily as well.
-
__Anyway, why don't you try this: http://prntscr.com/cxkx0a Well, set the timeframe to daily as well.[/quote:bw2psa22]
Because I wasn't aware of it

So much to discover.Thanks a lot for make the variable point clear.
Now I understand.Just want to say, that you've done a brilliant work.
Is it still getting new features?The most two thing I miss are:
- Undo
- Keyboard shortcuts (at least for copy and paste and delete)
Mic
-
- Click on this History link on the right side
- Delete is a good idea, but if you ask me, I don't believe that Copy/Paste is a good idea. I mean, I know some users that have giant projects with 700+ blocks, and most of these blocks are copy/paste groups of blocks, which is bad practice

In few days I will upload NodeJS version of fxDreema, because I decided to use this platform and I rewrote the whole thing + I changed the database as well. The forum will be NodeBB, which is the only forum I can find for NodeJS
New features... I don't know, even now people don't understand everything. Maybe it's better to make everything easier to work. Also, I think I have to write descriptions for most options in the blocks. I will also probably do some MQL4/5 code optimizator, because the generated output code needs to be cleared from unnecessary stuff.