Help for Using Editable Field in Backtest
-
Hello, I created this project below to try to change data in an editable field in a backtest environment but I was unsuccessful. Can anyone help me solve it?
Note: In the real market it works perfectly.Project --> https://fxdreema.com/shared/RabJuHL0e
-
Copy those blocks onto on tick, on chart only works for live
-
@jstap I didn't understand what you meant.
I tested it by just putting it (on tick) and it doesn't work in the backtest environment, nor in a real environment, and I know it works perfectly, and I just want it to happen in the (backtest) environment, maybe by chance it moves and leaves it just in (ontick ). Did it work in a backtest environment? -
That is how it works.


-
@jstap I tried to do exactly as you said, it still doesn't work in a backtest environment.
I even generated a new project for testing.
Can you share your project so I can understand what you are doing to make this work?New project --> https://fxdreema.com/shared/KPW4JrvPd
-
Try this, is probably the purple block because these are just for on chart:

-
@jstap I tried and it doesn't work. I believe it is either a limitation of MT5 or a bug in this block of editable fields.
-
What I noticed is that in the real market, the field, after being changed, assumes what was written and passes it on to the variable, but in the back, the field, after being changed, erases the entered content, returning to the previous content, preventing the variable from receiving the updated content. , it seems that the problem is in this block or mt5 in backtest environment does not allow data to be changed.
-
Intrigante el tema
-
I don't think it's a bug, it doesn't work on MT5, I think this is just how it is