You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Indicator created from Expert Advisor will not be unloaded until you explicitly delete it or Expert Advisor is finished.
Thank you for taking the time to reply.
This changes a lot, it means we can do without separating the code for the tester and the code for the real.
Advice on how best to save resources if the indicators are needed once an hour :
leave a dozen of standard indicators to hang out at every tick or
Unload them after each use via IndicatorRelease(indicator_handle), and then load them again after one hour.
But the second variant increases the time of testing.
Also answer how much delay on average is required to load one mask?
Advice on the best way to save resources if the indicators are needed once an hour :
leave a dozen of standard indicators to hang on each tick or
The best thing to do is not to unload them (indicators are hardly needed really "once an hour"), but:
- increase memory size with transition to 64 bits, or
- reduce the depth of history charts
The exact time of loading is impossible to say - it depends on several factors. It's better not to create problems by unloading indicators - this may cause problems because of the asynchronous processes of creation and recalculation of the indicator.Advice on the best way to save resources if the indicators are needed once an hour :
leave a dozen of standard indicators to hang out at every tick or
Unload them after each use via IndicatorRelease(indicator_handle), and then load them again after one hour.
But the second variant increases the time of testing.
Also answer how much delay on average is required to load one mask?
Question
I don't use offset settings at all, but happened to see a description on alligator, started thinking... :)
Description of one of the alligator settings:
teeth_shift
[in] Red line shift relative to the price chart. It should be remembered that the shift of the line is purely visual for displaying, and values in the indicator buffer are stored without any shift. When the buffer values are obtained using the CopyBuffer() function, the offset value will have no effect.
Although it's not mentioned in description of MA, but I think it's an error and everything is similar
ma_shift
[in] Shift of indicator relative to price chart.
In the picture where the yellow birdie is, the price has crossed the MA without a shift. It is clear here, for example, the price at the close of the previous bar is higher than the MA and the price at the open of the current bar is opened.
But where the green bird is, how do we know the same thing? I.e. when the price visually crosses the MA with the shift
to the chart symbol, but I don't know how to specify the class symbol
Hello, I wrote a script - getting Ask price for EURUSD gives out 0 - I think I need to bind
to the chart symbol, but I don't know how to specify the class symbol
The first thing to do is to familiarise yourself with what the class is all about. When linking to the symbol, you should first use the "Name" method of the class.
I understand that Ask in a class is defined by the MqlTick structure; I tried it both ways and still get zero
You should do the following
How about trying it this way?