fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. willramsey
    3. Posts
    • Profile
    • Following 0
    • Followers 1
    • Topics 0
    • Posts 42
    • Best 4
    • Controversial 0
    • Groups 0

    Posts made by willramsey

    • RE: How to get data from object (horizontal line) then store at variable

      I see, so if closed the whole chart window for example, yes the variable is back to 0. I believe what you're looking for is probably storing the value into a GlobalVariable, which stays stored in MetaTrader for a certain amount of time. So even if the chart window closed and EA shutdown, etc, it will remain the same. There is a block in FXDreema called Terminal Variables, which does this under the Output section.

      Unfortunately, I'm not super knowledgeable on the topic but it's what you're probably looking for. You'll likely need to utilize the OnDeinit and OnInit function with your global variable. I can look into it when I have some more time unless you figure it out or someone else can help out!

      posted in Questions & Answers
      willramsey
      willramsey
    • RE: How to get data from object (horizontal line) then store at variable

      I'm not sure exactly what you're trying to do for your particular project linked, it's a little confusing to me. But generally when I personally want to store something from a object. I'll grab a For Each Object node and input the name of it. Then modify variable and get the value/property I need. Here is an example. The lines will redraw each new trade placed so the name is always the same and the variable is updated automatically each new trade. This will only work if one trade is open at a time though. If there is more than one, it can be more complicated. I hope this helps you at least a little bit.

      https://fxdreema.com/shared/vsW0yVaTd

      posted in Questions & Answers
      willramsey
      willramsey
    • 1
    • 2
    • 3
    • 3 / 3