@trader-philipps
Just checking whether you saw this...?
Latest posts made by DynamOut
-
RE: Testing Historical Trades with a new Strategyposted in Questions & Answers
-
RE: Testing Historical Trades with a new Strategyposted in Questions & Answers
@trader-philipps
Yes, to clarify, when the client receives notification of receipt of funds (say USD), he then needs to decide when he will sell those USD to ZAR. (we have the date/time stamp of receipt as well as his conversion date/time stamp & sell price)
We are looking to optimize the strategy for timing the selling of these USD funds to ZAR.
So what we want to do is initiate a USDZAR buy at this time/date stamp and then run our strategy on this trade until it executes a sell signal of this pair. And then compare with what he actually achieved on these trades.
Looking at around 234 trades the past year, mostly on USDZAR and EURZAR but also some GBPZAR and CADZAR, per below.
USD/ZAR 111
EUR/ZAR 96
GBP/ZAR 17
CAD/ZAR 10
Make sense? -
RE: Testing Historical Trades with a new Strategyposted in Questions & Answers
@l-andorrĂ @trader-philipps @roar
Could anyone assist in how to do this multidimensional array? -
RE: Testing Historical Trades with a new Strategyposted in Questions & Answers
@trader-philipps Yes, there would be just one trade at a time for each pair. These would all be buy entries
-
RE: Testing Historical Trades with a new Strategyposted in Questions & Answers
@trader-philipps Yes, that would be the first step.
Then next would be how best to loop through these trade by trade with an array in a custom block.
Appreciate any assistance / direction. -
Testing Historical Trades with a new Strategyposted in Questions & Answers
I have a client that is involved in exports, and has strategy that we have developed for the converting of their income funds from USD, EUR, GBP and CAD to ZAR.
I am wanting to test out a strategy for improving on our current one, through back-testing these historical trades using this new strategy.
I have a spreadsheet with the following data from the trades:
- Date/time stamp when these funds were received.
- Date/time stamp when these funds were traded.
- Size of the trade
- Price
What I am wanting to do is to use the received date/time as a trade condition to initiate a buy. And then use the new strategy to execute the sell for each trade. And do this for each of the actual receipts. And then compare results to what was actually achieved
From some research, it would seem the data could (for a start) be pasted in as an array in a custom mql4 block in FXdreema on initialisation. And then the trade conditions lookup can simply loop through this array in sequential order row by row (if my language is correct)?
Once this works, then next level could be to import this from some library file on initialisation.
Does this make sense? If so, can anyone help as to how to go about this?
Thanks in advance
James