Forex
Google

Go Back   Forex Trading > Discussion Areas > Metatrader 4
Forex Forum Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


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
  #1 (permalink)  
Old 11-30-2005, 08:52 PM
knvsantosh knvsantosh is offline
Member
 
Join Date: Nov 2005
Location: India
Posts: 51
knvsantosh is on a distinguished road
Exclamation Indicator is not working why?

hello traders,
i have one metatrader mq4 script that is buy script i post that script this is not working in metatrader software so tell me what is the problem in that indicator.

Quote:
//+------------------------------------------------------------------+
//| Buy.mq4 |
//| Copyright © 2004, MetaQuotes Software Corp. |
//| http://www.metaquotes.net/ |
//+------------------------------------------------------------------+
#include <stdlib.mqh>
#property copyright "Copyright © 2004, MetaQuotes Software Corp."
#property link "http://www.metaquotes.net/"
//+------------------------------------------------------------------+
//| script "trading for all money" |
//+------------------------------------------------------------------+
int start()
{
int ticket;
//----
while(true)
{
ticket=OrderSend(Symbol(),OP_BUY,1.0,Ask,3,Ask-20*Point,0,"expert comment",255,0,CLR_NONE);
if(ticket<=0)
{
int error=GetLastError();
Print("Error = ",ErrorDescription(error));
if(error==134) break; // not enough money
if(error==135) RefreshRates(); // prices changed
break;
}
//---- remove break statement below and take trading for all money
else { OrderPrint(); break; }
//---- 10 seconds wait
Sleep(10000);
}
//----
return(0);
}
//+------------------------------------------------------------------+
this is the script tell me what is the problem in the above script.

regards,
k.n.v.santosh
(keep smiling for ever)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 12-01-2005, 06:28 AM
igorad's Avatar
igorad igorad is offline
Senior Member
 
Join Date: Oct 2005
Location: Ukraine
Posts: 787
igorad is on a distinguished road
Hi,
This isn't indicator, because this is expert.
Experts must be in experts directory.

Chears,
Igor
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 12-01-2005, 07:46 AM
knvsantosh knvsantosh is offline
Member
 
Join Date: Nov 2005
Location: India
Posts: 51
knvsantosh is on a distinguished road
ok this is expert program but i dont know what is the usage of this indicator please tell me if anybody know then please tell me sir.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 12-01-2005, 08:27 AM
igorad's Avatar
igorad igorad is offline
Senior Member
 
Join Date: Oct 2005
Location: Ukraine
Posts: 787
igorad is on a distinguished road
Sorry, this isn't expert.
It's script for quick open BUY position.
Same script by name TRADE you can see in scripts directory.
You can easy test that.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


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

vB 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
What has been working? matrixebiz Expert Advisors - Metatrader 4 18 03-10-2008 11:58 AM
Working indicator not working yuhu Indicators - Metatrader 4 0 05-25-2007 01:38 AM
Get more than one account EA working? markt General Discussion 1 02-19-2007 08:39 PM
adx not working hidethereal Indicators - Metatrader 4 1 07-24-2006 09:14 PM


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