fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. roar
    3. Posts
    • Profile
    • Following 0
    • Followers 184
    • Topics 35
    • Posts 2406
    • Best 422
    • Controversial 6
    • Groups 0

    Posts made by roar

    • RE: Want delay before starting new trade

      @markc1974 I'm not sure, it might work only on live trades...

      posted in Questions & Answers
      roar
      roar
    • RE: Want delay before starting new trade

      @markc1974
      https://fxdreema.com/shared/yCq0Sk2nc

      • Create a variable that increases +1 on every new minute bar
      • When trade closed, reset that variable back to 0
      • When opening new trade, check if variable is > 10
      posted in Questions & Answers
      roar
      roar
    • RE: Custom trade entry for limited amount of candles

      Yes, that is correct. I thought you would want to use ID1 as a base, because a signal on ID0 can change before the candle completes...

      But either way, use ID0 together with ID1, or use ID1 together with ID2

      posted in Questions & Answers
      roar
      roar
    • RE: Measure pips between two points

      @hugoportisch Just use the formula-block to make the subtraction?

      posted in Questions & Answers
      roar
      roar
    • RE: Custom trade entry for limited amount of candles

      Search the forum for candle ID, that will help in this project. Your entry logic is this:
      0_1573054106802_b61f7a87-6a30-4beb-bc34-6d072a22db01-image.png

      posted in Questions & Answers
      roar
      roar
    • RE: Another question for real programmers.

      @l-andorrà
      Yes, you can use the numbers as well.
      I don't know the proper ENUM type for indicator lines, but you can use simple "int" datatype and integer values:
      0_1573035381492_b04e8076-0b3c-4bde-bb14-cf0c5a054cb4-image.png

      posted in Questions & Answers
      roar
      roar
    • RE: Another question for real programmers.

      @l-andorrà Lets work through this:
      Ma method and Applied price seems to be something else than just numbers, like those MA period and MA shift are. From this we can deduce that the constant's datatype needs to be something else than double, because double is the type for simple decimal numbers.
      0_1572989595561_90befe17-7ee6-4d17-97b1-9b659a6a9af6-image.png So, where to find the correct datatype?

      This default ma indicator has its own page in mql4 documentary, lets google it: https://docs.mql4.com/indicators/ima

      Here's the datatypes!
      0_1572989122389_6a57d500-769c-414a-b594-d046376ec701-image.png

      Now, what can we use as the constant value? Just click that mql4 article. We can use these values!
      0_1572989211644_50f81af7-8798-45db-b6d8-e0b475585d32-image.png

      Now just create the constants and right-click them into place:
      0_1572989285451_10a65f68-0a5d-4cf5-b525-f9975a28d8e8-image.png

      Hope this helps (and hope I didn't make any mistake lol).
      You can generalize this method to other indicators, time frames and everything

      posted in Questions & Answers
      roar
      roar
    • RE: 4 hours filter

      @l-andorrà I could skip the whole STOP-block in my example, and just modify the variable in the condition-block.
      Orange box needs the condition to be TRUE, before it can modify the variable.
      0_1572982478930_2b441f1d-059c-43aa-a8af-2d2311c3c42e-image.png

      If I used the white box in this case, my variable would be modified before checking the condition, and the system wouldn't work

      posted in Questions & Answers
      roar
      roar
    • RE: 4 hours filter

      @l-andorrà There is no difference in this case, it's just a matter of choice.
      I tend to always use the orange box, because that is often useful when combining with the condition block

      posted in Questions & Answers
      roar
      roar
    • RE: 4 hours filter

      Work in the "on Timer" tab. Make a variable that counts seconds (or minutes), and when the amount for 4 hours is filled up, modify variable stop=1 and use condition "stop == 0" in the regular "on Tick" tab. Alternatively, just terminate at the point.

      https://fxdreema.com/shared/MKjwb1vvb
      I'm not sure the "Change timer period" works like this, but I hope you get the idea. You can change the timer period from the project settings as well 🙂

      If you don't need to be very precise, an easier way is to stay in "on Tick", and use "once per bar" block and count them in a similar fashion.

      posted in Questions & Answers
      roar
      roar
    • RE: trading tool with weird info box

      @fabien-s Youre right, doesn't seem to work 😕

      posted in Questions & Answers
      roar
      roar
    • RE: trading tool with weird info box

      @fabien-s
      You have to apply the Floor function, so the adjust-field will not work...
      So yeah, make it a variable first. The MathFloor function is like rounding, but only downwards. Here's the example in more detail:

      MathFloor( 0.63000001 * 10000) / 10000
      = MathFloor( 6300.0001) / 10000
      = 6300 / 10000
      = 0.6300

      posted in Questions & Answers
      roar
      roar
    • RE: trading tool with weird info box

      @fabien-s
      I don't exactly know what causes this, I think it is something in the way computer uses floating point numbers... But there's a way to cut off the 5th digit and everything after it:

      MathFloor( var * 10000) / 10000

      where var is whatever variable or function that you use to get that 0.6300 value.
      Example:
      MathFloor( 0.63000001 * 10000) / 10000 = 0.6300

      posted in Questions & Answers
      roar
      roar
    • RE: TypeError: vFormula.replace is not a function

      @l-andorrà It's probably just some variable declaration... The problem will disappear when I redo the whole project from scratch, but that's some work

      posted in Bug Reports
      roar
      roar
    • TypeError: vFormula.replace is not a function

      The quick variable adjust window breaks up on me.
      I ran into this bug in one specific project, can't recreate it in another mql5 project. It seems my custom code breaks the software at some point, I wonder if someone has any insight on this error...

      Example: modify one variable to 1:
      0_1572551060716_7560b4e5-c9cf-456c-89b3-58d69d6ace87-image.png
      Click update, open the block again:
      0_1572551076290_743f5216-a679-4c91-929d-5aba06a81f64-image.png
      Update that again, and now the variable modifications are gone:
      0_1572551347147_6d23797f-d66b-412c-ab94-13ade326ab45-image.png

      posted in Bug Reports
      roar
      roar
    • RE: How do i make my entry size be the same for every pair. I tried the % equity =>lots

      This calculation can be done in the custom value money management:
      0.1 * (iClose(EURUSD, 0, 0) / (iClose(NULL, 0, 0)
      0_1572545698689_191530f8-daa1-44a8-8cdd-b3605378ca51-image.png

      I have never done this, though. Just using fixed lots are close enough for me, it doesn't make very much difference between 0.1 and 0.09

      posted in Questions & Answers
      roar
      roar
    • RE: How do i make my entry size be the same for every pair. I tried the % equity =>lots

      So correcting for the currency value, hmm...

      If eurusd is 1.1160 and volume is 0.10
      Gbpusd is 1.2030
      -> volume should be 0.1*(1.1160/1.2030) = 0.09

      posted in Questions & Answers
      roar
      roar
    • RE: Condition always closes itself

      One solution is to count the new bars, there's a million posts about it:
      https://fxdreema.com/forum/search?term=barcount&in=titlesposts&sortBy=relevance&sortDirection=&showAs=posts

      BUT why your entry rule is the same as your exit rule? It doesn't make any sense, you shouldn't force it to technically work.

      posted in Questions & Answers
      roar
      roar
    • RE: How do i make my entry size be the same for every pair. I tried the % equity =>lots

      How do you define "same amount"? Isn't using some fixed lot amount, like 0.10, enough?
      There's also an option to "risk fixed amount of money".

      posted in Questions & Answers
      roar
      roar
    • RE: Rookie question on Magic number

      If you filter by all trades, then the magic number setting shouldn't affect anything, just leave it default.

      posted in Questions & Answers
      roar
      roar
    • 1
    • 2
    • 80
    • 81
    • 82
    • 83
    • 84
    • 120
    • 121
    • 82 / 121