Forum

How to use previous optimization results as input for new optimization

I have the XML file containing the results of an optimization I ran earlier, I want to use the input variables of say the top 100 passes of those results and run a new optimization that only uses these 100 variables

Only sending relevant ticks to EA for backtesting

I am currently backtesting my EA using 1 minute OHLC but since the EA trades on a higher time frame, there are a lot of "unnecessary" ticks that the EA is being run on slowing down the optimisation. What I would like to achieve is to send every single tick to the EA until it enters into a trade

Is there a way to use 1 HOUR OHLC modelling while backtesting

From what I understand the current modelling of price data using 1 minute OHLC, sends 4 ticks (Open,High,Low,Close) of the 1 minute bar to the EA. Is there a way to send these 4 ticks from another time frame, for example the OHLC of 1 hour bars to the EA? My reasoning being that it would be the most

How to change global variable value from inside function

How do I change the value of a global variable from inside a function. I tried simply Globalvar1 = 1 ; void changing.globalvar1() { Globalvar1 = (Globalvar1* 2 ); } But this does not work. How do I achieve this? Thank you

Using relative drawdown instead of maximal drawdown while optimizing

The default option to optimize using "Drawdown min" uses "Equity drawdown maximal". I would like to code a custom criteria which uses "Equity drawdown relative" to optimize. I looked up the OnTester documentation but couldn't really understand it. How could I define a custom max criteria which is

How do I double volume when balance doubles?

I want to double the volume as soon as balance doubles, I tried the following code OnTick but it doesn't change the volume even after balance is over 20000. I also understand that this code will keep on adding 2.5 to the volume every tick as long as balance stays above 20000. How do I write the code

Strategy tester only using 1 core

In the agents tab all cores are "ready" and enabled but I can only select one of them, it doesn't give me the option to select more than one core. I searched everywhere but couldn't find any solution

iCustom Indicator read error

I have a custom indicator which I want to call using iCustom. Whenever I run the code the journal gives me the following errors. program file added: \Indicators\Tradingthetrend.ex5. 24439 bytes loaded program file Indicators\Indicators\Tradingthetrend.ex5 read error loading of Tradingthetrend