fxDreema

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

    Best posts made by roar

    • RE: How to do I build a multi timeframe\symbol portfolio?

      Just put the market loop on top. Dont use the other filters - symbol or group - in other blocks.

      If you have special settings for each symbol, then you need an array.

      image.png

      posted in Questions & Answers
      roar
      roar
    • RE: How to do I build a multi timeframe\symbol portfolio?

      @gooseman why do you have the same symbol repeating multiple times there?

      posted in Questions & Answers
      roar
      roar
    • RE: How to enable EA to Execute Button

      @Jim67 you can execute other blocks at any point with this bad boy here
      575f0982-92f5-4ffd-a780-4f73201fe319-image.png

      posted in Questions & Answers
      roar
      roar
    • RE: Highest Value

      @andrewfrank remember to reset the variables every time

      bba90dcb-4deb-4f03-a303-a65638b080cf-image.png

      posted in Questions & Answers
      roar
      roar
    • RE: How to do I build a multi timeframe\symbol portfolio?

      So the mistake was in my own example. Eh, sorry 😅

      I usually do that step in the quick adjust, no need to select datatype

      posted in Questions & Answers
      roar
      roar
    • RE: How to do I build a multi timeframe\symbol portfolio?

      What error are you getting, exactly?
      If its the 'x' - undeclared identifier in your latest shared, its referring to your constants list - x is not a number. I believe you can delete those symbol constants anyway.

      image.png

      posted in Questions & Answers
      roar
      roar
    • RE: Highest Value of RSI

      @marvinm this loop saves the highest value in variable "highest"
      https://fxdreema.com/shared/3Kmz0vlxb

      0_1673100515897_966a9a0f-bd36-48cf-840c-8dec17714b64-image.png

      posted in Questions & Answers
      roar
      roar
    • RE: How to get iMACD from MT4 to MT5

      @andrewfrank indicators work very differently on mql5. It would be easier to just use the "modify variables" block rather than custom code, when getting indicator outputs.

      But if you do it the custom way, you must first "load" the MACD indicator with the code you mentioned, and then use CopyBuffer() function to read some value from that indicator.

      posted in Questions & Answers
      roar
      roar
    • RE: Need Help Backtesting Error

      https://fxdreema.com/forum/topic/16494/close-positions-when-market-is-closed
      https://fxdreema.com/forum/topic/16638/mt5-optimizer-not-working-with-many-fx-dreema-ea-resolved
      https://fxdreema.com/forum/topic/16849/market-close-error-mt5-backtesting-solved

      posted in Questions & Answers
      roar
      roar
    • RE: How to do I build a multi timeframe\symbol portfolio?

      @gooseman MT5 data handling is sometimes a mystery, but I would assume getting only D1 time is enough to refresh all timeframes.

      Also, you can keep the time array sized 1. It will just be written over again and again, and its not a problem because we dont actually use the time value.

      I use this method On Tick, but On Init should work fine.

      posted in Questions & Answers
      roar
      roar
    • RE: How to do I build a multi timeframe\symbol portfolio?

      @gooseman well if you have many targets for rsi, maybe there should be some variables, like tgt1 tgt2 etc, or an array... But it might be unnecessarily complicated that way.

      Why do you need to check multiple levels in the first place? Surely, if RSI is not above 60, there is no need to check if RSI is above 70. So, we could just use the smallest target.

      I'm not sure where the sleep loop error comes from, can't test with those symbols myself. Try some smaller list of symbols, maybe there is just some limit in the symbols loop (if so, there's another structure to do, of course hehe)

      posted in Questions & Answers
      roar
      roar
    • RE: How to do I build a multi timeframe\symbol portfolio?

      @gooseman that works. If you want to get fancy, you can put the symbols into an array and loop through that array. This might be easier managed version, as you can make the symbols list in excel. I have ran 2000+ symbols that way.
      Check OnInit tab

      https://fxdreema.com/shared/VwmyF0FAd

      839dcab2-00a6-4e03-951c-9502e3dd7e47-image.png

      posted in Questions & Answers
      roar
      roar
    • RE: ERROR ON NON EXISTING BLOCKS

      12 and 56 are not block numbers, they are values in some fields.

      To find those fields, download the mq5 file and try to compile in your MetaEditor. The error message will show the problematic code lines, and then you can find the corresponding fxdreema block.

      posted in Questions & Answers
      roar
      roar
    • RE: ALERT AND BREAKEVEN

      @Chen-7 here is the label:
      bd0e6a27-18d6-48da-a5f7-3fd339c61179-image.png

      For BE, I would try setting some "pips on profit" value, maybe it cannot be empty. If that fails, reconstruct the BE using the purple blocks: for each trade -> check profit -> once per trade -> modify SL

      posted in Questions & Answers
      roar
      roar
    • RE: Transformation of profit/loss into price level

      @l-andorrà

      1. Size is lot size, but "value" is a percentage of equity, the user input in in the "risk % of equity" setting. You can replace the whole ((value/100)/AccountEquity()) part with your own money variable.
      2. Yes
      3. Yes
      4. You can see how TickValue is fetched with SymbolInfoDouble() function a bit higher up in my screenshot. You can use that method or the fxdreema dropdown, its the same thing.
        I think you need to always use PipValue(symbol) as a custom function, there is no drop-down selection for that.
      posted in Questions & Answers
      roar
      roar
    • RE: Forum update

      @make_123 try making your own thread, and using better grammar

      posted in Questions & Answers
      roar
      roar
    • RE: First Attempt at Arrays. Could use an expert opinion.

      @MrDaisyBates here's some more points:

      • yes, you can add "== true" to the custom condition
      • when mql4/mql5 code is compiled into machine code, all spaces will be removed in the process. So you can put as many spaces as you like, wherever you want.
      • if you dont know how big your array is going to grow, you can do as you described: resize the array by +1 and then add your element to the last place
      • mql5 has a nifty function to remove one element from the middle of an array, and then combine the tails together again. You can use this in a custom mql code block. On mql4, you have to reconstruct this function with multiple ArrayCopy phases. It is also possible to just set the "disabled" elements as 0 or -1, but you should make sure your array doesn't grow too big, it will start affecting performance at some point. https://www.mql5.com/en/docs/array/arrayremove

      I'm not sure what other questions I should answer, maybe you can list them again 🙂

      posted in Questions & Answers
      roar
      roar
    • RE: First Attempt at Arrays. Could use an expert opinion.

      @MrDaisyBates said

      And greetings from a different part of Finland. Hahaha. I've noticed you seem to be Finnish. I'm American, but I live in Finland (my wife is Finnish). Anyways. Sorry. Lol. I know. Off topic.

      Oh hello there neighbor ':D

      fef76b23-7fe6-444f-966a-0f8d20a27ac5-image.png

      posted in Questions & Answers
      roar
      roar
    • RE: First Attempt at Arrays. Could use an expert opinion.

      Hi @MrDaisyBates!

      If you were coding in pure mql5 there wouldn't be any problem, but the "blocky" nature of fxdreema requires some extra consideration: when you declare variables in a "custom mql code" block, those variables are usable only inside that block - they are not global.

      You can declare them globally by using your Variables menu:

      6e45ad4e-aeaf-45c1-9fdb-a573349b4ecd-image.png


      After deleting block 16 and declaring the variables in Variables menu, there's just 2 errors, seemingly typos.
      48a07f65-659e-4e66-b88d-ac3a6bb53051-image.png

      In these situations it often helps to download the .mq5 and try to compile it in your own MetaEditor. Now you see the error line, and somewhere above that you can always see the fxdreema block number.
      https://fxdreema.com/shared/CfH27QXP


      78c40e7a-5de8-4b17-a95e-64cfa001dda4-image.png

      posted in Questions & Answers
      roar
      roar
    • RE: First Attempt at Arrays. Could use an expert opinion.

      @MrDaisyBates Hi! I dont immediately see any obvious error... To help troubleshooting, you should put some Print() statements here and there, checking the sizes of your array. This often leads to clues to solving the error.

      Try checking the array size and id variable before your block #36, as it seems to are getting outside range there.

      ae518bf8-d629-4154-a78f-4d6cf66bbeac-image.png

      posted in Questions & Answers
      roar
      roar
    • 1
    • 2
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 19 / 22