[ARCHIVE] Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 3. - page 477
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
If, for example, 10 years the profit on a trading account was 500% (figures are notional) -
how to calculate the average annual profit, also taking into account that all profits are reinvested?
Thank you!
Hello everyone, Happy New Year. I can't find any way to place an order only once, if the condition is fulfilled after which the order is placed, then if there is an order for the second time it will not be placed. I would like to give you an example.
The example from the textbook is your case.
If, for example, 10 years the profit on a trading account was 500% (figures are notional) -
how to calculate the average annual profit, also taking into account that all profits are reinvested?
Thank you!
The example from the tutorial is your case.
I read it but it does not work with my algorithm and i still have orders on every tick.
I have tried it this way (my friend has advised me) but it does not work.
Hello everyone, Happy New Year. I can not make an order be placed only once, if the condition is fulfilled after which the order is placed, I need it then, if there is an order for the second time it will not be placed. If you can give an example.
The root of the tenth power of 6, then subtract 1 and multiply by 100. We get 19.62% per year.
Thank you!
Anyway, here's the question,
I have a multi-period indicator.
In order to optimize the calculations, I use the following loop
// TimeFrames[i] массив с периодами
for (i=0; i<NumTimeFrames; i++)
{if (total_bars[i] != iBars(instrument, TimeFrames[i]) )
{
// тут вычисления индиктора
total_bars[i] = iBars(instrument, TimeFrames[i]);
}
}
The main problem is that iBars does not load prices of periods other than the current one...
all MQL tricks like IndicatorCounted and RefreshRates
only work for the current period, i.e. iBars takes from the history and the history is only loaded by changing the period on the chart. What to do? Does MQL have some tool for loading bars of other periods (different from the current one) in the background?
p.s. hope I'm not rambling ((The main problem is that iBars does not load prices for a period other than the current...