Forex



Go Back   Forex Trading > Programming > MetaTrader
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
  #1581 (permalink)  
Old 02-12-2009, 06:37 PM
Junior Member
 
Join Date: Jul 2007
Posts: 3
PureSymmetry is on a distinguished road
Rectangle tool which counts number of candles contained within

Hello chaps,
I'm wondering if any of you fine fellows knows how to re=program the rectangle tool so that it counts how many candles periods are contained within it. Reasoning behind this is that during a range, the longer it continues, the greater and stronger the breakout.

Anyone have this or can let me know how to program this?

Thanks all!

~J
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
  #1582 (permalink)  
Old 02-12-2009, 11:19 PM
Junior Member
 
Join Date: Jan 2009
Posts: 18
PEDCORD is on a distinguished road
MTF_AFStar

Hi increase,

Thank you very much. I have very good results in 15 and 30 time frame USDJPY.

Thank you.
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
  #1583 (permalink)  
Old 02-12-2009, 11:45 PM
Junior Member
 
Join Date: Jan 2009
Posts: 18
PEDCORD is on a distinguished road
MTF_AFStar

Hi increase,

Thank you very much for your work in my favorit indicator. Now I will be able to take more and more pips much easy.

In my opinion this indicator is very, very good, with stop loss 15pips in time frame 15.

Try it too.

Thank you very much.
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
  #1584 (permalink)  
Old 02-12-2009, 11:51 PM
Member
 
Join Date: May 2008
Posts: 31
payback is on a distinguished road
How to select the biggest lost?

is there a way to select the biggest losing trade?
i need it to modify my MM strategy thanks!!!
Andrea
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
  #1585 (permalink)  
Old 02-12-2009, 11:59 PM
Member
 
Join Date: May 2008
Posts: 31
payback is on a distinguished road
sorry i was meaning the biggest lost in history
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
  #1586 (permalink)  
Old 02-13-2009, 06:18 AM
Junior Member
 
Join Date: Jun 2008
Posts: 4
wolfboy is on a distinguished road
Indicator Price Label

Help Please!

Can anyone tell me why the following indicator code will plot a down arrow but will NOT plot a price label. Any other style will show up at the correct level, but it doesn't have the price shown?


int init()
{
DeleteAllObjects();
IndicatorBuffers(2);

SetIndexBuffer(0,Buy);
SetIndexStyle(0,DRAW_ARROW,DRAW_ARROW,BuySize,BuyC olor);
SetIndexArrow(0,SYMBOL_LEFTPRICE); < doesn't show up
SetIndexShift(0,1);
SetIndexBuffer(1,Sell);
SetIndexStyle(1,DRAW_ARROW,DRAW_ARROW,SellSize,Sel lColor);
SetIndexArrow(1,SYMBOL_ARROWDOWN); < plots just fine
SetIndexShift(1,1);

return(0);
}

Thanks!
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
  #1587 (permalink)  
Old 02-13-2009, 12:02 PM
Junior Member
 
Join Date: Sep 2007
Posts: 2
pink100 is on a distinguished road
Squize_MA indicator

Nice indicator.

Maybe someone can put an alert when the blue line crosses the red one.


Thanks
Attached Files
File Type: mq4 Squize_MA.mq4 (2.7 KB, 15 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
  #1588 (permalink)  
Old 02-13-2009, 01:54 PM
Member
 
Join Date: May 2008
Posts: 31
payback is on a distinguished road
please, can u give me an hint for tracking down the biggest loss?
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
  #1589 (permalink)  
Old 02-13-2009, 02:05 PM
Junior Member
 
Join Date: Dec 2008
Posts: 12
rwb181 is on a distinguished road
Quote:
Originally Posted by Wiley View Post
On this site, at this link http://www.forex-tsd.com/87589-post372.html is a copy of the DIN_Kukus_EA_V2.6. If you view the EA's contents, you will find a function that checks for order losses in your order history, just as you have discribed doing for yourself. You can use this working example of how to extract the number of successful trades from your order history. You can modify it to extract history for a particular period of time as well, but I hope this will help you see how to accomplish what you propose to do for yourself...
Hi Wiley,

Thanks for the help.
To be honest, I have been so busy working on a solution, I forgot that I posted the question.
I spent that day going through the mql4 manual and figured out a way to do it.
When it is time to start trading, I set a variable called "OpeningTime" equal to the current time. During the trading session and if a trade has been closed, I have the EA cycle through the order history and look for any orders that are from the given chart and EA and also have a closing time that is greater than "OpeningTime". It then compares the profit (or loss) of the order (using the OrderProfit() function) with what I have set (with an external variable) as being enough. I set it up so that I can stop trading if I made enough of a profit and/or if I have lost a given amount.
Backtesting has shown that it really doesn't improve the results of an already optimized EA any (in fact, more often it makes them worse), which is to be expected because we never know if the next trade (which I have now eliminated) will make things better or worse.
It does allow me to set more stringent conditions from the start though. So, the EA can be optimized using the "get out, I've had enough" option from the start. And that does seem to make my results quite a bit better.

Thanks for your help.
Ron
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
  #1590 (permalink)  
Old 02-14-2009, 07:04 AM
increase's Avatar
Senior Member
 
Join Date: May 2006
Posts: 844
increase is on a distinguished road
Trying to use the attached Dianpoli in an EA I added arrows to read those in icustom, but my icustom line does not pick the up, any help please?

Here is what I use in the EA val2 = iCustom(Symbol(), Period(), "test3",300,15,1,1,0); & val3 = iCustom(Symbol(), Period(),"test3",300,15,1,2,0);
Attached Files
File Type: mq4 test3.mq4 (4.6 KB, 13 views)
__________________
New to Forex? Get all you need for Free at my site Click Here
You can also get my Hot Forex System (scroll to the bottom of the page): Click Here
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

Tags
#include, candle time, CHinGsMAroonCLK, code, coders guru, conditionally, dll, eli hayun, Eur_harvester.ex4, expert adviser, expert advisor, forex, higher high, how to code, indicator, I_XO_A_H, kehedge, mechanical trading, metatrader command line, mt4, MT4-LevelStop-Reverse, OrderReliable.mqh, programming, rectangle tool, trading, volty channel stop


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
How to code this? iscuba11 Metatrader 4 mql 4 - Development course 1 08-03-2007 05:22 PM


All times are GMT. The time now is 10:45 AM.



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