Intro data in a variable.
-
How to store the entry price of a trade that was executed a few moments ago in a variable?
-
pink for each trade-> open price in a loop, or save the current price at the time of placing a trade.
-
Can you send me the block layout using an fxdreema link? I would greatly appreciate it.
-
-
How to make the variable store the price with all decimals?
-
When I set the "Value Format" to "4 decimal places" in the modify variable, the variable only stores the number to the left of the decimal point, but on the right side, it only stores four zeros. How can I make it also store the decimal places?
-
@govorushka
I think you may have set the data type to integer? If it was double, it should not be a problem -
I have tried using both "integer" and "double" types, and the problem persists. It still shows all zeros for the decimal places.
-
I am lost to what you mean, if I run what I put above you get all decimals: https://fxdreema.com/shared/kEozxvuLc

-
The solution from @jstap gets you the right answer.
You said you "set the Value Format to 4 decimal places in the modify variable", I did not see how you did that. Maybe that was where you got the problem
-
I'm sorry, guys, I made a mistake while renaming the variable. It turns out that I forgot to insert the variable into the modify variable block. Thank you jstap and sktsec for your patience with me.