@l-andorrà Not sure to be honest, but I have been researching indiators a lot lately and ROC is mentioned by a lot of people especially for avoiding ranging markets but it's not something I have personally tried as its a custom indicator. I was just throwing ideas out 
Posts made by Ipod
-
RE: Avoid Range conditions for trend following setups onlyposted in Questions & Answers
-
RE: How the -period for the¨on Timer¨ event- option worksposted in Questions & Answers
Every 60 seconds it runs the blocks within the timer section.
-
RE: Avoid Range conditions for trend following setups onlyposted in Questions & Answers
You could use "ROC Rated of Change" indicator or a pair of envelopes
-
Calc to the power of? e.g 1.5^3 for expanding gridsposted in Questions & Answers
Hi
Trying to make an expanding grid calculation, but i need to calculate to the power of (number of trades) and cannot figure out if its possible in fx dreema.
For example, expand grid by 1.3 each trade, so 5 trades. So grid 100 x (1.3^5) = 371
Thanks
-
RE: trading start and end timeposted in Questions & Answers
Set your constants start_time and end_time to 15:00 and 18:00 or 15 and 18.
-
Count highest drawdown over time (Chart / pair only)posted in Questions & Answers
Hi
I'm trying to count the max drawdown over time in currency of a group of trades. For instance, i will run multiple pairs on an account but I want to have a counter on each pair bottom left to display the max drawdown it has achieved seperatly on each pair.
If anyone could push me in the right direction I would appreciate that, having a brain fart. So far I am only capturing one trades max dd.
Thanks
Variable "Equity Drawdown Count" = 0
1 - If "loop trades" profit is < than "Equity Drawdown Count"
2 - Print profit to "Equity Drawdown Count"
3 - Print comment "Max Drawdown" from "Equity Drawdown Count"https://fxdreema.com/shared/D9m6Efz9

-
RE: STOP AND REVERSE (No martingale) MT5posted in Questions & Answers
I suggest you learn from either Boxxocodes youtube or start going through the tutorials on the forum.
https://www.youtube.com/@Boxxocode
-
RE: Check Profit and Stop EA a Dayposted in Questions & Answers
@Ipod You're gonna have to do some leg work my man

-
[Tutorial] Daily Drawdown + Resetposted in Tutorials by Users
This is my method of using Daily Drawdown (in percent) which then closes all trades and prevents further trading until the next day. Many users have unknowingly helped me along the way so here is a small gift back to anyone who may find it useful. This really comes in three parts.
1: on Init - Run daily drawdown calculation (used when you apply the EA to a chart, otherwise the calc wont grab)
2: Once per day, run daily drawdown calculation and turn on trading (block 1)
3: On tick - Check equity if equal or below balance calc, close trades and turn off trading (block 1)There are some extra options in my setup, a counter so you can visualise daily drawdown hits in testing and also terminate terminal (if set to true). You can modify this to work as max profit for the day also.
https://fxdreema.com/shared/fcxGpeNKd


-
RE: Check Profit and Stop EA a Dayposted in Questions & Answers
Below is something I use for Max Daily Drawdown, you could modify this to work on stopping your EA on profit instead. Turn OFF BLOCK 1 is a block at top of my Buy / Sell string and then on the next day a new balance is taken and BLOCK 1 is turned on again.
It should be pretty simple to modify this to work once equity goes above your specified value.
Below is my calculation for Daily Drawdown Cut Off:
Assume balance is 100k
Balance x (drawdown in percent / 100)
100,000 x (3.5%/100) so 100,000 / 0.035 = 3500
Balance - max drawdown previously calculated
100,000 - 3500 = 96,500
Turn Block 1 on (allows trading, if previously stopped)Drawdown Check Condition on the right side.
Account Equity <= (equal or lower than previous calculation) 96,500
Close trades
Turn block 1 off (prevents new trades opening
-
RE: Advanced EA Frameworkposted in Tutorials by Users
Thanks for sharing, I see you have made good use of boxxocode's videos well
and made a nice base platform. -
RE: enum constantposted in Questions & Answers
This has been arnswered well in this post already. You should be able to make progress by studying that some more, simple enough when you get the hang of it.
https://fxdreema.com/forum/topic/16167/easy-way-to-make-enum
Looks like your constant is set wrong, your conditions are requesting 0 and 1 as identifiers so change your "exit_mode" from "fixed" to a "0" or "1".
Also no spaces in your "exit_mode_list" make it so it is like this "{fixed,break_even,trailing_stop}

-
RE: Simple block order ID questionposted in Questions & Answers
@ambrogio You know I've read the examples many times but not correctly it would seem, excuse my ignorance and thank you for highlighting that.

-
Simple block order ID questionposted in Questions & Answers
Hi
Just a quick one, the way my blocks are would Buy order block run first in completion, then order Sell block and third commen block as they are 1, 2 and 3.
Or do I need to have the first Order Buy block to go 1, 2, 3, 4, 5 etc to function correctly.
Thanks in advance.
https://fxdreema.com/shared/xIDvlRPqd

or alternatively do they need to be like this?

-
RE: Custom Max Formulaposted in Tutorials by Users
Thanks bro, took a while to figure it out but I got it working

-
RE: Create a Custom Max Formulaposted in Questions & Answers
How are you implementing this code, it does not work for me. Then again I am using mt5. Manage to get the link below work but if I can do this all without using the custom block feature that would be better.
-
RE: Spread variable troubleposted in Questions & Answers
Thanks, you are very helpful and active here, its a shame because I initially thought as it is collecting the data in that block anyway I would be able to just ping it to a comment somewhere.
Probably will just have to do some back testing and see if it functions correctly. Thanks again
