Thank you bk7 for the suggestion.
It seems this workaround works. It just opened 0.2 lots order.
For anyone who has the same issue, this worked for me:
Thank you bk7 for the suggestion.
It seems this workaround works. It just opened 0.2 lots order.
For anyone who has the same issue, this worked for me:
@fxdreema thank you for the response.
(With % of equity it worked but it’s not exactly what i want.) LE: it may have worked in a version for mt4, i don’t remember very well.
The simbol is SPX500 on mt5, icmarkets.
I am testing it on a small real account of 200 EUR.
The other order at 14.00 hours is opened correctly.
This is the message in the journal:

That 0.1 trade is opened manualy
@tipsywisdom thank you. I have eliminated the calculation and it stil tries to open 250 lots.
shared project. thank you.
https://fxdreema.com/shared/4icrQOqqe
I have a version in MT4 with the same variables and formulas and it opens correctly. It might be something specific to MT5 but I have no idea what.
Hello,
I have below scheme.
The box on the left tries to open 250 lots the box on the right opens normaly (around 0.2 lots).
Please, what am i doing wrong? It's driving me crazy. Thank you.

you are right
simple issue but i couldn't see it
thank you very much
Hello friends,
i am experimenting with various things and i want to open some positions with this section of blocks.
it doesn't work. if someone could take a look and tell what am i doing wrong, please.
LE: i assume it's because of ADX but i have no ideea what i'm messing up.
I think i had the same question, please check this: https://fxdreema.com/forum/topic/8693/double-crosses-condition/4
Hello friends,
I have a question please. I know this question, probably, hasn't been asked before but how can i have a block or group of blocks that gives random signals? The 'Random outputs' block seems to give only alternating signals, at least in back testing.
The reason i need this, I want to experiment with different risk management ideas and to know they work and improve on them i need the most gambling-ish entry signals possible.
Thank you,
A
@trader-philipps you are right and it works as i described.
thank you very much for your time and patience to explain to me. as you, for sure, can tell i am just starting with fxdreema and i am not that very technical person. i greatly appreciate your help.
@l-andorrà and @trader-philipps thank you both very much.
i have reached to this version which shows some results and even some profit https://fxdreema.com/shared/HB8LdSnce (there is also a trailing section that is not included here).
however, looking at the backtest there are some missed signals and all the entries are after quiet periods.
i think i am using macd wrong. should it check for signal line crossing main line or main line crossing 0 value?
thank you for answering me trader.philipps
i am not sure i understand. you mean to use the width to 3 for both and use both conditions with 'and'?
something like this? https://fxdreema.com/shared/ncNBdXCyd
if yes, it does not work.
Hello friends,
I have a small bump that i can't get over and i need some help please.
I am trying to create a simple EA (an example from babypips) when the 10EMA crosses 20EMA and MACD signal line crosses the main line.
The crosses can happen within a span of 3 or 4 bars and any of the two conditions can come first.
Here is an example (green area is a valid signal, red areas are not valid signals since both conditions are not met):

The only logical thing i could come up with is in this example where it checks if the 10EMA and MACD are in buy or sell positions and if the signals were in opposite position 4 bars behind. it seems logical to me (as a new user) but it does not generate any signal. Maybe i am arranging the them wrong, maybe it can be done in a different way.
https://fxdreema.com/shared/ZXJbCFndc
Please help, thank you,
A
@trader-philipps thank you,
i will use it mostly on 2 digits pairs (penny stocks). it works perfect if i multiply with 10.
i will try it now.
thank you @trader-philipps ,
that does something but i am just a novice user and probably i don't use it correctly.
it gives a sl of just a pip or two.
just to be sure, for 'stop loss mode' do i need to select 'custom (pips)'?
thank you,
A
LE: if i multiply it with 10 it gives me the ATR value '*MathPow(10,_Digits-1)x10'
I have another question please how can i use a constant and the MathPow in the adjust field, something like '*MathPow(10,_Digits-1)x[multiplicationfactorconstant]'
thank you very much,
A
Hello,
Does someone know how i can set a stop loss based on Average True Range indicator?
The problem is the returned value of ATR is in money not pips and the input for stop loss is pips or price level.
I also couldn't figure out how to do it with variables.
Thank you,
A
Hello,
I would like to ask for some help please.
I want one simple EA to be able to recognize a new top or bottom in a series of candles. No calculations, no fancy stuff, just to give a signal when a new top/bottom has been reached in a series of n candles.
I thought that "New top/bottom in trend" would solve my issue but I think that these blocks don't work like that.
My coding skills are close to 0.
Is there another indicator that I missed or another way to achieve this, maybe with variables?
Thank you,
A
LE: never mind, i found in the mean time. the solution is in condition block i need to put price > or < 'market properties' and select 'highest price' or 'lowest price' and the candles ids.