Monitor and display value fluctuations on the graph.
-
Hello friends I want to find out what was the highest Drawdown value that my EA reached at all times, but I want this to be displayed in real time when my EA is in backtest or demo and real account.
For example, I have eurusd, usdchf and nzduse negative at -11 $ and some seconds it is negative at 20 $ so I want my EA to display a message saying on the graph.
The maximum amount your account is negative is $ 20
The same I would like to do for earnings as well. -
@ontrade The most effective way to get that is by using a custom indicator doing exactly that. Then import it into your fxDreema account to include it in yoor project. Trying to do it with fxDreema blocks can be simply terribly painful.
-
@l-andorrà I did not get any indicator that provides me with this information.
I thought about doing the following, but I don't know how to do this in the fxdreema blocks.- Record the value of the gain / loss that is fluctuating at all times in a variable.
- Save this value in another variable as an old value.
- Create a condition to compare if the new value is more negative than the old one, if it is, it prints or updates the last value on the screen.
@roar any idea about this?
-
@ontrade That is technically possible. The problem is when a new price is considered to be stored into that variable. When would that happen? Every single tick? When a new candle is open? Depending on the option the structure can be very complex.
-
@l-andorrà Hello my friend.
My idea would be to show on the graph only the value that was most negative.
Every time the value is negative and it is a value greater than the previous one, example:
I'm negative at -10 $ to 1 tick ago
On the next tick I was negative at -20 $
So these -20 $ should remain fixed until it is exceeded, for a larger amount, for example -30 $ or -40 $ and so on. -
@ontrade Then you need a loop searching for those values. I'm afraid loops are not my field of expertise. I recommend you to ask for roar's help. He's really good at them.