fxDreema

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

    Need Help with Using Variables

    Questions & Answers
    2
    2
    5386
    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.
    • B
      Blockhead last edited by

      fxDreema,

      You have created a really neat application that will be very powerful once I learn more. Could you please help me with variables?

      I have read the Help Documentation about variables and the explanation of a Formula and the resulting "Result1" but I am still not able to figure out how that Result1 turns into a variable and then place it in a block.

      For my current little project I want to create a grid using the Buy Grid block and I want the first buy stop open order at the Offset Distance created by the ATRChannel indicator for the prior bar. The second variable I need would be the Grid Size parameter which would be the ATR indicator results for the prior bar which I will have to multiply by 10000 to make it a pip size number. I am new to Lightshot too but here are two screen shots of my current project.

      http://prntscr.com/42ea13
      http://prntscr.com/42ea5e

      When you have time could you show me how to make variables with formulas and then load them in the parameter fields?

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

        In the beginning I created "Formula" block, few months later I added Constants and Variables. All these are global variables, so they are accessible everywhere in the EA. Only I don't recommend to modify Constants, they are designed to be constants.
        So, when you define variables in Variables, or you create Formula block, some global variables will be added to the final project. I prefer Variables, not Formula block. And for some basic calculations with those Variables click on this "Variables" thing: http://prntscr.com/42j6wo

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

        Online Users

        S
        A
        I
        A
        E
        S
        E
        J
        2
        C
        R

        26
        Online

        146.7k
        Users

        22.4k
        Topics

        122.6k
        Posts

        Powered by NodeBB Forums | Contributors