Forex



Go Back   Forex Trading > Programming > MetaTrader
Forex Forum Register More recent 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
  #1911 (permalink)  
Old 07-11-2009, 08:43 AM
Senior Member
 
Join Date: Apr 2008
Location: Rawalpindi
Posts: 106
arshadFX is on a distinguished road
Exclamation Broker Symbol List

Hi...

I want to know is there any code to get broker's symbol list ?
for example EURUSD, GBPUSD, USDJPY ......
if there is so then please pass this code

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
  #1912 (permalink)  
Old 07-11-2009, 11:52 PM
Senior Member
 
Join Date: Oct 2008
Location: Vancouver, BC
Posts: 159
Roger09 is on a distinguished road
Quote:
Originally Posted by arshadFX View Post
Hi...

I want to know is there any code to get broker's symbol list ?
for example EURUSD, GBPUSD, USDJPY ......
if there is so then please pass this code

Thanks
SymbolList fromSet - MQL4 Code Base
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
  #1913 (permalink)  
Old 07-12-2009, 02:10 AM
Junior Member
 
Join Date: Oct 2008
Posts: 1
sky7733 is on a distinguished road
How to code? Help please

Hi all

I want to code a indicator but I am novice about MQL and need help..
What I try to do is

1 Assuming the highest price before is H1 and
the lowest price before is L1

2 When price cross up higher than H1 then a event comes.
When price cross down lower than L1 then a event comes.

3 A event (signal) types are
1 color dot
2 sound (iterations is optional)
3 email (iterations is optional)

4 "X" is Variation of H1 or L1
can be assigned.

eg. When H2>(H1+X) then event comes.

5 When new event comes, color dots marked before be deleted.

Thats all
Help please
Thanks..
Attached Images
File Type: jpg Higher high.jpg (23.5 KB, 58 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
  #1914 (permalink)  
Old 07-12-2009, 10:15 AM
mladen's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 1,278
mladen is on a distinguished road
...

Deleted by mladen
Reason : no point in showing what can go wrong

Last edited by mladen; 07-12-2009 at 06:07 PM. Reason: no point
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
  #1915 (permalink)  
Old 07-12-2009, 05:19 PM
Senior Member
 
Join Date: Oct 2008
Location: Vancouver, BC
Posts: 159
Roger09 is on a distinguished road
Quote:
Originally Posted by mladen View Post
It can happen that some of the symbols are "missing" from set files (by simply modifying that set file from market watch, for example).
mladen
It's easy way to fix it. Right button click on Market Watch then "Show All". Again right button click, then Sets->Save as... and make the file with full list of currencies.
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
  #1916 (permalink)  
Old 07-13-2009, 12:21 PM
Senior Member
 
Join Date: Apr 2008
Location: Rawalpindi
Posts: 106
arshadFX is on a distinguished road
Thanks

Quote:
Originally Posted by Roger09 View Post
Thanks....... Roger
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
  #1917 (permalink)  
Old 07-15-2009, 02:29 AM
Junior Member
 
Join Date: Jan 2008
Posts: 17
forexarchitect is on a distinguished road
need code help..

Hello fellow members,
I'm not a programmer, but I would really appreciate if someone can help me with this issue.

How do I rewrite this code so it would do the following;

if (Total Open Order = 0)
then
lot = Type1Lot(order_type);

if (Total Open Order = 1)
then
lot = Type2Lot(order_type);

if (Total Open Order > 2)
then
lot = Type3Lot(order_type);

Thanks all.

Appreciate
__________________
creativity + common sense + a bit of humor = lots of pipp

Last edited by forexarchitect; 07-15-2009 at 06:32 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
  #1918 (permalink)  
Old 07-15-2009, 02:46 AM
Junior Member
 
Join Date: Jan 2008
Posts: 17
forexarchitect is on a distinguished road
need code help..

thank you guys...
__________________
creativity + common sense + a bit of humor = lots of pipp

Last edited by forexarchitect; 07-15-2009 at 02:53 AM.
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
  #1919 (permalink)  
Old 07-15-2009, 02:12 PM
Junior Member
 
Join Date: Sep 2008
Posts: 2
taju1 is on a distinguished road
Help please

HELLO EVERYONE,
Can someone please help make this indicator not to repaint past history especially if the bar has been closed,the indicator repaints sometimes 2 to 3 bars in live trading after candles have been closed and if possible an alert be added to it.thanks in anticipation.
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
  #1920 (permalink)  
Old 07-16-2009, 08:17 AM
swagman1's Avatar
Member
 
Join Date: Aug 2006
Location: Outback
Posts: 34
swagman1 is on a distinguished road
Is there a better way to code

I have coded an indi that puts swing highs/lows on the chart and I need to know the last of each of these before continuing. This is my attempt at looking for these two prices (hence I need some help).

Most of the times this works, but today it was saying the last swing high was actually the second last swing high.

Could someone please look at this and see if there is a better way of coding this part?
Thanks for any help.

int highbar,lowbar,i,n;
double curlow=0,curhigh=0;
for (i=200;i>=1;i--)
{
if (High[i+3]<High[i+2] && High[i+1]<High[i+2] && High[i+4<High[i+2] && High[i]<High[i+2])
{
curhigh=High[i+2];
highbar=i+2;
}
if (Low[i+3]>Low[i+2] && Low[i+1]>Low[i+2] && Low[i+4]>Low[i+2] && Low[i]>Low[i+2])
{
curlow=Low[i+2];
lowbar=i+2;
}
}
//----check if there is higher/lower candle since last fractal----------
n=MathMax(highbar,lowbar );
for (int x=n-1;x>=0;x--)
{
if (High[x]> curhigh)
{
curhigh=High[x];
highbar=x;
}
if (Low[x]< curlow)
{
curlow=Low[x];
lowbar=x;
}
}
It looks like the indents didn't paste properly, sorry.
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: 2 (1 members and 1 guests)
raibow
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 01:44 AM.



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