[WARNING CLOSED!] Any newbie question, so as not to clutter up the forum. Professionals, don't go by. Can't go anywhere without you. - page 798

 
Vinin:

There is an error in the indicator code.
it's a standard ROC from CodeBase//... downloaded a couple of days ago... What is it ?
 
obla4ko:

Here is the code for the ROC indicator


Corrected
Files:
roc.mq4  3 kb
 

Everything works with the corrected indicator and Expert Advisor

Robot_Rocky_Rich
Alpari-Demo (Build 226)


Symbol GBPAUD (Great Britan Pound vs Australian Dollar)
Period 1 Hour (H1) 2007.11.07 05:00 - 2009.12.30 23:59 (2000.01.01 - 2009.12.31)
Model By open prices (only for Expert Advisors with explicit bar opening control)
Parameters TakeProfit=700; Sl=200; Lots=0.1;
Bars in history 13252 Modelled ticks 26402 Simulation quality n/a
Chart mismatch errors 0
Initial deposit 10000.00
Net profit -10016.60 Total profit 10681.49 Total loss -20698.09
Profitability 0.52 Expected payoff -11.17
Absolute drawdown 10016.60 Maximum drawdown 10143.75 (100.16%) Relative drawdown 100.16% (10143.75)
Total trades 897 Short positions (% win) 472 (19.92%) Long positions (% win) 425 (17.88%)
Profitable trades (% of all) 170 (18.95%) Loss trades (% of all) 727 (81.05%)
Largest profitable trade 67.75 losing transaction -36.00
Average profitable deal 62.83 Deal loss -28.47
Maximum continuous wins (profit) 5 (323.38) Continuous losses (loss) 44 (-1262.69)
Maximum Continuous Profit (number of wins) 323.38 (5) Continuous loss (number of losses) -1262.69 (44)
Average continuous winnings 2 continuous loss 7

 
Vinin:

Corrected

You mean

extern bool UsePercent = true;
нужно false, вместо true? Это я поменяла, чтобы он оперировал с относительными величинами, а не абсолютными, ведь абсолютные значения скоростей не информативны
 - их невозможно сравнивать... Впрочем с False он все равно виснет... :((((   Может что-то еще?
 
obla4ko:

You mean

Files:
experts.rar  2 kb
 
Vinin:

Thank you! I'll try that too...running...:))))
 
Vinin:

I have installed the corrected by you indicator and advisor - everything is the same - not a single transaction since the beginning of the year, in the magazine until the end of March says loaded suessessfully? and then gives error #131

Robot_Rocky_Rich
Alpari-Demo (Build 226)



.
SymbolGBPAUD(Great Britan Pound vs Australian Dollar)
Period1Hour (H1) 2010.01.07 00:00 - 2010.07.30 22:59 (2010.01.07 - 2010.07.31)
ModelBack prices (only for Expert Advisors with explicit bar opening control)
ParametersTakeProfit=700; Sl=200; Lots=0
01;
Bars in history4106Simulatedticks7604Simulation qualityn/a
Chart mismatch errors0
Initial deposit1000.00
Profitable trades (% of all) Largest
Net profit0.00Totalprofit0.00Totalloss-0.00
ProfitabilityWin expectancy0.00
Absolute drawdown0.00Maximumdrawdown0.00 (0.00%)Relative drawdown0.00% (0.00)
Total trades0Shortpositions (% winners)0 (0.00%)Long positions (% winners)0 (0.00%)
0 (0.00%)Losing trades (% of all)0 (0.00%)
profitabletrade0.00losingtrade-0.00
Average profitabletrade0.00losingtrade-0.00
Maximum numberofuninterruptedwins (profit)0 (0.00)uninterrupted losses (loss)0 (-0.00)
Maximum uninterruptedprofit (number of wins)0.00 (0)uninterrupted loss (number of losses)-0.00 (0)
Average uninterruptedwins0 uninterruptedlosses0


---------------------------

and what could this be about, I don't understand anything at all...:(((((

 
artmedia70:
Well, optimizing by checkpoints is brutal... What do you want to achieve with a crude method that shouldn't even be taken into account?
Only by ticks or by bars, if the Expert Advisor has an explicit control of opening a new bar and works only by these bars...
Therefore - why?


Why is it hard to optimise by checkpoints? The results of testing using the method "All ticks" and "Checkpoints" differ in my EA by no more than 5%.

But my question remains unanswered))

 
a-0888:


Why is it hard to optimize by checkpoints? The results of testing by the method "All ticks" and "By checkpoints" differ in my EA by no more than 5%

and still my question has not been answered))

I told you that this is the most coarse method the results of which cannot be taken into account, and you are optimizing by them. Just run the test using all ticks and check points preloading the entire quote history - let's see the difference... :)
 
obla4ko:

I put the indicator and advisor you fixed - all in the same vein - no trades since the beginning of the year, the logbook says loaded suessessfully until the end of March? and then gives error #131

What could it be, I don't understand it at all...:(((((


Set position size Lots=0.1 and you will be happy