Forex
Google
New signals service!

Go Back   Forex Trading > Metatrader Training > Metatrader 4 mql 4 - Development course > Questions


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 (2) Thread Tools Display Modes
  #271 (permalink)  
Old 08-27-2006, 05:38 PM
Member
 
Join Date: Sep 2005
Location: Athens
Posts: 70
Yannis is on a distinguished road
Quote:
Originally Posted by iscuba11
I created this, but have a problem. I have 2 trades active - 1 sell on EURUSD, and 1 sell on USDCHF. The below coding will modify the first sell trade EURUSD, but will not modify the second sell trade USDCHF. I know something is wrong and lacking in the coding. Would you eyeball it and tell me what I did wrong or what is omitted in the below coding. This is very important to me! Thanks much in advance!
Dave,
Try changing your code to following snippet and let me know if that did the trick.
Yannis

int i=0;
for (int cnt=OrdersTotal()-1;cnt>=0;cnt--)
OrderSelect(i, SELECT_BY_POS, MODE_TRADES);
if (OrderType()>=OP_SELL && OrderSymbol()==Symbol() && (OrderMagicNumber () == MagicNumber || MagicNumber==0))
{
OrderModify(OrderTicket(),OrderOpenPrice(),Ask+(15 *Point),Bid-(20*Point),Cyan); //Modify stop loss and take profit
return(0);
}

if (OrderType()>=OP_BUY && OrderSymbol()==Symbol() && (OrderMagicNumber () == MagicNumber || MagicNumber==0))
{
OrderModify(OrderTicket(),OrderOpenPrice(),Bid-(15*Point),Ask+(20*Point),Cyan); //Modify stop loss and take profit
return(0);
}
return(0);
}
}
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #272 (permalink)  
Old 08-28-2006, 08:48 AM
Member
 
Join Date: Dec 2005
Posts: 71
richx7 is on a distinguished road
Try these links for MT4 instruction (I wish there was more):

http://www.forex-tsd.com/metatrader-...opment-course/

http://www.metatrader.info/tracker

Last edited by richx7; 08-28-2006 at 08:53 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #273 (permalink)  
Old 08-28-2006, 10:51 AM
Member
 
Join Date: Dec 2005
Posts: 58
adria is on a distinguished road
time and a variable

How to write a code for the open price variable for the bar at 7 o'clock?
What to write at the shift position if we don't know the number of bars from
the current bar?

Var = iOpen(NULL, 0,shift)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #274 (permalink)  
Old 08-28-2006, 10:59 AM
Kalenzo's Avatar
Senior Member
 
Join Date: Dec 2005
Location: Bydgoszcz - Poland
Posts: 696
Kalenzo is on a distinguished road
Quote:
Originally Posted by adria
How to write a code for the open price variable for the bar at 7 o'clock?
What to write at the shift position if we don't know the number of bars from
the current bar?

Var = iOpen(NULL, 0,shift)
U can allways use iBarShift() function to check it.
__________________
You need proffesional mql coder? Contact me! I will help you!
........................................
http://www.fxservice.eu/
........................................
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #275 (permalink)  
Old 08-28-2006, 12:15 PM
Member
 
Join Date: Mar 2006
Posts: 41
webicknell is on a distinguished road
E-mail and SMS Alerts

I am not a programmer... let me say that up front.

How would I program an e-mail alert into an indicator... e-mail to a web based service, specifically yahoo mail?

Also, and even better then the e-mail alert, how would I get an indicator to send an SMS alert when the alert condidtions are met?

Thanks for your assistance

Wayne
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #276 (permalink)  
Old 08-28-2006, 12:48 PM
niva's Avatar
Senior Member
 
Join Date: Mar 2006
Posts: 101
niva is on a distinguished road
Anything wrong with these codes? I modified them, then the EA won't make any trades in strategy tester.

if(StochasticGreen>StochasticRed )
{
ticket=OrderSend(Symbol(),OP_BUY,Lots,Ask,3,Ask-(LossStop*Point),Ask+(ProfitStop*Point),"kosta",16 384,0,Green);
}
// check for short position (SELL) possibility && (TriggerLines1>TriggerLines0)
if(StochasticGreen<StochasticRed )
{
ticket=OrderSend(Symbol(),OP_SELL,Lots,Bid,3,Bid+( LossStop*Point),Bid-(ProfitStop*Point),"kosta",16384,0,Red);
}
__________________
Forex TSD is NO. 1
EA's blog: http://eaconfigs.blogspot.com/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #277 (permalink)  
Old 08-28-2006, 01:16 PM
european's Avatar
Senior Member
 
Join Date: Apr 2006
Posts: 284
european is on a distinguished road
Hi,

I need a small modification of 3colorMACD.

That is a signal produced when 3 Signal line values are the same and split the Signal line according to histogram color (red or blue).

Will be grateful for help with the code.

euro
Attached Files
File Type: mq4 3colorMACD.mq4 (4.4 KB, 17 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #278 (permalink)  
Old 08-28-2006, 03:03 PM
Junior Member
 
Join Date: Aug 2006
Posts: 14
serdar is on a distinguished road
hii

I need Williams %R filter can anybody help me
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #279 (permalink)  
Old 08-28-2006, 06:56 PM
Junior Member
 
Join Date: Dec 2005
Posts: 21
Kent is on a distinguished road
What factors you should watch on an Backtest Report?

When you run an EA thru Backtesting, what are the key factors which determines the effectiveness of the EA code?

Is it Modelling quality, or % of wins and or Drawdown? And if you run for a period of one year, what would be the best/ideal results for an EA to be considered as a good one? Ofcourse this is only Backtesting. I do understand the forward testing is important too. But I just want to know the factors which affect quality of EA.

Thanks in advance for your replies/time.

Kent
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #280 (permalink)  
Old 08-28-2006, 11:01 PM
Member
 
Join Date: Dec 2005
Posts: 37
dazminder is on a distinguished road
point

could someone tell me what point is in the meta trader code?

thanx
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Tags
histogram, forex, ZUP_v1.mq4

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/questions/270-ask.html
Posted By For Type Date
OzFx System:) - Page 639 This thread Refback 06-21-2008 10:53 PM
Forex SRDC Sidus Sibkis EA MT4 Forum OTCSmart This thread Refback 12-08-2007 12:46 PM


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



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