Forex
Google
New signals service!

Go Back   Forex Trading > Discussion Areas > Setup 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 Thread Tools Display Modes
  #11 (permalink)  
Old 10-03-2006, 01:58 PM
Member
 
Join Date: Dec 2005
Posts: 55
LazyForex is on a distinguished road
Still works the opposite When I turn-on EA, it Alerts and when I turn off EA, it stops...

Whatever it is, Thanks for being helpful
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 10-04-2006, 12:56 AM
Member
 
Join Date: Dec 2005
Posts: 55
LazyForex is on a distinguished road
Anyone else can help with this problem please....?

LF
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 10-10-2006, 11:56 AM
phoenix's Avatar
Senior Member
 
Join Date: May 2006
Posts: 287
phoenix is on a distinguished road
what about this one
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()==false)
{
 
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);
   


Last edited by phoenix; 10-10-2006 at 12:42 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14 (permalink)  
Old 10-10-2006, 12:41 PM
Member
 
Join Date: Dec 2005
Posts: 55
LazyForex is on a distinguished road
It is working but on the reverse. The Alert went "on" when EA is on. How can I get it to work when the EA is turned "off" instead?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15 (permalink)  
Old 10-10-2006, 12:45 PM
phoenix's Avatar
Senior Member
 
Join Date: May 2006
Posts: 287
phoenix is on a distinguished road
Quote:
Originally Posted by LazyForex
It is working but on the reverse. The Alert went "on" when EA is on. How can I get it to work when the EA is turned "off" instead?
copy the code above again

if it work in the oposite way

change this line if(IsExpertEnabled()==false)

into
if(IsExpertEnabled()==true)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #16 (permalink)  
Old 10-10-2006, 03:25 PM
Member
 
Join Date: Dec 2005
Posts: 55
LazyForex is on a distinguished road
if(IsExpertEnabled()==false), nothing happens.
if(IsExpertEnabled()==true) , Alert sounded. Not right because I need Alert to sound when EA is off.
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 "teach" and to use the AI ("neuron") EA? danil Suggestions for Trading Systems 5 07-15-2008 04:26 PM
dose it posible to creat any function of "mql code" posting in this forum? phoenix Metatrader Programming 20 05-28-2008 03:08 PM


All times are GMT. The time now is 06:23 PM.



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