Entry 20 pips over the 14 Moving Average Line
-
Hi, i need Help...i am search and search but I find nothing in the "Conditions" Block
.I need an Entry then the Candle is 20 pips over the 14 Moving Average Line, ist this possible?
THANKS
-
I think, i have found it:
"You can see "Adjust" on many places (Condition block and Condition-like parameters in other blocks). Write there something like "+0.0001" or even "+1pips", and it will add this to the value (for example, it will add 0.0001 to the Close(0))."
Is this the best Way?
Thanks
-
This is the way. Maybe not the best, but the fastest

-
T H A N K S and H A P P Y N E W Y E A R!
-
Happy New Year to you!

-
Another Question
Is it possible to set this parameter (Adjust) for Optimizing? In the Moment there is no Function to set this. -
This is not a simple parameter, this is part of the MQL4/MQL5 code. It's content is not just simple "123" or "iamvariable", it can be a complex formula. Input parameters of the EA are simple variables with their values. But you can define a Constant, it will become an input parameter for the EA, and use it in Adjust with it's MQL name.
-
The Problem is, what must i do to define a Constant?
-
I will suggest the description of "Condition" block
3 is not a correct value for "Adjust", because unfortunately, this input field cannot read our minds and it does not know what 3 is - 3 apples, 3 pips, 3 pips above, 3 pips below, 3 whatever.... -
-
Some guys are writing to me that the documentation is poor. From now on I will tell them that nobody reads it anyway
https://fxdreema.com/documentation/proj ... 0variables -
-
OK, if i use a Constant with Lot Size, TP oder SL it is no Problem, but here i become the follow Error:
(491,90):error 152:
adjust- some operator expected
esult: 1 error(s)....
-
Well, this is the problem with this field, it does not accept constants like this
Because you can write anything in there, and normally you write something like +0.010 or -0.020 or +2*10/100 or whatever. So if you want to use the constant there, write it's name manually. In your case +adjust.And no, constants and variables cannot be +0.0020, meaning that the + sign is addition operator
Only values are accepted and this is by MQL. -
Yes, my first EA runs
- thanks... but i have a last problem. In the 1 Minute Test the EA sell over the SMA14 (+2Pips) (all right!). The Problem is, then the Position Close by TP the EA open instantly a new Position %(#FF0080)__ the SMA14. This is wrong.Have you a idea? Thanks
(Project:"Tja")
-
You have Candle High > MA+2pips. Candle High stays high until the end of the candle, it will only become higher. Your MA is set to the close price, so what happens, I guess, is that Candle High is always higher that this MA.
Try with Candle Close instead.
You also don't need this "Once per tick" block, it is used for another scenario. This block is just a filter. Your blocks are already under the "on Tick" event.
-
Hi!
I'm trying to do something simillar but it won't work... I set buy orders if price is above EMA 100 (plus other conditions) but don't want the order to open if the price is only 10 pips above the EMA.. I tried it now multiple ways but it still doesn't work... I tried also the way it was explained at the beginning of this thread - set adjust...but as I see it on the trategy tester..the ea just ignores it...

So this is how I put it in...or am I doing it wrong? The ea just ignores it and still opens position when the price is directly on ema...
Any ideas?Thanks...
......
adjust.png -
+0.0010 will work better
This field is not aware of what type of value the operand is... and now that I am saying this, maybe it's not a bad idea if it can be aware 
-
Thank you...I also wanted to try this before..but then i thought...on EURUSD for Example..0,001 is really 1 pips..but what for ex.USDJPY..1 pips is 0,01 or do I understand this wrong - isn't it dependent on the currency? Or is the number here something else - different when writing a code for ea?
really don't know...?
