Question regarding the "adjust" field
-
In the adjust field inside the Condition block is it possible to enter "*(-1)-30"?
Thank You
-
yes you can this, without quotes ...
-
Thanks Miro,
Do you know if l can use a constant in the adjust field instead of a number like: +Profit/-Profit
Instead of +30/-30 -
yes you can ... you can use some words like pips to make this
+10pips
this adds for reference value +10pips, which is for EURUSD +0.0010 or for GBPJPY +0.1
... I dont know all this words, only this pips, maybe there are more ...
you can use some functions as well .... like *(NormalizeDouble(yourVariable,0)) ... or *(MathAbs(yourVariable)) ....do some research and try most of what you are asking, it would be probably faster reply for you

-
Thanks Miro! I will look into it...
-
If something like "+10pips" is used, note that this "pips" keyword works because of fxDreema, it's not something from MQL4/5. This keyword is actually replaced with some MQL4/5 code that makes it possible to convert 10 to something like 0.0010. In this code the symbol parameter is used, that symbol that is used just above the Adjust field. So the end result might be 0.010, depending on the symbol that is used.
There is another keyword "%", so you can do "*10%" for example.
"+10 pips" will not work, because in this situation the word "pips" looks like a valid variable, while "+10pips" is normally wrong MQL4/5 code.
Everything else in "Adjust" can be MQL4/5 code.
-
Thanks,
So am I right... in order to use "+10pips" in the Adjust field l must specify the symbol first? -
you dont need specify symbol, leave symbol free, it is loaded automatically from chart info (from chart where EA is located)
-
By default the symbol (Market) is set to empty in all blocks - this means the current symbol, the symbol of the chart where the EA is placed. If you write something specific, only then some other symbol is used in that particular block only