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.
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.
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
Last edited by BigBoppa; 02-21-2009 at 09:03 PM.
Reason: Updated version
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])
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...