fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. rafaels919
    3. Posts
    R
    • Profile
    • Following 6
    • Followers 1
    • Topics 12
    • Posts 87
    • Best 7
    • Controversial 0
    • Groups 0

    Posts made by rafaels919

    • RE: "Open Parenthesis Expected" compiling error in MT5

      @l-andorrà yes

      posted in Questions & Answers
      R
      rafaels919
    • "Open Parenthesis Expected" compiling error in MT5

      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?:

      e59bd728-e6bc-48e8-95f9-c9a0e060e176-image.png

      posted in Questions & Answers @mt5 error code parethesis compile
      R
      rafaels919
    • RE: Finally , Integration of News Filter :) [ MT4 Only ]

      @zedeai2 Nothing to do with the internet connection.

      In my case, the EA just ignores the blocks that check the news:
      alt text

      No error in the journal. It just executes the buy orders.

      posted in Tutorials by Users
      R
      rafaels919
    • RE: Finally , Integration of News Filter :) [ MT4 Only ]

      @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/twV9ZV9zb

      I didn't edit anything in the project, the News lines are still not showing.

      I pasted the code in the global scope:
      alt text

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

      Am I doing something wrong or missing a step?

      posted in Tutorials by Users
      R
      rafaels919
    • RE: "Candle Low/High" parameters don't work

      @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
      alt text

      Project Link: https://fxdreema.com/shared/Og0SFuf4c

      posted in Questions & Answers
      R
      rafaels919
    • RE: "Candle Low/High" parameters don't work

      @l-andorrà That won't work. "Above/Below" would discard the Highs and the Lows and would enter a trade at any current price.

      posted in Questions & Answers
      R
      rafaels919
    • RE: "Candle Low/High" parameters don't work

      Pausing and Resuming work fine, but the trade is not being initiated at the High/Low for some reason.

      posted in Questions & Answers
      R
      rafaels919
    • "Candle Low/High" parameters don't work

      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:

      1. Stop trading during the day once a profit is taken.
      2. 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.

      posted in Questions & Answers
      R
      rafaels919
    • RE: Help needed in modifying values in a sequence

      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 :
      alt text

      posted in Questions & Answers
      R
      rafaels919
    • RE: Help needed in modifying values in a sequence

      @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: alt text

      USDJPY: alt text

      EURUSD: alt text

      posted in Questions & Answers
      R
      rafaels919
    • RE: Help needed in modifying values in a sequence

      Is it possible to not use the "yellow" block output?
      alt text
      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.

      posted in Questions & Answers
      R
      rafaels919
    • RE: Help needed in modifying values in a sequence

      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>:alt text

      Not skipped>:alt text

      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.

      posted in Questions & Answers
      R
      rafaels919
    • RE: Help needed in modifying values in a sequence

      Hey @roar
      it looks great, the bugs are gone. Do you think it is possible to have it to shift two values back instead of reverting to value two?

      For example:

      1. We have the "loses" variable changed to "2" by "modify variables" block when RSI crosses 60 (just as in your example)

      2. If we are on 5th value - we don't revert back to the 2nd value - instead -> we shift back two values (so we would be on the 3rd value instead of 2nd value) -> so it doesn't REVERT to two when the condition triggers but SHIFTS BACK two values.

      Your configuration looks great, hopefully we can make this last adjustment.

      posted in Questions & Answers
      R
      rafaels919
    • RE: Help needed in modifying values in a sequence

      @trader-philipps said in Help needed in modifying values in a sequence:

      Don't take the code for granted! It should show you the way you can go.

      What do you mean by that?

      posted in Questions & Answers
      R
      rafaels919
    • RE: Help needed in modifying values in a sequence

      @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:

      1. When it loses 6 times in a row (full array length) it doesn't reset and stops working completely.
        alt text

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

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

      PS: used your latest version. Didn't edit anything.

      posted in Questions & Answers
      R
      rafaels919
    • RE: Help needed in modifying values in a sequence

      So I tried to run a little test following your description, but it didn't shift back neither did it reset at the "seqLen" Limit.

      alt text
      "loses" variable (to control the consecutive losses) - after which it should shift back one value or in other words, to not proceed to the next value in the array for that instance.
      "seqLen" variable (to reset the array after number of consecutive losses)
      alt text

      I guess I'm doing something wrong again? @roar

      Also, as I mentioned before - I need to be able to freely utilize the "shiftback", using conditions and what not. Could this be possible with your configuration?

      By the way, if the sequence string is now an "Array", would it be possible to change that array using "Modify Variables" instead, which I described in my introduction text?
      alt text
      This^, which couldn't work storing the "sequence on loss" in a variable, because the "Modify Variables" block can't change string sequences. If I could somehow use a single block like that to change the whole array at a given condition, that would solve everything.

      posted in Questions & Answers
      R
      rafaels919
    • RE: Help needed in modifying values in a sequence

      @trader-philipps
      Let me know if I get this right.

      1. 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?
      1. 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?

      1. What is "seqLen" for?

      I think I need to know what each variable is for to understand the logic behind the setup.

      posted in Questions & Answers
      R
      rafaels919
    • RE: Help needed in modifying values in a sequence

      @trader-philipps I'm not sure what Roar did here, but I guess it's something similar to what you described:
      alt text
      I'm not sure how the "variables" function and how they are adjusting the sequence that is stored in the Constants:

      Miro's project changes the lot size only as far as I understand, and uses the Multiplicator instead of a Sequence.

      posted in Questions & Answers
      R
      rafaels919
    • RE: Help needed in modifying values in a sequence

      @roar I see that you had the "sequence on loss" and the "baselot" stored in Constants. It makes sense now.
      But it still doesn't shift back. Could you explain the variables and what each one does?:
      alt text

      And how would I set it up to shift back in a similar configuration (having 2 or more separate conditions for a shift back simultaneously):
      alt text

      @trader-philipps I see. But reset is not what I'm looking for. Also that configuration seems to work only with a single value in a variable (e.g. I can't use "modify variables" block with multiple values - aka sequence, such as "1,2,3,4,5" for example, which you pointed out to me in a different topic)

      posted in Questions & Answers
      R
      rafaels919
    • RE: Help needed in modifying values in a sequence

      @roar
      In this reference, for example:
      alt text

      I have two conditions, where I shift back to the previous value in the sequence.

      I want to be able to do similar. It doesn't need to be just 1 block, but it needs to work in a similar fashion, where I can use it multiple times under different conditions.

      posted in Questions & Answers
      R
      rafaels919
    • 1
    • 2
    • 3
    • 4
    • 5
    • 1 / 5