@roar I see. Thanks for your input, it is much appreciated!
Best posts made by rafaels919
-
RE: Is there a way for the "Close trade" block to Not be counted as a Loss by the EA?posted in Questions & Answers
-
RE: Help needed in modifying values in a sequenceposted in Questions & Answers
Hi @roar , thanks for your response!
How do I modify the "sequence on loss"?

Changing the "seq[]" variable didn't change the sequence in the EA (which is set to 1,2,3,4,5,6 somehow):

Also, how do I make a shift to the previous value in the sequence?
( This function is important, as long as this works and I can freely utilize it using conditions and what not, having "one block" is not that important) -
RE: Help needed in modifying values in a sequenceposted in Questions & Answers
@trader-philipps
Let me know if I get this right.- So the sequence string that is in the Constants is converted into 6 separate parts, seq[0]... seq[5]
- What is the Variable "seq[]" used for?
- And the "loses" variable is the consecutive losses counter - and if I set it to 3 for example, it will shift back one value, right?
So let's say the sequence is: 1,2,3,4,5,6 - just as in @roar 's project.
If the "loses" variable is set to 3, and I lost the third consecutive trade (value "3" from the array^) - then it won't proceed to value 4, instead it will repeat the value 3 once -> is this correct?- What is "seqLen" for?
I think I need to know what each variable is for to understand the logic behind the setup.
-
RE: Help needed in modifying values in a sequenceposted in Questions & Answers
@roar I see. So I can use the "Modify Variables" block and change the "loses" variable -> and it will revert to that value from the array and continue from there, right?
I will test that thoroughly a bit later with other conditions, so far I noticed few issues:
-
When it loses 6 times in a row (full array length) it doesn't reset and stops working completely.

-
It skips second value from the array (0.02=0.01*2) from time to time, not sure why:

-
It also reverts back to the third value sometimes, which doesn't make sense (from 0.06 to 0.03):

PS: used your latest version. Didn't edit anything.
-
-
RE: Help needed in modifying values in a sequenceposted in Questions & Answers
Awesome, it shifts back now. @roar
I might have found another bug though:
The "base volume" bet is being skipped from time to time (0.01):Skipped>:

Not skipped>:

I sent you a PM @roar
Either way, you done a great job figuring this out. I appreciate the help!Thanks to @trader-philipps as well.
-
RE: Help needed in modifying values in a sequenceposted in Questions & Answers
Is it possible to not use the "yellow" block output?

The second "Modify Variables" block is connected to the yellow output, but some of the other blocks on fxdreema have only a red output. Would be great to have this work with red output only. -
RE: Help needed in modifying values in a sequenceposted in Questions & Answers
Alright, so I've replaced the indicator and adjusted the condition for the shiftback (so it triggers starting from 2nd loss) and this seems to work now :

Latest posts made by rafaels919
-
"Open Parenthesis Expected" compiling error in MT5posted in Questions & Answers
Hi Everyone,
Can anybody help me out with the following code for MT5. I'm not a programmer, but I think it solves the issue of having different pip values for brokers that have different number of digits in their charts (e.g. 0.0001 or 0.00001)//++++ These are adjusted for 5 digit brokers. double pips2points; // slippage 3 pips 3=points 30=points //double dPips2dbl; // Stoploss 15 pips 0.0015 0.00150 //int Digits.pips; // DoubleToStr(dbl/pips2dbl, Digits.pips) if (Digits == 5 || Digits == 3) { // Adjust for five (5) digit brokers. dPips2dbl = Point*10; pips2points = 10; //Digits.pips = 1; } else { dPips2dbl = Point; pips2points = 1; //Digits.pips = 0; }It compiles fine in MT4 - but I'm getting the following error when compiling it for MT5. Could it be a sintax issue?:

-
RE: Finally , Integration of News Filter :) [ MT4 Only ]posted in Tutorials by Users
@zedeai2 Nothing to do with the internet connection.
In my case, the EA just ignores the blocks that check the news:

No error in the journal. It just executes the buy orders.
-
RE: Finally , Integration of News Filter :) [ MT4 Only ]posted in Tutorials by Users
@zedeai2 @ambrogio
Hey guys, I followed all steps but neither of these projects worked for me.https://fxdreema.com/shared/sSJwC65Ob
https://fxdreema.com/shared/twV9ZV9zbI didn't edit anything in the project, the News lines are still not showing.
I pasted the code in the global scope:

I also added the web links to the Allowed Request URL's list:

Am I doing something wrong or missing a step?
-
RE: "Candle Low/High" parameters don't workposted in Questions & Answers
@l-andorrà Thanks, that actually worked. If anyone else is having the same issue, here is how you can store the Highs and Lows in a variable:
Use "Formula" block and multiply the High/Low parameters by 1 -> then store it in a Variable

Project Link: https://fxdreema.com/shared/Og0SFuf4c
-
RE: "Candle Low/High" parameters don't workposted in Questions & Answers
@l-andorrà That won't work. "Above/Below" would discard the Highs and the Lows and would enter a trade at any current price.
-
RE: "Candle Low/High" parameters don't workposted in Questions & Answers
Pausing and Resuming work fine, but the trade is not being initiated at the High/Low for some reason.
-
"Candle Low/High" parameters don't workposted in Questions & Answers
I'm trying to open a trade when the "Current Price" crosses above/below the previous Day "Candle High/Low" prices, but it doesn't open neither at High or Low.
Here is my project: https://fxdreema.com/shared/GABd84z7d
I've also created blocks that:
- Stop trading during the day once a profit is taken.
- Resume trading at a certain time.
It is basically a loop: the EA initiates trading at High/Low, until a profit is taken - once the profit is taken, it waits for the set time to resume trading.
-
RE: Help needed in modifying values in a sequenceposted in Questions & Answers
Alright, so I've replaced the indicator and adjusted the condition for the shiftback (so it triggers starting from 2nd loss) and this seems to work now :

-
RE: Help needed in modifying values in a sequenceposted in Questions & Answers
@roar If I remove the first "Modify Variable" block and leave only the second one attached, I get a critical error in the tester almost immediately and it stops working:
The configuration:
USDJPY:

EURUSD:
