Does it matter to the robot what timeframe I have on the chart now? Here I have a robot connected, which showed, in the tester, a good result on the watch. I set it up and connected it, and now I want to watch the daily one. Do I need to open another chart window?
Share
igoreremenko
“what is my current timeframe on the chart -” – no, it does not matter how you open the TF now
It is important to use the bot on the TF on which it showed satisfactory (in your opinion) results during testing
dimeon
First of all, robots are mostly designed for automatic trading. I.e. set up and forgot. there are of course exceptions such as
the panel for trading or there is a robot only accompanying the position. Tick advisors (like I have now) they also do not depend on the timeframe. But
when you switch TF is re-initialization of the variables.
It is stupid to switch a robot configured for a minute TF to an hour chart. Here at least your sets are needed for trading on the clock.
as for the robots for the tester, they are very suitable for trading if they are written correctly. For the tester, you can disable some
checks to optimize the code in the tester and especially in the optimizer. for example, if the robot is tested on only one symbol, then it
is not necessary to compare the chart symbol with the order symbol in the tester and it is quite slow. Optimization without such a check is accelerated
several times.
at the same time, you can combine the necessary checks in the trading robot and in the robot for automation using istesting() and isoptimization().
alex2andr
Of course, the robot does not care what timeframe. You can run it in the tester and get different results.
To switch to a different timeframe, it is better to open a new chart.
but there is still a lot that depends on the robot itself, how it is written, and what timeframe it was designed for.
alex_all
in the properties of the expert advisor in mt4. or simply remove the ability to open in short from the code
andreykrivcov
what’s so wrong with that ? I run robots in the auction and do not climb into their activities with my hands at all. i do not change or re-
open new charts. regarding the new price – this is due to clearing on the moscow exchange where i trade, so it is not possible to directly
request the price from the api methods of the terminal, since there it will come updated. You can iterate through the history from the current moment to the beginning
opening positions, in some robots, this is how i get the opening price, then clearing does not affect me, but for me it is not critical,
because all the algorithms that i use, i do not sell and only a narrow circle of people have access to them, so everything is fine. in all other respects, these are quite
good and stable programs, all with the help of oop are written, not what a bunch of spaghetti is not. so to criticize without seeing what i’m talking about is not
entirely appropriate.
gnom_grey
no matter how much i redo it , it still turns out to be long, and on a downtrend it always merges, even if i connected it after a reversal. What to do?:(((
ya_programmer
if you use an indicator that changes the signal when switching tf-mov, then of course it is important
if the expert advisor in the tester gives different results when changing the tf-ma, it is also important
if you want to use the same expert advisor in a different window, then for a number of reasons, there may be problems that will lead to instability of the expert
advisor
alex_all
By the way I think to determine whether the owl stability when changing TF and other preinitial possible on the basis of whether
the input parameters of TF, if there is, then most likely everything is OK, if not – it already depends on code.
podbox
It is better not to even try, only the simplest robots without indicators and on the basis of constant analysis of orders or simple setters will tolerate
this, in any complex variant, the probability of catching a glitch is 0.9999…. 🙂
alexeyvik
This is beyond reasonable. So I didn’t even pay attention to it.
dimeon
there is actually a forum for writing programs for trading.
ps just don’t tell anyone ! you know…
mvs
So does anyone else write programs?
andreykrivcov
Still not the fact that it will be possible. The robot will be reinstantiated when changing the timeframe, and accordingly, all data that
is stored in variables in the global visibility zone, or in class fields, will be forgotten…
For example, many bots just record the opening price in the class field constantly, and after clearing it will change and if the bot is reinstantiated
, it will record the wrong price.
alexeyvik
Depends on the programmer who wrote this Expert Advisor. If PERIOD_CURRENT is written everywhere, then you can’t switch it. And
if a specific period is specified, such as PERIOD_H1, then you can.