That is much harder, you will need some custom coding.
Posts made by roar
-
RE: What is Terminal Variables?posted in Questions & Answers
-
RE: What is Terminal Variables?posted in Questions & Answers
Write the global variables with block "Terminal variables"
Read the global variables with block "Modify variables" - you should set a "normal" fxdreema variable for each global variable -
RE: Total profit reduces by x % then close everything.posted in Questions & Answers
You have to set the reverse as price fraction, though. Can be fixed

-
RE: candle conditionposted in Questions & Answers
use the candle ID field in the condition block
candle id 0 = current candle
id 1 = previous
id 2 = candle before id 1
and so on -
RE: Fibonacci Betting - how to reset?posted in Questions & Answers
I put together some manual fibonacci setup. It always resets when removed, unless you have a global variable which stores the fibo numbers. Lot size increases only when all trades are closed. Its just an example, needs further work

-
RE: Fibonacci Betting - how to reset?posted in Questions & Answers
Hmm, maybe it looks the trade history..
Or stores the value as Global variable - check F3, is there any global variables? -
RE: Fibonacci Betting - how to reset?posted in Questions & Answers
Well, I don't know how the "buy now" block's system works, are you sure it doesn't reset itself by default, when removed?
There's always the possibility of manually making your own fibonacci system, just some Formula and Modify variables blocks

-
RE: Pending stop ordersposted in Questions & Answers
You're welcome

I usually put a "delete pending orders" block before the "buy/sell pending order", so there is always maximum 1 open order (or 2 in this case) -
RE: Pending stop ordersposted in Questions & Answers
Something like this?
https://fxdreema.com/shared/BPdtW1XEb
What do you mean by vice versa, exactly? -
RE: What is Terminal Variables?posted in Questions & Answers
Global variables in MT4/MT5. These variables are shared across every chart on terminal. Hit F3 while in MT to see the global variables.
You probably don't need them, fxdreema uses different kind of variables
-
RE: Zero divide error and risk % of balance (Volume size depending on Stop-Loss)posted in Questions & Answers
It seems the EA fails to create SL in some cases - when SL is 0, error errror
-
RE: CROSS ABOVE CROSS BELOWposted in Questions & Answers
Right.
I personally use "once per bar" on my every ea, everything starts with that block. It has sooo many benefits -
RE: CROSS ABOVE CROSS BELOWposted in Questions & Answers
just put an "once per bar" block on top of your logic tree
-
RE: CROSS ABOVE CROSS BELOWposted in Questions & Answers
But you do understand, the ea runs on every tick
So if the body touches the MA, it has crossed crossed it at some time.
If you dont want it to act so fast, maybe use the envelopes indicator instead of ma?
You can also run the ea on every bar only, maybe it helps you in this case. -
RE: CROSS ABOVE CROSS BELOWposted in Questions & Answers
I don't know your trade opening logic, but maybe you should use the previous candle on closing - set candle id 1.
-
RE: CROSS ABOVE CROSS BELOWposted in Questions & Answers
Ok, well, that's strange.
I assume you mean candle height, width is always the chart period (M5, M30..)Try making a cross condition with two blocks:
- previous candle (ID1) is below ma
- current candle (ID0) is above ma
Does the trade close correctly with this setup?
-
RE: CROSS ABOVE CROSS BELOWposted in Questions & Answers
I didn't quite catch what you mean

But I think the "cross" system just compares the current candle and last candle:
if last candle close is below MA, and current candle is above MA, crossing must have happened.
^You can also do this with two simple condition blocks, without crossing condition -
RE: trailing stop/trailing profitposted in Questions & Answers
@ggrobot said in trailing stop/trailing profit:
- if it goes 2020 with trailing stop 20pips and 1 pip step that means that at 2021 the stop with me modified from 1980 to 2021 ???
Not exactly, if price is at 2020 and you have 20 pips SL trail, the stop is at 2000. When price is 2021, and your trailing step is 1, the stop is now 2001. If your step is 2, the stop moves to 2002 only when price reaches 2022.
Trailing profit is useful too, but it is all about your strategy, you have to do your own reserch about what is better.