Forum

want stop strategy tester writing log file

When i do backtests with M1 data for a couple of years, of course the log file gets massive. As the backtest goes on I see a definite slowing of progress (slowing of simulation time covered per unit of real time). And I think this is related to the log file getting too big. Because as we know - a

Backtesting with tick data

Backtesting with tick data I think I have found a good way of doing this in metatrader - and I have got a fair way through this method but have got STUCK and seek some help with the final stage. 1) Got tick data from a company (commercial source) symbol: CL (oil) free sources eg. dukascopy etc. dont

problematic line of MQL4 code

can anyone find a problem with the following code? four = (four*2) + 30; Is this bad coding? Because it is not doing what i want it to do. // ------------------------------------------ MORE DETAIL: - See the code below. // so every time "q" goes up in value by one, then the value of "four" should be

buggy mlq4/backtester?

I have a trade system in which when one trade hits its Stop loss (SL) another trade hits its Take Profit (TP) - so they should both close at exactly the same price, one via SL and the other via TP SL price of trade 1 == TP price of trade 2. e.g. 75.02 == 75.02 This happens ok most of the time in

buggy MlQ4 ??? Trailing stop code not working

The following is some trailing stop loss code that compiles ok but then when i run the EA on backtesting it just doesnt act to put a trailing stop loss on. The trade just runs off into "infinite" profit actually, as when I open the trade I dont specify a TP value and at simulation end the trade is

wont open orders with very large stop loss.

In backtesting, I have the problem that if I try to send an order with a large stop loss (SL) and/or a large take profit (TP) value (eg. value of 9000, as illustrated by the code below) then the system rejects it and doesnt open it (not all the time though bizarely). If I send it with a lesser value

Take Profit/Stop Loss

If I send and open an order with a Take Profit setting and a Stop Loss setting. Is it then guaranteed that these will be adhered to? (assuming that the SL is not closer than the STOPS level of course) A big issue is this - I have noticed that connectivity between my metatrader and the broker server

backtesting (tick data)

My system is in MLQ4 on metatrader and trades sweet crude oil futures . It does well in forward testing in the month or so I have run it. It does reasonably well in backtesting in metatrader. But of course the metatrader backtester is extrememly limited. I would like tick data for sweet crude oil

problem with Arrays in MLQ4

Why wont MLQ4 let me do this: escape[index] = Bid; When I check escape[index] or escape[0] it is empty (0). MLQ4 will let me do the following however: escape[0] = Bid; OR escape[1] = Bid; In both these cases it works: the value of Bid gets assigned to the array. I just dont understand why MLQ4 wont

searching arrays

I have a system where every time I open an immediate live order, I also open 2 pending orders. I now want to add to this system so that whenever a live order is closed (manually or by Take Profit or Stop Loss) then its associated 2 pending orders are closed as well. I have made an effort towards