Forex
Google
New signals service!

Go Back   Forex Trading > Discussion Areas > Metatrader 4


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

Reply
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 03-04-2008, 08:02 AM
Senior Member
 
Join Date: Jan 2007
Location: not so remote
Posts: 2,185
fxbs is on a distinguished road
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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 03-11-2008, 04:42 PM
MiniMe's Avatar
Senior Member
 
Join Date: Nov 2006
Location: Montréal
Posts: 1,280
MiniMe is on a distinguished road
Quote:
Originally Posted by fxbs View Post
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
hi fxbs I am writing my first expert , I am using this funciton but I am not sure its 100% correct, sorry I am still debugging my code but I hope you get the idea

//+------------------------------------------------------------------+
//| 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);
}

}

Quote:
Originally Posted by fxbs View Post
it' s not funny .....
come on it was funny

Last edited by MiniMe; 03-11-2008 at 04:45 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 03-11-2008, 07:58 PM
Senior Member
 
Join Date: Jan 2007
Location: not so remote
Posts: 2,185
fxbs is on a distinguished road
yea, funny - mayby to everybody except Togu

MiniMi- about expert - i don't know, sorry Something i know(or heard) something don't
but many people knows this stuff, i believe they will answer
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

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


All times are GMT. The time now is 08:27 AM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.