Forex



Go Back   Forex Trading > Trading systems > Ema Cross
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

View Poll Results: What do you think about Counter-Trend strategies?
They are good. 233 30.66%
They are bad. 122 16.05%
Good strategies! But have to be well programmed. 268 35.26%
I don’t know what you are talking about. 154 20.26%
Multiple Choice Poll. Voters: 760. You may not vote on this poll

Reply
 
Thread Tools Display Modes
  #661 (permalink)  
Old 06-27-2006, 03:54 PM
expertlive's Avatar
Junior Member
 
Join Date: Jun 2006
Posts: 6
expertlive is on a distinguished road
shi shanel-v.2 new

dear Aaragorn ... this is a new version and a picture chart to you know how to use it
Attached Images
File Type: gif shi shanel - 2.gif (18.8 KB, 1578 views)
Attached Files
File Type: zip shi shanel - v.zip (2.6 KB, 448 views)
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
  #662 (permalink)  
Old 06-27-2006, 04:57 PM
Aaragorn's Avatar
Senior Member
 
Join Date: Jun 2006
Location: USA
Posts: 801
Aaragorn is on a distinguished road
Quote:
Originally Posted by expertlive
dear Aaragorn ... this is a new version and a picture chart to you know how to use it
thankyou for your work expertlive. I am having trouble getting it to load in the platform successfully.

I unzip it into the indicator folder but it doesn't appear when I restart the platform. I'm not sure why.

Could you please just attach it or post the code here directly without zipping and maybe that might work?

Is this supposed to go in the experts folder or the indicators folder? Does this actually execute buy/sell orders or is this just the indicator?

It is clear from the image you posted that you understand what I'm trying to do here. Keep the program within the channel. Do you know how to program it to do this?

Last edited by Aaragorn; 06-27-2006 at 04:59 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
  #663 (permalink)  
Old 06-27-2006, 06:03 PM
expertlive's Avatar
Junior Member
 
Join Date: Jun 2006
Posts: 6
expertlive is on a distinguished road
shi shanel v.2 new

Quote:
Originally Posted by Aaragorn
thankyou for your work expertlive. I am having trouble getting it to load in the platform successfully.

I unzip it into the indicator folder but it doesn't appear when I restart the platform. I'm not sure why.

Could you please just attach it or post the code here directly without zipping and maybe that might work?

Is this supposed to go in the experts folder or the indicators folder? Does this actually execute buy/sell orders or is this just the indicator?

It is clear from the image you posted that you understand what I'm trying to do here. Keep the program within the channel. Do you know how to program it to do this?
use this if it not work tell me to send again
Attached Files
File Type: mq4 shi_channel4(for trade channel)_v2_Stop.mq4 (9.4 KB, 1616 views)
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
  #664 (permalink)  
Old 06-27-2006, 07:06 PM
Aaragorn's Avatar
Senior Member
 
Join Date: Jun 2006
Location: USA
Posts: 801
Aaragorn is on a distinguished road
that works great expertlive, thankyou! Could you modify this indicator the same way? I think I like this indicator more than the shi even though they are so similar, this one seems more stable to me. Can you instruct me in how to make the modified indicator part of an EA so I can backtest it? or could you do it? I would like to add this as a filter for these two EA's (see attached)

PHP Code:
#property  copyright "ANG3110@latchess.com"
//----------------------------------
#property indicator_chart_window
//----------------------------------
extern int Hours=24;
extern color col=SkyBlue;
//------------------
double lr,lr0,lrp;
double sx,sy,sxy,sx2,aa,bb;
int p,sName,fs;
int f,f0,f1;
double dh,dl,dh_1,dl_1,dh_2,dl_2;
int ai_1,ai_2,bi_1,bi_2
double hai,lai,dhi,dli,dhm,dlm,ha0,hap,la0,lap;
double price_p1,price_p0,price_p2,price_01,price_00,price_02;
int p1,p0,p2,fp;
//*****************************************
int init() {
p=Hours*60/Period();
if (
fs==0) {sName=CurTime(); fs=1;}
return(
0);}
//*******************************
int deinit() {
   
ObjectDelete("1"+sName);
   
ObjectDelete("0"+sName);
   
ObjectDelete("2"+sName); }
//*******************************
int start() {
int i,n;
//------------------------------------------------------------------------------
if (f==1) { 
p1=iBarShift(Symbol(),Period(),ObjectGet("1"+sName,OBJPROP_TIME1));
p0=iBarShift(Symbol(),Period(),ObjectGet("0"+sName,OBJPROP_TIME1));
p2=iBarShift(Symbol(),Period(),ObjectGet("2"+sName,OBJPROP_TIME1));
if (
fp==&& p!=p1) {p=p1fp=1;}
if (
fp==&& p!=p0) {p=p0fp=1;}
if (
fp==&& p!=p2) {p=p2fp=1;}
}
//====================================================
sx=0sy=0sxy=0sx2=0
for (
n=0n<=pn++) {sx+=nsy+=Close[n]; sxy+=n*Close[n]; sx2+=MathPow(n,2);}   
aa=(sx*sy-(p+1)*sxy)/(MathPow(sx,2)-(p+1)*sx2); bb=(sy-aa*sx)/(p+1);
//----------------------------------------------------
for (i=0i<=pi++) {
lr=bb+aa*i;
dh=High[i]-lrdl=Low[i]-lr;
//----------------------------------------------------
if (i<p/2) {if (i==0) {dh_1=0.0dl_1=0.0ai_1=ibi_1=i;} 
if (
dh>=dh_1) {dh_1=dhai_1=i;}
if (
dl<=dl_1) {dl_1=dlbi_1=i;}}  
//----------------------------------------------------
if (i>=p/2) {if (i==p/2) {dh_2=0.0dl_2=0.0ai_2=ibi_2=i;} 
if (
dh>=dh_2) {dh_2=dhai_2=i;}
if (
dl<=dl_2) {dl_2=dlbi_2=i;}}} 
//-------------------------------------
lr0=bblrp=bb+aa*(i+p);
//===================================================
if (MathAbs(ai_1-ai_2)>MathAbs(bi_1-bi_2)) f=1;
if (
MathAbs(ai_1-ai_2)<MathAbs(bi_1-bi_2)) f=2;
if (
MathAbs(ai_1-ai_2)==MathAbs(bi_1-bi_2)) {if (MathAbs(dh_1-dh_2)<MathAbs(dl_1-dl_2)) f=1; if (MathAbs(dh_1-dh_2)>=MathAbs(dl_1-dl_2)) f=2;} 
//=================================================
if (f==1) {
for (
n=0n<=20n++) { f1=0;
for (
i=0i<=pi++) {hai=High[ai_1]*(i-ai_2)/(ai_1-ai_2)+High[ai_2]*(i-ai_1)/(ai_2-ai_1);  
if (
i==|| i==p/2dhm=0.0
if (
High[i]-hai>dhm && i<p/2) {ai_1=if1=1;}
if (
High[i]-hai>dhm && i>=p/2) {ai_2=if1=1;} }
if (
f==0) break;} 
//----------------------------
for (i=0i<=pi++) {hai=High[ai_1]*(i-ai_2)/(ai_1-ai_2)+High[ai_2]*(i-ai_1)/(ai_2-ai_1);  
dli=Low[i]-hai
if (
i==0dlm=0.0; if (dli<dlmdlm=dli;}   
ha0=High[ai_1]*(0-ai_2)/(ai_1-ai_2)+High[ai_2]*(0-ai_1)/(ai_2-ai_1); 
hap=High[ai_1]*(p-ai_2)/(ai_1-ai_2)+High[ai_2]*(p-ai_1)/(ai_2-ai_1);
//----------------------------
price_p1=hap;
price_p0=hap+dlm/2;
price_p2=hap+dlm;
price_01=ha0;
price_00=ha0+dlm/2;
price_02=ha0+dlm;
}
//=================================================
if (f==2) {
for (
n=0n<=20n++) { f1=0;
for (
i=0i<=pi++) {lai=Low[bi_1]*(i-bi_2)/(bi_1-bi_2)+Low[bi_2]*(i-bi_1)/(bi_2-bi_1); 
if (
i==|| i==p/2dlm=0.0
if (
Low[i]-lai<dlm && i<p/2) {bi_1=if1=1;}
if (
Low[i]-lai<dlm && i>=p/2) {bi_2=if1=1;}} 
if (
f==0) break;}
//----------------------------
for (i=0i<=pi++) {lai=Low[bi_1]*(i-bi_2)/(bi_1-bi_2)+Low[bi_2]*(i-bi_1)/(bi_2-bi_1); 
dhi=High[i]-lai;
if (
i==0dhm=0.0; if (dhi>dhmdhm=dhi;}   
la0=Low[bi_1]*(0-bi_2)/(bi_1-bi_2)+Low[bi_2]*(0-bi_1)/(bi_2-bi_1); 
lap=Low[bi_1]*(p-bi_2)/(bi_1-bi_2)+Low[bi_2]*(p-bi_1)/(bi_2-bi_1);
//----------------------------------------------------------------
price_p1=lap;
price_p0=lap+dhm/2;
price_p2=lap+dhm;
price_01=la0;
price_00=la0+dhm/2;
price_02=la0+dhm;
}
//===================================================================================
ObjectCreate("1"+sName,20,Time[p],price_p1,Time[0],price_01);
ObjectCreate("0"+sName,20,Time[p],price_p0,Time[0],price_00);
ObjectCreate("2"+sName,20,Time[p],price_p2,Time[0],price_02);
//-----------------------------------------------------------------
ObjectSet("1"+sName,OBJPROP_COLOR,col);
ObjectSet("0"+sName,OBJPROP_COLOR,col);
ObjectSet("0"+sName,OBJPROP_STYLE,STYLE_DOT);
ObjectSet("2"+sName,OBJPROP_COLOR,col);
//---------------------------------------------
ObjectSet("1"+sName,OBJPROP_TIME1,Time[p]);
ObjectSet("1"+sName,OBJPROP_PRICE1,price_p1);
ObjectSet("1"+sName,OBJPROP_TIME2,Time[0]);
ObjectSet("1"+sName,OBJPROP_PRICE2,price_01);
ObjectSet("0"+sName,OBJPROP_TIME1,Time[p]);
ObjectSet("0"+sName,OBJPROP_PRICE1,price_p0);
ObjectSet("0"+sName,OBJPROP_TIME2,Time[0]);
ObjectSet("0"+sName,OBJPROP_PRICE2,price_00);
ObjectSet("2"+sName,OBJPROP_TIME1,Time[p]);
ObjectSet("2"+sName,OBJPROP_PRICE1,price_p2);
ObjectSet("2"+sName,OBJPROP_TIME2,Time[0]);
ObjectSet("2"+sName,OBJPROP_PRICE2,price_02);
//==================================================================
f=1p1=pp0=pp2=pfp=0
//*************************************************************************************
return(0);}
//===================================================================================== 
the .gif image shows the difference in the two on a chart. The number of bars this looks at changes how it moves in the chart too. what language is shi showing on the chart? Could it show english?

On the EMA CROSS I don't just want the stop loss set at the filter level I don't want the EMA CROSS to open a position at all which would have to close outside the channel. That would depend on the TP goal but that's how I'd like the filter to work on the EMA CROSS and on the 'whatever' EA.

I admire your ability to program I wish I knew how to do it more.
Attached Images
File Type: gif shi and autoch.gif (12.5 KB, 1637 views)
Attached Files
File Type: mq4 EMA_CROSSmodv4.mq4 (11.5 KB, 510 views)
File Type: mq4 whatever.mq4 (2.3 KB, 375 views)

Last edited by Aaragorn; 06-27-2006 at 07:29 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
  #665 (permalink)  
Old 08-04-2006, 07:20 PM
Junior Member
 
Join Date: Aug 2006
Posts: 1
Macbel is on a distinguished road
Yes works good in the back tester, but is better in timeframe of 4 hours. I wish understand the logic of the tigger

Quote:
Originally Posted by codersguru
Hi folks,

Could somebody tell me what does he think about this simple EA?
It works good in metatrader back tester .

Note: The back testing optimized for the maximum accuracy results.
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
  #666 (permalink)  
Old 08-09-2006, 11:54 PM
Junior Member
 
Join Date: Aug 2006
Posts: 4
The Wise Trader is on a distinguished road
What causes the trigger on this EA?

Quote:
Originally Posted by Macbel
I wish understand the logic of the tigger
I too, would like to know what triggers this EA, using laymen terminology. I have tested this, but found that it would buy for no apparent reason. Why? I tested this live too on Interbank.

Can someone please describe the logic of this EA in laymen terminology?
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
  #667 (permalink)  
Old 08-10-2006, 07:39 PM
Fisher's Avatar
Junior Member
 
Join Date: Aug 2006
Location: Inside Intel
Posts: 2
Fisher is on a distinguished road
anyone can code a program to give sound alert when ema crossing?
thanks.
__________________
I am what I am
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
  #668 (permalink)  
Old 08-14-2006, 10:10 PM
Member
 
Join Date: Dec 2005
Posts: 36
rodrigokaus is on a distinguished road
Becouse this EMA Cross is slowly?
The system don´t open the positions ecxatly when the moving averages crosses. Is it possible?

Thanks
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
  #669 (permalink)  
Old 08-14-2006, 10:32 PM
Junior Member
 
Join Date: Aug 2006
Posts: 4
The Wise Trader is on a distinguished road
It does not trigger at each time the EMA crosses

I'm finding that it will take a long or short position, but it's not based on when the EMA crosses. I have it set for the default, 1 and 5, but it will take a position for no apparent reason, even if it does not cross. I don't understand the logic behind it, or why it takes a trade when it does. I've even seen it cross and watch it NOT take a trade one way or the other.

Can someone PLEASE enlighten me on this one?
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
  #670 (permalink)  
Old 08-16-2006, 02:49 PM
codersguru's Avatar
Senior Member
 
Join Date: Oct 2005
Posts: 994
codersguru has a spectacular aura aboutcodersguru has a spectacular aura aboutcodersguru has a spectacular aura about
Question

Quote:
Originally Posted by The Wise Trader
I'm finding that it will take a long or short position, but it's not based on when the EMA crosses. I have it set for the default, 1 and 5, but it will take a position for no apparent reason, even if it does not cross. I don't understand the logic behind it, or why it takes a trade when it does. I've even seen it cross and watch it NOT take a trade one way or the other.

Can someone PLEASE enlighten me on this one?
Hi Wise!

I have a very bad memory! could you tell me what's the version of the EA you are talking about? and please attach it in your reply to check it.
Now, I have the time to return to the EMA CROSS and the forum!
__________________
Hope it helps !
Coders' Guru
Senior MQL programmer:
www.xpworx.com/custom.htm
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

Tags
ANG3110@latchess.com, coders guru ema cross, Cross, cross ema, cross forex, ema 34, ema cross, ema cross ea, ema cross expert, ema cross expert advisor, ema cross indicator, ema cross signal, ema ea, ema forex, EMACross3, ema_cross_2, forex, forex EMA, forex ema cross, forex ema cross ea, forex ema ea, Sidus, universalmacross


Currently Active Users Viewing This Thread: 2 (1 members and 1 guests)
wingate
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
Cross! creative Indicators - Metatrader 4 191 11-15-2009 04:51 PM
3 MA cross demontaz Indicators - Metatrader 4 3 09-21-2009 06:36 PM
MA cross/Price cross MA EA Pipsta_UK Expert Advisors - Metatrader 4 5 05-10-2007 09:50 PM
ema cross 1f4 General Discussion 5 05-21-2006 04:13 PM


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



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