Put a price in a variable
-
I try to put the price 14000 on dax for begin start my ea. I've not look solutions.
If i put on {variable 1 double= 14000,00} ea don't begin. If i put {formula 0+14000 = variable double 1} the same. I try to get int variable whit 14000 (and not double) and ea no take again my variable when price cross It. The ea begin when price cross this variable but It do nothing when do It. Strategy continue whit "modify variable" when trade go on but if don't start and not read my First variable .... In that way i can put in a variable a defined price ?? -
Add a shared link to see what you have done
-

-
i have create a shared copy, is the right way to shared whit you project?
-
@MT4stefano
You can paste the link here -
@MT4stefano This is the way to do it:

-
shared/i6f0ezxVd
-
no one have a solution?
-
Put the variables into a line, then backtest and watch to see if visually it doesn't place a trade when it should.
-
@MT4stefano said in Put a price in a variable:
shared/i6f0ezxVd
Blocks 2 and 3 are doing those calculations every single tick. That is messing up the values of those variables later. I guess you need those to be calculated just once, but not sure when exactly. When are they supposed to be calculated?