Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
then, this will backtest using data period_m5 and period_m1.
Do you understand?
Are you saying that you save a GV before backtesting so that you can then use the GV in the test?
A single random value?
That is absolute nonsense!
You can get the value of an indicator in different time-frames within the backtest, no need for GVs.
Why are you trying to solve a problem that doesn't exist??
this code below doesn't works in the backtest Metratader 4 within period M1, try:
it can't get value of period_m5 with backtest period_m1.
the single way I did it to work it was Just putting a GV in the expert sending the value to indicator that is in backtesting
this code below doesn't works in the backtest Metratader 4 within period M1, try:
it can't get value of period_m5 with backtest period_m1.
Works perfectly on any time-frame
2019.12.20 11:14:22.631 2019.12.19 00:05:00 SMA_Price_action_strategy_v2.0 GBPUSD,M1: o=1.30817 h=1.30790
thank you for help me
I saw my error
when I use variable it works fine, directly doens't work. Now I got it!