Forex



Go Back   Forex Trading > Discussion Areas > Setup Questions
Forex Forum Register More recent Blogs 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

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 10-03-2006, 11:38 AM
Member
 
Join Date: Dec 2005
Posts: 71
LazyForex is on a distinguished road
Alert if no 'Smiling face"?

Many a times I have accidently switch off EA when interchanging accounts. Is there a way to create an Alert if the EA is accidently turned off (no "Smiling face") ? Any input will be appreciated...

LF

Last edited by LazyForex; 10-10-2006 at 12:51 PM.
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
  #2 (permalink)  
Old 10-03-2006, 11:45 AM
phoenix's Avatar
Senior Member
 
Join Date: May 2006
Posts: 319
phoenix is on a distinguished road
why dont uncheck the box in Tool/Option--> "Expert Advisors" tab
--> Disable experts when the account has been changed
--> Disable experts when the profile has been changed

instead
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
  #3 (permalink)  
Old 10-03-2006, 12:24 PM
Member
 
Join Date: Dec 2005
Posts: 71
LazyForex is on a distinguished road
Quote:
Originally Posted by phoenix
why dont uncheck the box in Tool/Option--> "Expert Advisors" tab
--> Disable experts when the account has been changed
--> Disable experts when the profile has been changed

instead
Thanks for the tip phoenix but am still hoping that an audible alert can be programmed into the EA or something. Dont anyone here has this problem?
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
  #4 (permalink)  
Old 10-03-2006, 12:30 PM
phoenix's Avatar
Senior Member
 
Join Date: May 2006
Posts: 319
phoenix is on a distinguished road
i think it has to be an indicator .. cos if the expert button is off, then the ea can not work but indicator still

and maybe something like this

http://docs.mql4.com/check/IsDllsAllowed
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
  #5 (permalink)  
Old 10-03-2006, 01:28 PM
phoenix's Avatar
Senior Member
 
Join Date: May 2006
Posts: 319
phoenix is on a distinguished road
here it is
----------do not forget to include this file
#include <WinUser32.mqh>

if(!IsExpertEnabled())
{
MessageBox("Expert Button Is Off","Message",MB_OK|MB_ICONWARNING);
PlaySound("alert.wav");
}
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
  #6 (permalink)  
Old 10-03-2006, 01:42 PM
Member
 
Join Date: Dec 2005
Posts: 71
LazyForex is on a distinguished road
Quote:
Originally Posted by phoenix
here it is
----------do not forget to include this file
#include <WinUser32.mqh>

if(!IsExpertEnabled())
{
MessageBox("Expert Button Is Off","Message",MB_OK|MB_ICONWARNING);
PlaySound("alert.wav");
}
I am not a programmer and would appreciate if you would show me exactly how and where I am supposed to input the codes if I am using this indicator below..Thanks once again

PHP Code:
#property copyright "strategybuilderfx.com"
#property link "finger"
#property indicator_separate_window
#property indicator_buffers 1
#property indicator_color1 Magenta
#property indicator_level1 70
#property indicator_level2 30
#property indicator_level3 50
#property indicator_maximum 100
#property indicator_minimum 0

//---- input parameters
extern int Len=14//---- buffers
double rsx[];


int init() {
   
SetIndexStyle(0,DRAW_LINE);
   
SetIndexBuffer(0,rsx);
   
IndicatorShortName("RSX");
   return(
0);
}

int deinit()
{
   return(
0);
}

int start()
{

   
double f88f90;
   
double f0v4v8vCv10v14v18v20;
   
double f8f10f18f20f28f30f38f48v1C;
   
double f50f58f60f68f70f78f80f40;
   
   
//int counted_bars = IndicatorCounted(),limit,shift;

   //if (counted_bars<0) return(-1);
   //if (counted_bars>0) counted_bars--;
   
double limit=Bars-(Len)-1;
   
   
//if(counted_bars>Len) limit=Bars-counted_bars-1;

   
for (int shift=limit;shift>=0;shift--) {
      if (
f90 == 0.0) {
      
         
f90 1.0;
         
f0 0.0;
         if (
Len->= 5f88 Len-1.0; else f88 5.0;
         
f8 100.0*(Close[shift]);
         
f18 3.0 / (Len 2.0);
         
f20 1.0 f18;
         
      } else{
         if (
f88 <= f90f90 f88 1; else f90 f90 1;
         
f10 f8;
         
f8 100*Close[shift];
         
v8 f8 f10;
         
f28 f20 f28 f18 v8;
         
f30 f18 f28 f20 f30;
         
vC f28 1.5 f30 0.5;
         
f38 f20 f38 f18 vC;
         
f40 f18 f38 f20 f40;
         
v10 f38 1.5 f40 0.5;
         
f48 f20 f48 f18 v10;
         
f50 f18 f48 f20 f50;
         
v14 f48 1.5 f50 0.5;
         
f58 f20 f58 f18 MathAbs(v8);
         
f60 f18 f58 f20 f60;
         
v18 f58 1.5 f60 0.5;
         
f68 f20 f68 f18 v18;

         
f70 f18 f68 f20 f70;
         
v1C f68 1.5 f70 0.5;
         
f78 f20 f78 f18 v1C;
         
f80 f18 f78 f20 f80;
         
v20 f78 1.5 f80 0.5;

         if ((
f88 >= f90) && (f8 != f10)) f0 1.0;
         if ((
f88 == f90) && (f0 == 0.0)) f90 0.0;
      }

      if ((
f88 f90) && (v20 0.0000000001)) {

         
v4 = (v14 v20 1.0) * 50.0;
         if (
v4 100.0v4 100.0;
         if (
v4 0.0v4 0.0;

      } else {
         
v4 50.0;
      }
      
      
rsx[shift]=v4;
   }
   
   return(
0);
   

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
  #7 (permalink)  
Old 10-03-2006, 01:45 PM
phoenix's Avatar
Senior Member
 
Join Date: May 2006
Posts: 319
phoenix is on a distinguished road
Quote:
Originally Posted by LazyForex
I am not a programmer and would appreciate if you would show me exactly how and where I am supposed to input the codes if I am using this indicator below..Thanks once again

PHP Code:
#include <WinUser32.mqh>

#property copyright "strategybuilderfx.com"
#property link "finger"
#property indicator_separate_window
#property indicator_buffers 1
#property indicator_color1 Magenta
#property indicator_level1 70
#property indicator_level2 30
#property indicator_level3 50
#property indicator_maximum 100
#property indicator_minimum 0

//---- input parameters
extern int Len=14//---- buffers
double rsx[];


int init() {
   
SetIndexStyle(0,DRAW_LINE);
   
SetIndexBuffer(0,rsx);
   
IndicatorShortName("RSX");
   return(
0);
}

int deinit()
{
   return(
0);
}

int start()
{
 if(!
IsExpertEnabled())
{
 
MessageBox("Expert Button Is Off","Message",MB_OK|MB_ICONWARNING);
 
PlaySound("alert.wav");
}

   
double f88f90;
   
double f0v4v8vCv10v14v18v20;
   
double f8f10f18f20f28f30f38f48v1C;
   
double f50f58f60f68f70f78f80f40;
   
   
//int counted_bars = IndicatorCounted(),limit,shift;

   //if (counted_bars<0) return(-1);
   //if (counted_bars>0) counted_bars--;
   
double limit=Bars-(Len)-1;
   
   
//if(counted_bars>Len) limit=Bars-counted_bars-1;

   
for (int shift=limit;shift>=0;shift--) {
      if (
f90 == 0.0) {
      
         
f90 1.0;
         
f0 0.0;
         if (
Len->= 5f88 Len-1.0; else f88 5.0;
         
f8 100.0*(Close[shift]);
         
f18 3.0 / (Len 2.0);
         
f20 1.0 f18;
         
      } else{
         if (
f88 <= f90f90 f88 1; else f90 f90 1;
         
f10 f8;
         
f8 100*Close[shift];
         
v8 f8 f10;
         
f28 f20 f28 f18 v8;
         
f30 f18 f28 f20 f30;
         
vC f28 1.5 f30 0.5;
         
f38 f20 f38 f18 vC;
         
f40 f18 f38 f20 f40;
         
v10 f38 1.5 f40 0.5;
         
f48 f20 f48 f18 v10;
         
f50 f18 f48 f20 f50;
         
v14 f48 1.5 f50 0.5;
         
f58 f20 f58 f18 MathAbs(v8);
         
f60 f18 f58 f20 f60;
         
v18 f58 1.5 f60 0.5;
         
f68 f20 f68 f18 v18;

         
f70 f18 f68 f20 f70;
         
v1C f68 1.5 f70 0.5;
         
f78 f20 f78 f18 v1C;
         
f80 f18 f78 f20 f80;
         
v20 f78 1.5 f80 0.5;

         if ((
f88 >= f90) && (f8 != f10)) f0 1.0;
         if ((
f88 == f90) && (f0 == 0.0)) f90 0.0;
      }

      if ((
f88 f90) && (v20 0.0000000001)) {

         
v4 = (v14 v20 1.0) * 50.0;
         if (
v4 100.0v4 100.0;
         if (
v4 0.0v4 0.0;

      } else {
         
v4 50.0;
      }
      
      
rsx[shift]=v4;
   }
   
   return(
0);
   

here you go
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
  #8 (permalink)  
Old 10-03-2006, 02:07 PM
Member
 
Join Date: Dec 2005
Posts: 71
LazyForex is on a distinguished road
Thanks phoenix. I managed to get it compiled but when I turn-off the EA, it gave no Alert Pls advise

LF
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
  #9 (permalink)  
Old 10-03-2006, 02:21 PM
Member
 
Join Date: Dec 2005
Posts: 71
LazyForex is on a distinguished road
Now its the opposite

EA smiling face and Alert keeps beeping. I turn-off Alert and it Stops beeping..
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
  #10 (permalink)  
Old 10-03-2006, 02:22 PM
phoenix's Avatar
Senior Member
 
Join Date: May 2006
Posts: 319
phoenix is on a distinguished road
Quote:
Originally Posted by LazyForex
Thanks phoenix. I managed to get it compiled but when I turn-off the EA, it gave no Alert Pls advise

LF
ok i changed it into Alert(..);

when i test it as a script it work...dont know why
PHP Code:
#include <WinUser32.mqh>

#property copyright "strategybuilderfx.com"
#property link "finger"
#property indicator_separate_window
#property indicator_buffers 1
#property indicator_color1 Magenta
#property indicator_level1 70
#property indicator_level2 30
#property indicator_level3 50
#property indicator_maximum 100
#property indicator_minimum 0

//---- input parameters
extern int Len=14//---- buffers
double rsx[];


int init() {
   
SetIndexStyle(0,DRAW_LINE);
   
SetIndexBuffer(0,rsx);
   
IndicatorShortName("RSX");
   return(
0);
}

int deinit()
{
   return(
0);
}

int start()
{
 if(!
IsExpertEnabled())
{
 
Alert("Expert Button Is Off");
}

   
double f88f90;
   
double f0v4v8vCv10v14v18v20;
   
double f8f10f18f20f28f30f38f48v1C;
   
double f50f58f60f68f70f78f80f40;
   
   
//int counted_bars = IndicatorCounted(),limit,shift;

   //if (counted_bars<0) return(-1);
   //if (counted_bars>0) counted_bars--;
   
double limit=Bars-(Len)-1;
   
   
//if(counted_bars>Len) limit=Bars-counted_bars-1;

   
for (int shift=limit;shift>=0;shift--) {
      if (
f90 == 0.0) {
      
         
f90 1.0;
         
f0 0.0;
         if (
Len->= 5f88 Len-1.0; else f88 5.0;
         
f8 100.0*(Close[shift]);
         
f18 3.0 / (Len 2.0);
         
f20 1.0 f18;
         
      } else{
         if (
f88 <= f90f90 f88 1; else f90 f90 1;
         
f10 f8;
         
f8 100*Close[shift];
         
v8 f8 f10;
         
f28 f20 f28 f18 v8;
         
f30 f18 f28 f20 f30;
         
vC f28 1.5 f30 0.5;
         
f38 f20 f38 f18 vC;
         
f40 f18 f38 f20 f40;
         
v10 f38 1.5 f40 0.5;
         
f48 f20 f48 f18 v10;
         
f50 f18 f48 f20 f50;
         
v14 f48 1.5 f50 0.5;
         
f58 f20 f58 f18 MathAbs(v8);
         
f60 f18 f58 f20 f60;
         
v18 f58 1.5 f60 0.5;
         
f68 f20 f68 f18 v18;

         
f70 f18 f68 f20 f70;
         
v1C f68 1.5 f70 0.5;
         
f78 f20 f78 f18 v1C;
         
f80 f18 f78 f20 f80;
         
v20 f78 1.5 f80 0.5;

         if ((
f88 >= f90) && (f8 != f10)) f0 1.0;
         if ((
f88 == f90) && (f0 == 0.0)) f90 0.0;
      }

      if ((
f88 f90) && (v20 0.0000000001)) {

         
v4 = (v14 v20 1.0) * 50.0;
         if (
v4 100.0v4 100.0;
         if (
v4 0.0v4 0.0;

      } else {
         
v4 50.0;
      }
      
      
rsx[shift]=v4;
   }
   
   return(
0);
   

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


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
dose it posible to creat any function of "mql code" posting in this forum? phoenix MetaTrader 23 09-23-2009 04:10 PM
How to "teach" and to use the AI ("neuron") EA? danil Suggestions for Trading Systems 5 07-15-2008 05:26 PM


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



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