Forex
Google
New signals service!

Go Back   Forex Trading > Discussion Areas > Metatrader 4


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 04-25-2007, 11:12 PM
DOMIANDR000's Avatar
Member
 
Join Date: Dec 2005
Posts: 54
DOMIANDR000 is on a distinguished road
Good Setup

EA required for New good setup -
I've traded this maually on micro mini with good results for a week(around 10-15$ perday).

Rules - 1. Traded only on a 1 MINUTE chart, TP=10 no SL.
2. Lot mgmt - Type Martingale(Max reached is 4X as per experience)
3. Buy/Sell - When signalled by indicator AND difference between price and orderprice >10pips (for previouly opened position)
4. reverse signal - Close only when difference between price and orderprice >10pips.
5. 3-4 would filter out quick whipsaws on the chart.
6. Generates 10-15$ a day on a micro mini lot

****************INDICATOR************************* *
//+------------------------------------------------------------------+
//| DiffMA.mq4 |
//| Copyright © 2005, MetaQuotes Software Corp. |
//| http://www.metaquotes.net |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2005, MetaQuotes Software Corp."
#property link "http://www.metaquotes.net"

#property indicator_separate_window
//+------------------------------------------------------------------+
//| Custom indicator initialization function |
//+------------------------------------------------------------------+


#property copyright "Dominic"
#property link "http://www.forex-tsd.com"

#property indicator_buffers 2
#property indicator_color1 Red
#property indicator_color2 LimeGreen


color UpCross = Gold;
color DownCross = LightGreen;
int ArrowCode1 = 233;
int ArrowCode2 = 234;


extern int maperiod1 = 25, maperiod2 = 35;

double ma=0, sdp=0, sdm=0, result=0;


//---- buffers
double ExtMapBuffer1[];
double ExtMapBuffer2[];



int init()
{
//---- indicators
SetIndexBuffer(0,ExtMapBuffer1);
SetIndexBuffer(1,ExtMapBuffer2);


//----
return(0);
}
//+------------------------------------------------------------------+
//| Custor indicator deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//----

//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int start()
{
int counted_bars=IndicatorCounted();
int limit=Bars;
double one,two,three;
//----

for(int i=0; i<=limit; i++)
{


one=iMA(NULL,0,maperiod1,0,MODE_SMMA,PRICE_MEDIAN, i);
two=iMA(NULL,0,maperiod2,0,MODE_SMMA,PRICE_MEDIAN, i);
ExtMapBuffer2[i]=one-two;

}

for(i=0; i<=limit; i++)
{

if (ExtMapBuffer2[i]>0 && ExtMapBuffer2[i+1]<=0) DrawArrow(i,Low[i]-5*Point,1);
if (ExtMapBuffer2[i]<0 && ExtMapBuffer2[i+1]>=0) DrawArrow(i,High[i]+5*Point,2);

}


//----
return(0);
}
//+------------------------------------------------------------------+


void DrawArrow( int bar , double value , int trend)
{

static int cnt = 0;
cnt++;
string crossing = "acustom_" + cnt;

ObjectCreate(crossing, OBJ_ARROW, 0, Time[bar], value);


if(trend == 1)
{
ObjectSet(crossing, OBJPROP_ARROWCODE, ArrowCode1);
ObjectSet(crossing, OBJPROP_COLOR , UpCross);
}

if(trend == 2)
{
ObjectSet(crossing, OBJPROP_ARROWCODE, ArrowCode2);
ObjectSet(crossing, OBJPROP_COLOR , DownCross);

}

ObjectSet(crossing, OBJPROP_WIDTH , 1);
ObjectsRedraw();
}
Attached Images
File Type: bmp DiffMA.bmp (1.33 MB, 189 views)
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
BrainSystem: Setup Questions newdigital Brain Systems 56 08-12-2008 06:40 PM
Farewell setup elihayun Suggestions for Trading Systems 36 02-27-2008 01:54 AM
Need Hedge EA with setup jimbofx7 Tools and utilities 1 06-30-2007 11:43 PM
TSD-v11 MT4-JB-OsMA setup sadaloma TSD Expert Advisors 2 06-15-2006 10:23 PM


All times are GMT. The time now is 02:42 AM.



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