Forex



Go Back   Forex Trading > Downloads > Expert Advisors - Metatrader 4
Forex Forum Register More recent Blogs Calendar Advertising Others Help






Register
Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.

From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.

Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
  • Elite Section
    Get access to private discussions, specialized support, indicators and trading systems reported every week.
  • Advanced Elite Section
    For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
See more

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 01-05-2008, 05:54 PM
Junior Member
 
Join Date: Nov 2005
Posts: 26
jerseydevil20 is on a distinguished road
"Trade initiated at" symbol on chart

Has anyone created an indicator that places a symbol on the chart at the point where a trade was initiated? I would prefer that to the line that mt4 puts on the chart. When price crosses the line several times, it can get confusing as to how long you have been in the trade.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #2 (permalink)  
Old 01-21-2009, 10:58 AM
Member
 
Join Date: Feb 2007
Posts: 87
BigBoppa is on a distinguished road
A small utility ea for statistics...

If you have many eas running at one account, you might know the problem:
At weekend you have to count pips in the account history by hand to see if an ea was profitable or not, now at 5 digit chart this has become hard work...

So i wrote a small utility ea to do daily/weekly/... statistics without counting pips by hand.
You can easy add your new eas by name and magic, up to 500 ea.

Just drop the ea on a chart and select the desired history period at account history tab.
It is a good idea to set all chart colors to NONE.
If ticks come in then the values are updated only once a minute to save cpu time .
If you are at weekend and no tick comes in, just change timeperiod of the chart and do a
mouse click in the chart window to get ea update its values.

show_warning = true shows a stop signal if trading is disabled at attached chart.

Do not look at the code, it is quick and dirty, never planned to become so many lines...

Have fun,
bbop
Attached Images
File Type: gif demo.gif (5.5 KB, 1605 views)
Attached Files
File Type: mq4 AccountHistory_tsd_03.mq4 (15.3 KB, 258 views)

Last edited by BigBoppa; 02-21-2009 at 09:03 PM. Reason: Updated version
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #3 (permalink)  
Old 01-23-2009, 10:47 PM
darkkiller's Avatar
Senior Member
 
Join Date: Jul 2007
Location: Malaysia
Posts: 258
darkkiller is on a distinguished road
Total PIP

Hi
i looking for script,indicator or ea that can calculate how much pip i gain for a week or per month.Can someone show me?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #4 (permalink)  
Old 01-24-2009, 06:20 AM
Member
 
Join Date: Jul 2008
Posts: 43
latimeria is on a distinguished road
This is a quite nice tool, 'cause I'm always running more than 10 eas
and need this kind of statistics.

Thanks BigBoppa!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #5 (permalink)  
Old 01-24-2009, 12:34 PM
Member
 
Join Date: Jul 2008
Posts: 30
sfindlay is on a distinguished road
Thank you. You have saved me hours of analysis.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #6 (permalink)  
Old 01-24-2009, 02:46 PM
zupcon's Avatar
Senior Member
 
Join Date: Dec 2005
Location: Malta
Posts: 266
zupcon is on a distinguished road
This is a great utility, thanks for sharing
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #7 (permalink)  
Old 01-24-2009, 04:21 PM
Badguy's Avatar
Member
 
Join Date: Jan 2006
Posts: 61
Badguy is on a distinguished road
Thumbs up Big thanks !!

Big THANKS to BigBoppa !!

That's a tool I waited for !!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #8 (permalink)  
Old 01-24-2009, 05:52 PM
Member
 
Join Date: Jul 2008
Posts: 43
latimeria is on a distinguished road
suggestion

Hi BigBoppa,

I noticed that history and statistics doesn't accord in some cases.
So I investigated your code (sorry!).

1) Cancelled Pending Orders
Some eas use buystop and sellstop. They usually delete(cancel) opposite orders when a position is taken(e.g. when buystop is hit, delete sellstop). And some eas delete orders by time expiration.

In this case, this utility EA count orders that was not actually executed as a transaction. So I (personally) added a code to skip pending orders just after OrderSelect.

if(OrderType() > 1) continue; // skip if order is not OP_BUY or OP_SELL

2) Serial MagicNumbers
I couldn't figure out why (there may be reason) this EA checks "magic[n]+1" when checking OrderMagicNumber.

I have some EAs that have serial MagicNumbers(e.g. 1111 and 1112). In this case, a transaction for 1112 will be counted 2 times.

So I just changed (personally)
if (OrderMagicNumber() == magic[n] || OrderMagicNumber() == magic[n]+1)
to
if (OrderMagicNumber() == magic[n])

Hope it will be of use.

Last edited by latimeria; 01-24-2009 at 06:24 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #9 (permalink)  
Old 01-25-2009, 07:07 AM
darkkiller's Avatar
Senior Member
 
Join Date: Jul 2007
Location: Malaysia
Posts: 258
darkkiller is on a distinguished road
Quote:
Originally Posted by BigBoppa View Post
If you have many eas running at one account, you might know the problem:
At weekend you have to count pips in the account history by hand to see if an ea was profitable or not, now at 5 digit chart this has become hard work...

So i wrote a small utility ea to do daily/weekly/... statistics without counting pips by hand.
You can easy add your new eas by name and magic, up to 500 ea.

Just drop the ea on a chart and select the desired history period at account history tab.
It is a good idea to set all chart colors to NONE.
If ticks come in then the values are updated only once a minute to save cpu time .
If you are at weekend and no tick comes in, just change timeperiod of the chart and do a
mouse click in the chart window to get ea update its values.

show_warning = true shows a stop signal if trading is disabled at attached chart.

Do not look at the code, it is quick and dirty, never planned to become so many lines...

Have fun,
bbop
Thanks BigBoppa,this what i looking for!!!
Attached Images
File Type: gif pips.gif (16.0 KB, 1344 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #10 (permalink)  
Old 02-21-2009, 07:21 PM
Junior Member
 
Join Date: Feb 2009
Posts: 1
roser59 is on a distinguished road
Thanks for share this practical utility.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
dose it posible to creat any function of "mql code" posting in this forum? phoenix MetaTrader 23 09-23-2009 04:10 PM
"Gordago Stock Optimizer" - easily generates Expert Advisors De Vinci Tools and utilities 18 04-12-2009 02:01 AM
How to "teach" and to use the AI ("neuron") EA? danil Suggestions for Trading Systems 5 07-15-2008 05:26 PM
Are there no "and" "or" operators in mql4?? kxracer500 Metatrader 4 2 06-23-2007 09:14 AM


All times are GMT. The time now is 05:35 PM.



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