Forex
Google
New signals service!

Go Back   Forex Trading > Programming > Metatrader Programming


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 (1) Thread Tools Display Modes
  #721 (permalink)  
Old 02-21-2008, 10:23 AM
Linuxser's Avatar
Moderator
 
Join Date: May 2006
Location: Helliconia (Spring)
Posts: 3,322
Blog Entries: 46
Linuxser has disabled reputation
Quote:
Originally Posted by etrade View Post
Can anyone let me know how can i change this code

SetIndexStyle(0,DRAW_ARROW);
SetIndexArrow(0, 233);
SetIndexStyle(1,DRAW_ARROW);
SetIndexArrow(1, 234);
SetIndexStyle(2,DRAW_ARROW);
SetIndexArrow(2, 233);
SetIndexStyle(3,DRAW_ARROW);
SetIndexArrow(3, 234);


to change arrow shapes to dots, circle, and other available shapes

In fact, I need to know the codes for such signals
1-Search SetIndexArrow in your MetaEditor Navigator/ mql4 website.

2-Click on Arrow Codes link.
__________________
Elite Manual Trading | Portfolio | Calendar | Suggestions to improve the forum | My Blog

Remember: Signatures must have three lines as maximum
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #722 (permalink)  
Old 02-21-2008, 11:15 AM
Senior Member
 
Join Date: Jan 2006
Posts: 1,119
omelette is on a distinguished road
TSD's 'Webget' dll...

TSD's web-page downloader is far simpler to use than the dll used in the FF calander indicator, however is has an extremely annoying bug (or is it?) of returning a empty string on the initial call, only to work properly when called again - but only when the EA is 'interfered' with manually (user-settings etc.) Sticking the calling code in a loop until it downloads the webpage does not work, as a blank string is always returned.

Does anyone know reliable way around this problem, or is the dll source available somewhere???
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #723 (permalink)  
Old 02-21-2008, 12:23 PM
Junior Member
 
Join Date: Feb 2008
Posts: 2
ritzyrex is on a distinguished road
Greetings from a new member

I am a newbie to expert advisors and i just want to say i appreciate all i have read from this forum as a guest. That really prompted me to become a member of this great forum. I have a very good trading strategy which i would like to be coded into an EA but i would send the strategy in another post. Keep up the good work
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #724 (permalink)  
Old 02-21-2008, 12:27 PM
etrade's Avatar
Senior Member
 
Join Date: Aug 2007
Posts: 266
etrade is on a distinguished road
Thumbs up

Quote:
Originally Posted by newmont View Post
"This is the mt4 site that contains the info that you are after, the arrows and shapes are listed with the number to enter for the required object.Wingdings - MQL4 Documentation
Thanks a million newmont

That was exactly what I needed
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #725 (permalink)  
Old 02-21-2008, 12:49 PM
Junior Member
 
Join Date: Feb 2008
Posts: 2
ritzyrex is on a distinguished road
Coder Help Needed

Please i need someone to help me in coding. My strategy involves opening a long position when ADX line is > 25 and rising, +DI > -DI, price above 8period EMA, and RSI > 55 and rising. The position should be closed after the second parabolic dot appears above price.

Open short when ADX line > 25 and rising,
-DI > -DI+
Price below 8 period EMA
RSI < 45 AND falling
The position should be closed when 2nd parabolic dot appears above price.
Please i anticipate help. Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #726 (permalink)  
Old 02-21-2008, 10:21 PM
Julia's Avatar
Junior Member
 
Join Date: Aug 2007
Posts: 17
Julia is on a distinguished road
Quote:
Originally Posted by jatki24300 View Post
Lukas......
Here. Please help!
Attached Files
File Type: mq4 Lukas1 MA-4Hcolormodified.mq4 (5.0 KB, 6 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #727 (permalink)  
Old 02-22-2008, 04:38 PM
Member
 
Join Date: Oct 2006
Posts: 71
junglelion is on a distinguished road
GUIDE Please

I am trying to open a new pending order when one is completed (hits profit)

Where am I wrong ??


for (int i=0; i<11;i++)
{
OrderSelect(i,SELECT_BY_POS,MODE_TRADES);

OR = M[0];
if (((OrderType() == OP_BUYLIMIT || OrderType() == OP_BUYSTOP)) && OrderOpenPrice() != OR)
{
OrderSend(Symbol(),OP_BUYSTOP,lots,OR,3,OR-1000*Point,OR+100*Point,"",16384,0,Green);
OrderSend(Symbol(),OP_BUYLIMIT,lots,OR,3,OR-1000*Point,OR+100*Point,"",16384,0,Green);
}
}
__________________
This Lion Seeks A Lioness
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #728 (permalink)  
Old 02-23-2008, 07:39 PM
Member
 
Join Date: Oct 2006
Posts: 71
Big Be is on a distinguished road
Doesn't Anyone Know?

I still need help with the Two Stops Question, Post 702?

Big Be
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #729 (permalink)  
Old 02-24-2008, 12:50 AM
Junior Member
 
Join Date: Feb 2008
Posts: 5
Lonestar is on a distinguished road
Yet another code question

I am relatively new to Metatrader, not to trading though, and have created some EAs using Expert Adviser Builder. Most work fine but am having trouble when I use multiple exits. Close(buy) logics and close (sell) logics with the OR function. Multiples with AND work fine, but it won't recognize any I create with OR. Below is the exit code.

//+------------------------------------------------------------------+
//| Signal Begin(Exit Sell) |
//+------------------------------------------------------------------+

if (CloseSell1_1 < CloseSell1_2 && CloseSell2_1 > CloseSell2_2 || CloseSell3_1 > CloseSell3_2) Order = SIGNAL_CLOSESELL;


The bold part is the signal it is ignoring. Any ideas. This is the only thing holding me up from properly backtesting. If anyone can help and it backtests fine, you can have it. By just manually filtering out the trades that should be closed, it looks promising.

Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #730 (permalink)  
Old 02-24-2008, 01:23 AM
ralph.ronnquist's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 280
ralph.ronnquist is on a distinguished road
Do you mean:
PHP Code:
if ( ( CloseSell1_1 CloseSell1_2 && CloseSell2_1 CloseSell2_2 ) || ( CloseSell3_1 CloseSell3_2 ) ) Order SIGNAL_CLOSESELL
or do you mean:
PHP Code:
if ( ( CloseSell1_1 CloseSell1_2 ) && ( CloseSell2_1 CloseSell2_2 || CloseSell3_1 CloseSell3_2 ) ) Order SIGNAL_CLOSESELL
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Tags
candle time, CHinGsMAroonCLK, coders guru, expert advisor, forex, how to code, I_XO_A_H, mechanical trading, trading

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

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


All times are GMT. The time now is 09:02 AM.



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