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"
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
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
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
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
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)
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
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
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
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