Need Help with Using Variables
-
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/42ea5eWhen you have time could you show me how to make variables with formulas and then load them in the parameter fields?
-
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