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
  #961 (permalink)  
Old 05-28-2008, 03:46 AM
Member
 
Join Date: Oct 2006
Posts: 69
Big Be is on a distinguished road
To: Matrixebiz

Quote:
EDIT: if you change to;
Code:
if(0 < OrderOpenPrice() - Point * MoveStopTo) {
instead of;
Code:
if(OrderStopLoss() < OrderOpenPrice() - Point * MoveStopTo) {
Seems to work good.

Thanks

You are welcome.

Big Be

Last edited by Big Be; 05-28-2008 at 03:50 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #962 (permalink)  
Old 05-28-2008, 04:00 AM
Junior Member
 
Join Date: May 2008
Posts: 16
hansen_hardrocker is on a distinguished road
Fxpro,ask

hi all.. i juz want to ask about how to configure lots EA in FxPro..

i confused because it has 6 digits (1 digit extra) i fixed the S/L and T/P but i cant change the lot..

always 0.4 per trade.. even i change it to 0.1 or 0.3

i used 10points 3 EA..


Please Help Me.. email me at hansen_hardrocker@yahoo.co.id

or can PM please..


cheerz all..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #963 (permalink)  
Old 05-28-2008, 04:02 AM
Junior Member
 
Join Date: May 2008
Posts: 16
hansen_hardrocker is on a distinguished road
Ask_change Lot (fxpro)

Fxpro,ask
hi all.. i juz want to ask about how to configure lots EA in FxPro..

i confused because it has 6 digits (1 digit extra) i fixed the S/L and T/P but i cant change the lot..

always 0.4 per trade.. even i change it to 0.1 or 0.3

i used 10points 3 EA..


Please Help Me.. email me at hansen_hardrocker@yahoo.co.id

or can PM please..


cheerz all..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #964 (permalink)  
Old 05-28-2008, 04:38 AM
ramin123's Avatar
Junior Member
 
Join Date: Feb 2007
Posts: 2
ramin123 is on a distinguished road
i want it too.please send me at omidchart@yahoo.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #965 (permalink)  
Old 05-28-2008, 10:48 AM
matrixebiz's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 1,122
matrixebiz is on a distinguished road
It probably because you have Money Management enabled in the EA.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #966 (permalink)  
Old 05-28-2008, 12:20 PM
Junior Member
 
Join Date: May 2008
Posts: 16
hansen_hardrocker is on a distinguished road
Thx

Quote:
Originally Posted by matrixebiz View Post
It probably because you have Money Management enabled in the EA.
Thx bro..

im newbie..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #967 (permalink)  
Old 05-29-2008, 07:33 AM
Junior Member
 
Join Date: Nov 2007
Location: Stanton, CA
Posts: 2
pabad is on a distinguished road
Can You Change This EA?

Hello programmers,

I have this EA that places stop orders above and below current price. What I need is an EA that will place limit orders instead of stop orders above and below current price. Can you change this EA to do just that while keeping all of the parameters the same?

Thanks in advance,
Paul
Attached Files
File Type: mq4 Euro Usd Grid.mq4 (27.8 KB, 6 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #968 (permalink)  
Old 05-29-2008, 07:42 AM
MrM MrM is offline
Member
 
Join Date: Jul 2007
Posts: 66
MrM is on a distinguished road
How to make an indicator work on another indicator?

If you drop the basic moving average (included as indicator in MT4) on another indicator, it is possible to calculate the MA of the indicator, but how do you change a custom indicator in such a way that it's possible to drop it on another indicator?
__________________
tensigma.blogspot.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #969 (permalink)  
Old 05-29-2008, 11:36 AM
Junior Member
 
Join Date: Apr 2008
Posts: 2
diffused is on a distinguished road
on bar open

Hi,

I'm wanting to run a piece of code only when a new bar is created (on bar open).

Anyone have a code snippet for something like this?


Cheers
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #970 (permalink)  
Old 05-30-2008, 10:04 AM
Junior Member
 
Join Date: May 2008
Posts: 5
shenxinon is on a distinguished road
Unhappy why my Indicator do not work well????

#property copyright "沈欣"
#property link "shenxinon@126.com"

#property indicator_separate_window
#property indicator_buffers 1
#property indicator_color1 SteelBlue
//#property indicator_minimum -0.01
//#property indicator_maximum 0.01
//---- input parameters
extern int SMA1=12;
extern int SMA2=72;
//---- buffers
double ExtMapBuffer1[];
//---- 自定义区
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+
int init()
{
//---- indicators
SetIndexStyle(0,DRAW_LINE);
SetIndexBuffer(0,ExtMapBuffer1);
string sName="RAVI indicator";
IndicatorShortName("RAVI indicator("+SMA1+","+SMA2+")");

//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//----
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int start()
{
int counted_bars=IndicatorCounted();
//----
if(counted_bars<0) return(-1);// if there is a error then exit and return -1
if(counted_bars>0) counted_bars--;
int pos = Bars-counted_bars;

double sma1,sma2,r;
while(pos>=0)
{
sma1=iMA(NULL,0,SMA1,0,MODE_SMA,PRICE_CLOSE,pos);
sma2=iMA(NULL,0,SMA2,0,MODE_SMA,PRICE_CLOSE,pos);
r=((sma1-sma2)/sma2)*10000;
//Alert("r=",r);
ExtMapBuffer1[pos]=r;
pos--;
}
return(0);
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

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 On
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 04:22 PM


All times are GMT. The time now is 07:01 AM.



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