Forex



Go Back   Forex Trading > Training > Metatrader > Metatrader 4 mql 4 - Development course
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

View Poll Results: Would you like to see all the lessons have been gathered in one ebook?
Yes! 1,908 96.66%
No! 14 0.71%
Dosen't matter! 52 2.63%
Voters: 1974. You may not vote on this poll

Reply
 
Thread Tools Display Modes
  #91 (permalink)  
Old 10-17-2008, 04:20 PM
Junior Member
 
Join Date: Apr 2008
Posts: 8
amyfor is on a distinguished road
Linuxser, MANSTIR,

Thank you both so much for the responses...feel a bit dumb as it is such a simple process. :-)
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
  #92 (permalink)  
Old 10-17-2008, 11:18 PM
Junior Member
 
Join Date: Apr 2008
Posts: 8
amyfor is on a distinguished road
Hello again guys,

I placed an EA in the correct folder etc...but with a demo account from Alpari UK it has 5 decimal places and doesn't work...I tried it in another demo account (4 decimal places) and works fine...i checked the code and couldn't find anywhere that specifies 4 or 5 decimal places...not sure how to make it run with Alpari UK...I contacted them and they said contact the coder...not much help...

Anyway, any advice would be greatly appreciated guys...thanks again
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
  #93 (permalink)  
Old 10-17-2008, 11:46 PM
Linuxser's Avatar
User Root
 
Join Date: May 2006
Location: Helliconia (Spring)
Posts: 4,412
Blog Entries: 56
Linuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond repute
Quote:
Originally Posted by amyfor View Post
Hello again guys,

I placed an EA in the correct folder etc...but with a demo account from Alpari UK it has 5 decimal places and doesn't work...I tried it in another demo account (4 decimal places) and works fine...i checked the code and couldn't find anywhere that specifies 4 or 5 decimal places...not sure how to make it run with Alpari UK...I contacted them and they said contact the coder...not much help...

Anyway, any advice would be greatly appreciated guys...thanks again
Some Ea could work with 5 digits by adding a 0 to the values.

eg: for 50 pips stop set a 500 value. If fails the code needs to adapted.
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
  #94 (permalink)  
Old 10-23-2008, 12:33 AM
Junior Member
 
Join Date: Apr 2008
Posts: 8
amyfor is on a distinguished road
Quote:
Originally Posted by Linuxser View Post
Some Ea could work with 5 digits by adding a 0 to the values.

eg: for 50 pips stop set a 500 value. If fails the code needs to adapted.
Thanks Linuxser....that worked...
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
  #95 (permalink)  
Old 10-23-2008, 09:25 PM
Junior Member
 
Join Date: Oct 2008
Posts: 1
eagle_85 is on a distinguished road
Hello, CodersGuru! It is very kind to share your knowledge with everybody.
I'm pretty sure that people like you, who give without demanding anything in reward, always have new and great ideas! There are many good examples of this in the entire history.


RESPECT
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
  #96 (permalink)  
Old 10-24-2008, 02:47 AM
MANSTIR's Avatar
Senior Member
 
Join Date: Nov 2007
Posts: 162
MANSTIR is on a distinguished road
respeks
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
  #97 (permalink)  
Old 11-03-2008, 11:57 PM
Senior Member
 
Join Date: Aug 2008
Location: London
Posts: 138
Limstylz is on a distinguished road
Can somebody advise me what i'm doing wrong here

Hi Everyone,

Would someone be so kind as to tell me what i'm doing wrong here please? Its a sell script, but just doesn't seem to work. Basically, i'm using a pivot method. The only entry the user puts in is the price of the pivot. The script then takes 2% of the account ballance and divides it by the number of pips from the bid to the pivot, which in turn gives the lotsize. The script then creates a sell order based on this information.

All feedback would be welcome.

PHP Code:
//+------------------------------------------------------------------+
//|                                                   TunnelSell.mq4 |
//|                                                       Daniel Lim |
//+------------------------------------------------------------------+
#property show_inputs
extern double TunnelWall;
int Percentage =2;
int Magic 20081104;
double Lots;
double ContractSize;
#define LABEL   "TunnelSell"
int start()
{
   if (
Point == 0.00001ContractSize 100000;
   if (
Point == 0.0001ContractSize 10000;
   if (
Point == 0.001ContractSize 1000;
   if (
Point == 0.01ContractSize 100;
   
double Pips = (TunnelWall-Bid);
   
double StopLoss=Pips*ContractSize;
   
Lots  = ((AccountBalance()*Percentage)/StopLoss)*MarketInfo (Symbol(),MODE_POINT);
   
OrderSend(Symbol(), OP_SELLLotsBid000"Tunnel Sell"Magic0Red);
   
Alert ("Short Position Opened on "Symbol() ,"\n",
          
"Emergency Stop Loss = ",TunnelWall+Pips,"\n",
          
"Double Ante Target ="Bid Pips,"\n",
          
"Primary Target ="Bid - (Pips*2),"\n",
          
"Secondary Target = "Bid - (Pips*3),"\n",
          
"Tertiary Target = "Bid - (Pips*4));

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
  #98 (permalink)  
Old 11-04-2008, 01:39 PM
Senior Member
 
Join Date: Aug 2008
Location: London
Posts: 138
Limstylz is on a distinguished road
No need to bother now

No need to looks at this now... I've sorted it myself.
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
  #99 (permalink)  
Old 11-05-2008, 04:58 AM
MANSTIR's Avatar
Senior Member
 
Join Date: Nov 2007
Posts: 162
MANSTIR is on a distinguished road
Quote:
Originally Posted by Limstylz View Post
Hi Everyone,

Would someone be so kind as to tell me what i'm doing wrong here please? Its a sell script, but just doesn't seem to work. Basically, i'm using a pivot method. The only entry the user puts in is the price of the pivot. The script then takes 2% of the account ballance and divides it by the number of pips from the bid to the pivot, which in turn gives the lotsize. The script then creates a sell order based on this information.

All feedback would be welcome.

PHP Code:
//+------------------------------------------------------------------+
//|                                                   TunnelSell.mq4 |
//|                                                       Daniel Lim |
//+------------------------------------------------------------------+
#property show_inputs
extern double TunnelWall;
int Percentage =2;
int Magic 20081104;
double Lots;
double ContractSize;
#define LABEL   "TunnelSell"
int start()
{
   if (
Point == 0.00001ContractSize 100000;
   if (
Point == 0.0001ContractSize 10000;
   if (
Point == 0.001ContractSize 1000;
   if (
Point == 0.01ContractSize 100;
   
double Pips = (TunnelWall-Bid);
   
double StopLoss=Pips*ContractSize;
   
Lots  = ((AccountBalance()*Percentage)/StopLoss)*MarketInfo (Symbol(),MODE_POINT);
   
OrderSend(Symbol(), OP_SELLLotsBid000"Tunnel Sell"Magic0Red);
   
Alert ("Short Position Opened on "Symbol() ,"\n",
          
"Emergency Stop Loss = ",TunnelWall+Pips,"\n",
          
"Double Ante Target ="Bid Pips,"\n",
          
"Primary Target ="Bid - (Pips*2),"\n",
          
"Secondary Target = "Bid - (Pips*3),"\n",
          
"Tertiary Target = "Bid - (Pips*4));

i've seen this ea before but dunno where, better give full scripts..
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
  #100 (permalink)  
Old 01-25-2009, 10:20 PM
jjasper7's Avatar
Junior Member
 
Join Date: Aug 2008
Location: Mesa, Arizona USA
Posts: 13
jjasper7 is on a distinguished road
Expert Advisor

I am trying to modify an indicator to place trades. Beside inserting the Order commands, what do I need to change to let MT4 know it is an EA? My program simply does not load/respond when I try to load it as an EA.

Also, where should I look to find this answer without bothering you experienced programmers?
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
forex, forex mql4, how to program mql4, learning mql4, lesson, mladen, mq4 course, MQ4 forum, mql training, mql4 course, mql4 courses, mql4 ebook, mql4 forum, MQL4 lessons, MQL4 TRAINING, MT4 course, slope direction line


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
Arrays in MQL4 clippertm Questions 5 08-11-2008 02:16 AM
Help for convert from VT to MQL4 M-E-C Expert Advisors - Metatrader 4 11 07-27-2007 07:53 PM
www.mql4.com DeSt Metatrader 4 18 02-02-2006 12:59 AM


All times are GMT. The time now is 11:55 PM.



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