| 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 (1) | Thread Tools | Display Modes |
|
|||
|
Quote:
|
|
|||
|
Last order profit
Hi
This is what I use - works well. [CODE/]/////////// int i,orders; //Determine if the last trade was a winner or losser orders = HistoryTotal(); //Print("PP0: orders : ", orders); for(i=orders-1;i>=0;i--) { if(OrderSelect(i,SELECT_BY_POS,MODE_HISTORY)==fals e) { Print("Error in history!"); break; } // if((OrderSymbol()!=Symbol()) || (OrderType()>OP_SELL) || (OrderMagicNumber() != MagicNum1)) continue; //Print("PP11 Profit : ", OrderProfit()); if(OrderProfit()>0) { wl = -1; break; } if(OrderProfit()<0) { wl = 1; break; } } [\code] Last edited by cardio; 04-25-2006 at 07:41 PM. |
|
||||
|
Please check my history script and you'll find the answer
I hope so:http://www.metatrader.info/node/111 |
|
||||
|
Quote:
http://www.metatrader.info/node/111 This is the code you want: PHP Code:
|
|
|||
|
Quote:
I dont know how to convert Meta to Mt4, but i've this indicator... Hope u like it... |
|
||||
|
Quote:
This Indicator does not catch the Wolfe Wave acuratly every time. May be someone can improve it a little? ![]() |
|
|||
|
Profit in Pips
Hey,
Can anyone think of a way to calculate the profits as pips, as opposed to profit in $? ie. a script to return the total number of pips profit so far. Or, the total number of pips profit between month x and month y. Thanks.
__________________
fxdk |
![]() |
| Bookmarks |
| Tags |
| candle time, CHinGsMAroonCLK, coders guru, expert advisor, forex, how to code, I_XO_A_H, mechanical trading, trading |
| Thread Tools | |
| Display Modes | |
|
|
LinkBacks (?)
LinkBack to this Thread: http://www.forex-tsd.com/metatrader-programming/554-how-code.html
|
||||
| Posted By | For | Type | Date | |
| Need an experienced programmer? - Page 2 | Post #0 | Refback | 09-24-2008 07:24 AM | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to code this? | iscuba11 | Metatrader 4 mql 4 - Development course | 1 | 08-03-2007 05:22 PM |