fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    Getting few bool values from custom block

    Questions & Answers
    2
    2
    94
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N
      n4rkis last edited by

      Hello!
      I recently started to play around with custom blocks and I got an issiue I cannot find an answer to fix it.
      On the screen below is a fragment of the custom code, what I want to do is "extract" the bools value of

      Daily_Profit_Reached
      Weekly_Profit_Reached
      Monthly_Profit_Reached
      

      and for example write those bools within the "comment" block in FxDreema.
      I've managed to get only one value with:

      if(Profit_Reached == true)
        {~next~}
      else
        {~inext~}
      

      And connect another block to the output of this custom block, but I cannot find a solution to "reach" all 3 bool values and use them with standard blocks.
      If anyone can help me that would be awesome!
      Cheers!

      Zrzut ekranu 2025-11-01 234330.png

      1 Reply Last reply Reply Quote 0
      • jstap
        jstap last edited by jstap

        Ask AI (something like chat GPT), the settings are whatever tab you are using on in this case it will be on tick, global variables are likely correct (but AI may add or remove), then there's the custom functions section, you may not need to add anything here, let AI decide, the first line in settings needs to call the custom function (if ones used by using the name (the first line) of the function, Say all this to AI, give it your code and the sections it's in, it will then advise changes, then test what it gives you, any compile errors you get on the the used project will tell you and AI where the problems lye, anything can be used in custom block code that you have change in inputs, the code just needs to reference it. GlobalVariableGet() for example will get the value from anything the custom block has set.

        Learn fxDreema Without the Wait!

        My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

        The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

        Don’t miss out

        Click here➡️ https://mybook.to/fxDreema to get your copy today!

        Enjoy! 😊

        1 Reply Last reply Reply Quote 1
        • 1 / 1
        • First post
          Last post

        Online Users

        A
        M
        E
        A
        E

        17
        Online

        146.7k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors