You can do that by using 'turn on/off' blocks depending on the option selected. However, you will have to build as many separate block trees as potential combinations of MAs selectable. That's a complex structure to build. Are you familiar with those blocks?
Posts made by l'andorrà
-
RE: How to add option to turn ON-OFF MA'sposted in Questions & Answers
-
RE: Fixed SL / Break Even / SL Trailing Assistance Pleaseposted in General Discussions
@Vortrexcian You are very close. This is what you need:

-
RE: Odd and Even Numbersposted in Questions & Answers
I know there is a custom code formula doing that, but I'm afraid that's not my filed of expertise. Probably jstap will know.
-
RE: Time optimization Strategy testerposted in Questions & Answers
You can create constants for hours and minutes, if that is what you need. Then you can use the components form on the 'time filter' block.
-
RE: Ignore sunday bars for calculationposted in Questions & Answers
What calculation are you thinking about specifically?
-
RE: How to add option to turn ON-OFF MA'sposted in Questions & Answers
Do you mean you should choose any combination of MAs to be used at will, right? So for example if you are using a maximum of 3 MAs (A, B and C) you should be able to choose any of these options.
- A alone.
- B alone.
- C alone.
- A, B and C combined.
- A. and B combined.
- A and C combined.
- B and C combined.
Is that what you want?
-
RE: Square Rootposted in Questions & Answers
@nachoboy You can use the greu 'Custom mql code' block and add it to any block tree you need. However, if you're not used to using it, you should try a smaller test bot with the function only before adding it to your global project.
-
RE: Hello, I want to create an expert advisor. First, it opens a buy deal when it is placed on the chart. Second, every time when the price drops 100 points from the deal you opened, we open another buy order with a double contract size.posted in Questions & Answers
@MD10MK You can begin with this initial structure:
https://fxdreema.com/shared/vX6Vojm6
But there is no limit for the doubling to happen. You will have to add conditions to begin the new sequence of trades with the initial lot size.
-
RE: Please how to find the day of monthposted in Questions & Answers
@jstap Wouldn't the option selected on the first post do exactly what your custom code does?
-
RE: Average Spread +x% Filterposted in Questions & Answers
I'm not a programmer, so I cannot provide any help on that, but you can use a variable with standard fxDreema blocks to get that. However, the final structure will be very heavy in programming terms. I don't know if that would help.
-
RE: SCALING IN ON A PROFITABLE POSITIONposted in Questions & Answers
@NZEFILI This is the second thread you created for the exact same question, Please don't duplicate threads.
-
RE: What could be the problem because it buy and sell sametime?posted in Questions & Answers
The problem is those 'OR' blocks. They are positioned in a way that ANY true condition on the buy side will open a buy whereas ANY condition on the sell side will open a sell. They don't need to be the same condition on both sides. Just any combination on any condition on both sides will do that. You need to reestructure your logic blocks.
-
RE: SCALING IN ON A PROFITABLE POSITIONposted in Tutorials by Users
@NZEFILI This is what jstap means exactly (for buys only)
: -
RE: Account rechargeposted in Questions & Answers
@mohamad-rahmati7878 In order to make crypto payments work faster you need to contact the admin directly and let him know.
-
RE: How can i find highest price from specific time. e.g 21/11 21:45 to 22/11 03:50posted in Questions & Answers
@sepek jstap is right. That is the way to do it.
-
RE: i have a question.posted in Questions & Answers
@mohamad-rahmati7878 You can use the turn ON/OFF blocks in a structure like this:
https://fxdreema.com/shared/C5DLuktD
In my example trades will be closed at a specific daily profit. You can do the same for a loss by modifying the appropriate value of the variable.
