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 Thread Tools Display Modes
  #71 (permalink)  
Old 03-09-2007, 10:11 PM
Member
 
Join Date: Nov 2005
Posts: 35
Emerald King is on a distinguished road
VC6 C++, DLL, Metatraderand Debugging

Hello Everyone,

Does anyone know how to setup MT4 and/or VC6 so that I can use the VC debugger as my DLL is being called?

It seems that MT4 only sees my DLL if it is in the root of the MT4 Directory.

Thank you for your Time and Effort.
EK
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #72 (permalink)  
Old 03-11-2007, 07:58 PM
Senior Member
 
Join Date: Mar 2006
Posts: 243
toddanderson is on a distinguished road
% from open indicator

I am looking for an indicator that will draw a line _ % from the open 00:00

like 2% of the open price draw line
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #73 (permalink)  
Old 03-12-2007, 09:20 PM
Junior Member
 
Join Date: Jan 2007
Posts: 3
sweetpapy007 is on a distinguished road
Thumbs up

Great site

Last edited by sweetpapy007; 03-13-2007 at 08:01 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #74 (permalink)  
Old 03-14-2007, 07:21 PM
Junior Member
 
Join Date: Oct 2006
Posts: 13
MACD is on a distinguished road
Smile How to add pipstep in EA..

HI Guys ,

can someone please tell me how can i add the pipstep function so that if the price moves say 20 pips in opposite direction the it opens another order...

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #75 (permalink)  
Old 03-17-2007, 12:32 AM
Junior Member
 
Join Date: Dec 2005
Posts: 20
highway3000 is on a distinguished road
How can I make the deal ticket/order smaller

The deal ticket/order is covering almost the whole screen. Is there any script etc that can simplify ( reduce the size ) with only a buy/sell * the price * amount-lots on it?
Thanks in advance
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #76 (permalink)  
Old 03-21-2007, 06:18 AM
Junior Member
 
Join Date: Mar 2007
Posts: 2
peter_zyn is on a distinguished road
Shift in Indicator

Why does the following INDICATOR CODE draw only a horizontal line on the main CHART window.
If I change the price registers CODE (O,H,L,C)for example e.g.
From Low[7] to Low[pos+7] it draws a graph, However it shifts the indicator forward approx 16 bars


int start()
{
int counted_bars=IndicatorCounted();
//----
//---- check for possible errors
if (counted_bars<0) return(-1);
//---- last counted bar will be recounted
if (counted_bars>0) counted_bars--;
int pos=Bars-counted_bars;


//---- main calculation loop
//pos = 200;
while(pos>=0)
{
double dHigh;
double dLow7, dLow9, dLow13, dLow25 ,dClose16 ;
double dResult, dClose20, dCalc, dFallBack ;
//dWhatEver = 1;
dFallBack = 4.00003 + ((Close[16] * 10000) - 13000) ;
dLow7 = ((Low[7]*10000)-13000);
dLow9 = ((Low[9] * 10000) - 13000);
dLow13 = ((Low[13] * 10000) - 13000);
dLow25 = ((Low[25] *10000) - 13000);


dClose20 = ((Close[20] * 10000) - 13000);

dCalc = dFallBack;

if(dLow7 > dCalc)
{if(dLow25 > dCalc)
{if(dLow9 > dCalc)
{if(dLow13 > dCalc)
{if(dClose20 > dCalc)
{ dCalc = dCalc + 5.00022;
}else {}
}else {}
}else {}
}else {}
}else {}


dResult = ((dCalc + 13000) / 10000);
//dResult = dResult + 1.310;
//Comment("Number1 = ", DoubleToStr(dClose,4));
//Comment("Number2 = ", DoubleToStr(dLow,4));
Comment("Number3 = ", DoubleToStr(dResult,4));
ExtMapBuffer1[pos]= dResult ;
pos--;
}

//----
return(0);
}
Attached Files
File Type: mq4 My_First_Indicator-V6.mq4 (3.1 KB, 18 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #77 (permalink)  
Old 03-22-2007, 02:26 AM
accrete's Avatar
Member
 
Join Date: Jan 2006
Location: The WET! Coast of Oregon, USA
Posts: 69
accrete is on a distinguished road
Question adding "trade from" feature to an Expert?

Hi all, i am experimenting with the FXiGOR Dynamic Breakout Expert. It already has a close feature, what i wish to do is add a "open" or "Start" feature. I know experts such as Firebird and others have this, and i've tried to tweak it but to no success. It should be fairly simple fix though at this time it's beyond me.

Here is the indicator:
http://www.forex-tsd.com/59063-post184.html

Cheers,
Thom
__________________
Find a way to make someone's day
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #78 (permalink)  
Old 03-29-2007, 12:38 PM
Junior Member
 
Join Date: Nov 2006
Posts: 1
rayves is on a distinguished road
Unknown ticket for OrderModify

I've spent the last couple of days trying to learn MQL4 and programming a simple system, but have run into a problem I am unable to figure out.

I get 'Unknown ticket for OrderModify' when trying to modify an order with the following code:
"
if (reversal_long(valid_bars_limit)>reversal_point_lo ng)
{
reversal_point_long=reversal_long(valid_bars_limit );
Comment(reversal_point_long);
OrderModify(OrderTicket(),OrderOpenPrice(),reversa l_point_long,OrderTakeProfit(),0,Green);
}
"

I've used the Comment to check if the calculations are correct and it changes according my calculations.
Still the open order does not change the stoploss and only generates the error.

Any clues as to ehat I'm doing wrong?


Thanks,
Rayner
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #79 (permalink)  
Old 04-02-2007, 12:45 AM
Member
 
Join Date: Aug 2006
Posts: 52
aghenry1 is on a distinguished road
Looking for an example of code

Is anyone aware of any example of code or an EA which permits you to define (in the user interface) the number of trades you will take during any given move or time period. For example after a new trend is established I may wish to take one (lets say 10 pip) trade in a ranging pair and X number of trades in a trending pair. Any help, ideas or suggestions along this line would be appreciated.
Greg
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #80 (permalink)  
Old 04-06-2007, 06:36 PM
Junior Member
 
Join Date: Feb 2007
Posts: 4
savio12 is on a distinguished road
bar since entry and highest value

two ideas:

first:how count the bar since entry?
i wait only, for example 4 bars to entry and if i'am not in gain i exit to trade.
how code it?
second :it's possible to use ihighest functions for the indicator for example
i want buy if my indicator has a value more high that the past 10 value.and if thi s happens (current value more high that past 10 value) i will buy.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Tags
automated close order, close, eas, forex, learn mql4, learn mql4 video, mql4 learning, OrderCloseBy, profit, reach, secure profit function, T101_v1.11_orest_IBFXm.mq4, learning mql4

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
Learning Cycles For New Traders Dan7974 General Discussion 350 01-18-2008 07:04 PM
Learning to code for autotrading GoatT Metatrader Programming 8 01-10-2007 09:55 PM
Self learning expert mrtools Expert Advisors - Metatrader 4 32 10-22-2006 06:29 PM


All times are GMT. The time now is 12:20 PM.



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