| New signals service! | |
|
|||||||
| Register in Forex TSD! | |
|
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time). Click here to register and get more information |
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
get max drawdown function
i would like to write a function which gets the max drawdown from trade that have been closed. i have come up with two solutions.
1. calculate the drawdown while the trade is still active. saving the number to a global variable and writing the data to file according to ticket number. MT4 would always have to be online. 2. get the drawdown by geting the highest high or lowest low from the 1 min chart. the problem here is we have to have the 1 min history for the trade. (i would use this method if i could get the 1 min bars neccessary if they werent already downloaded) I would like to come up with a nicer way of getting max drawdown. Any input is appreciated. |
|
|||
|
drawdown
What i mean by drawdown is, what is the lowest point in the trade. For example, if the trade hit the stoploss, then the stoploss would be the drawdown. Now if the trade ended up on the positive side and was -15 pips at one point then the drawdown would be 15. Lastly, if the trade close at -15 pips but was -30 at one point then the drawdown would be 30.
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Cummalative Drawdown | TimeFreedom | Tools and utilities | 2 | 05-25-2007 11:46 PM |
| EA Time function | Kurka Fund | Expert Advisors - Metatrader 4 | 4 | 03-19-2007 07:55 AM |
| Function for high and low | maje | Setup Questions | 3 | 05-16-2006 12:23 PM |
| MT4 function/EA question | eastmaels | Questions | 2 | 04-16-2006 03:43 AM |