[Archive!] Any rookie question, so as not to clutter up the forum. Professionals, don't pass it by. Couldn't go anywhere without you - 2. - page 42

 
vigan:

WHO KNOWS?

how do I programmatically refer to the Bollinger that says apply to "Previous Indicator's Data" ? what should I put in the applied_price field?

thanks

via indicator https://docs.mql4.com/ru/indicators/iBandsOnArray
 
Then does it miss some of the stops, orders and profits?
 
sergeev:

If you want an array to be filled in the function, pass in a reference

if you just want the first element to be returned

then


Cool))

Thanks for the answer!

If I pass by reference, then there's nothing to return, the array will already be changed, right?))

Is there any way to return a pointer to the array?

Thanks for the reply!

 
r.ig.h:
Then it misses some stops, orders and profits, doesn't it?
No. Everything is triggered, but after the opening of a new bar. check it yourself in visual mode
 
BBSL:


If I pass by reference, there's nothing to return, the array will already be changed, right?))

yes.

Is it possible to return a pointer to an array?

no

 
volshebnik:



Vitaly, write me in your personal message what was the reason for the fact that the optimization was not going beyond some MA parameters - Vinin suggested the solution - there was something about the number of bars on the history, some kind of additional testing ... It doesn't take much in a nutshell ... I understand, I haven't encountered it myself, but I don't know...
 

If the average loss per trade is more than 2 spreads, it works on any EA. PAUKAS suggested this.

I have applied this tip to this case:

Strategy Tester Report
transerk1c
FIBO-FIBO Group MT4 Demo Server (Build 229)

SymbolGBPUSD (Great Britan vs US Dollar)
Period5 Minutes (M5) 2000.01.17 00:05 - 2000.01.31 23:55 (2000.01.16 - 2000.02.01)
ModelAll ticks (most accurate method based on all smallest available timeframes)
ParametersPeriod_MA=60; ProfitFr=218; NFr=1; Limit=15; PERIOD=5; MODE=3; PRICE_TYPE=6;

Bars in history4109Modelled ticks58090Modeling quality89.97%
Chart mismatch errors0




Initial deposit10000.00



Net profit-162.89Total profit0.00Total loss-162.89
Profitability0.00Expected payoff-14.81

Absolute drawdown162.89Maximum drawdown320.55 (3.16%)Relative drawdown3.16% (320.55)

Total trades11Short positions (% win)6 (0.00%)Long positions (% win)5 (0.00%)

Profitable trades (% of all)0 (0.00%)Loss trades (% of all)11 (100.00%)
Largestprofitable trade0.00losing deal-18.58
Averageprofitable deal0.00Deal loss-14.81
Maximum numbercontinuous wins (profit)0 (0.00)Continuous losses (loss)11 (-162.89)
MaximumContinuous Profit (number of wins)0.00 (0)Continuous loss (number of losses)-162.89 (11)
Averagecontinuous winnings0continuous loss11


 

And this is what I got ...

Strategy Tester Report
Backwards
FIBO-FIBO Group MT4 Demo Server (Build 229)

SymbolGBPUSD (Great Britan vs US Dollar)
Period5 Minutes (M5) 2000.01.17 00:05 - 2000.01.31 23:55 (2000.01.16 - 2000.02.01)
ModelAll ticks (most accurate method based on all smallest available timeframes)
ParametersPeriod_MA=60; ProfitFr=15; NFr=1; Limit=215; PERIOD=5; MODE=3; PRICE_TYPE=6;

Bars in history4109Modelled ticks58090Modeling quality89.97%
Chart mismatch errors0




Initial deposit10000.00



Net profit-70.19Total profit148.22Total loss-218.41
Profitability0.68Expected payoff-6.38

Absolute drawdown164.89Maximum drawdown185.89 (1.85%)Relative drawdown1.85% (185.89)

Total trades11Short positions (% win)5 (100.00%)Long positions (% win)6 (83.33%)

Profitable trades (% of all)10 (90.91%)Loss trades (% of all)1 (9.09%)
Largestprofitable trade18.00losing transaction-218.41
Averageprofitable deal14.82losing trade-218.41
Maximum numbercontinuous wins (profit)8 (118.22)continuous losses (loss)1 (-218.41)
MaximumContinuous Profit (number of wins)118.22 (8)continuous loss (number of losses)-218.41 (1)
Averagecontinuous winnings5continuous loss1


Doesn't the advice.... work? It still ends up being a loss, after all.

 
Sergey_Rogozin:
You make another normal buffer and process it with a dash.
 
Good day!
Can someone advise how to make an EA indicate (write) on the terminal screen
which set of input parameters is currently loaded. (for example - proba.set )
Reason: