Negative numbers
-
Dear Coders,
I am new in coding and have a lot of questions. Thank you for your help.
Here the newxt question:
How can I ,ake a negative numer to a positiv number.
For example: value= -3
I need this value = +3Best regards,
Martin -
Hi martin 1
I guess that you use the "Search" tool of the forum to find interesting post that probably will answer your questions. For example, here you have a post explaining the "Adjust" field that is available in almost all the blocks
https://fxdreema.com/forum/topic/4247/question-regarding-the-adjust-field

In addition to this, the adjust field has a "?" character. When you click over it, you will get some examples of what you can do with this field. For what you are requesting, you just write "*(-1)" without quotes in that field to get the positive number you need. In the example above, the ajust field calculates the 2% of the value of the constant "ProfitTargetM1_Sells" and the result is stored in the variable called "BEOffsetPips".
You also can use the "Formula" block that allows to code from the basis of the math functions to more complex ones.

-
Hello Jose,
some solutions are too simple to see it at the first view!
Thank you very much!!!! I am using FXDreema the 2nd day now...... and I really like it!
Best regards,
Martin