| 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 |
|
|||
|
right, and since we can't retrieve all the history data there is common method of averaging (make sense)
as RR mentioned : QUOTE=ralph.ronnquist;194990]if there is an open price and a close price, you take their difference and divide by the point size.[/QUOTE Last edited by fxbs; 03-04-2008 at 08:12 AM. |
|
||||
|
Quote:
//+------------------------------------------------------------------+ //| COUNT THE PIPS IN LOSS | //+------------------------------------------------------------------+ double LossPips (int mgc) // function will count the open pips & return LossPips { for(nCnt = 0; nCnt < OrdersTotal(); nCnt++) { int PipsOpenPL=0; OrderSelect(nCnt, SELECT_BY_POS, MODE_TRADES); if(OrderMagicNumber() == mgc) { if (OrderType()==OP_BUY) { PipsOpenPL=PipsOpenPL+MathRound((OrderClosePrice()-OrderOpenPrice())/MarketInfo(Symbol(),MODE_POINT)); } if (OrderType()==OP_SELL) { PipsOpenPL=PipsOpenPL+MathRound((OrderOpenPrice()-OrderClosePrice())/MarketInfo(Symbol(),MODE_POINT)); } } return(PipsOpenPL); } } come on it was funny
__________________
“Risk comes from not knowing what you're doing” “Never argue with an idiot. They drag you down to their level then beat you with experience” Last edited by MiniMe; 03-11-2008 at 04:45 PM. |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 100 pips | rodrigokaus | Expert Advisors - Metatrader 4 | 154 | 11-20-2008 01:42 PM |
| OILFXPRO D T S S 150 Pips per day/40,000 pips per annum | el cid | Manual trading systems | 194 | 08-08-2008 08:22 PM |
| at least 10-50 pips a day | elihayun | Manual trading systems | 48 | 05-28-2007 12:27 PM |
| MA what not count in the asian session bars | lacika | Setup Questions | 0 | 11-22-2006 03:32 PM |
| Script: Count your net positions in MT4 for a symbol | ycomp | Metatrader 4 | 4 | 11-10-2006 04:23 PM |