Khalid,Khalaad wrote:A request to all programmers.
Is it possible to calculate, and also add to a Trade History CSV.ex4, the fololowing:
maximum run-up before a trade closes; and
maximum drawdown before a trade closes;
as in the attached Excel file?
Thank you.
Khalid
I took a look at modifying a script I wrote years ago to do what you want. However, there are some problems with giving you good data. The best granularity we have is a minute, so while we know when within that minute you entered/exited a trade, we don't know where the price extremes fall within the minute. It could be that you exit in the last 20 seconds of a bar, but the bar could continue to move either for or against your trade. If this movement is at the extreme of the trade's movement, we'll overstate either the run up or draw down by including the High/Low of that end bar.
Do you want to skip the entry and exit bars in the calculations?
It won't be as pretty as your example, I'm simply creating a CSV file to be imported.
George