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 09-20-2008, 02:42 PM
cutzpr's Avatar
Member
 
Join Date: Jan 2008
Posts: 49
cutzpr is on a distinguished road
Reverse EMA

I have an idea for an altered EMA. I am not sure if this has been programmed already. I am not even sure if this is a good idea. But I believe it would be a simple task for a seasoned programmer to do. I am curious what the result would be and how it could be used.

So instead of a regular EMA that decreased the older data exponentially, and gives more weight to the current price. What if we reserved it and applied greater weight to the past and decreased the importance of the current price.

I am still a student of MQ4L. The EMA code below if for a EMA, but I do not know which variables to alter in order to complete the task at hand

PHP Code:
{
 
double pr=2.0/(MA_Period+1);
   
int    pos=Bars-2;
   if(
ExtCountedBars>2pos=Bars-ExtCountedBars-1;
//---- main calculation loop
   
while(pos>=0)
     {
      if(
pos==Bars-2ExtMapBuffer[pos+1]=Close[pos+1];
      
ExtMapBuffer[pos]=Close[pos]*pr+ExtMapBuffer[pos+1]*(1-pr);
        
pos--;
     } 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 09-20-2008, 10:42 PM
MT4free.com's Avatar
Junior Member
 
Join Date: Aug 2008
Posts: 17
MT4free.com is on a distinguished road
hi

I think there is no good logic in it....
__________________
VISIT US AT:
http://WWW.MT4free.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 09-21-2008, 12:08 AM
cutzpr's Avatar
Member
 
Join Date: Jan 2008
Posts: 49
cutzpr is on a distinguished road
And when has the Market ever been Logical? The Market will do, what the Market will do. There is no if p then q.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Tags
ema forex

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
Reverse Divergence DanielTyrkiel Indicators - Metatrader 4 41 11-13-2008 02:33 PM
Rads Reverse MTF HAS radatats Suggestions for Trading Systems 207 09-21-2008 08:01 PM
Close and Reverse orders elihayun Tools and utilities 20 09-16-2008 04:56 AM
Reverse Firebird? lonespruce Metatrader 4 25 01-05-2007 04:27 PM
Stop&Reverse EA ... mistrz-swiata Expert Advisors - Metatrader 4 2 11-16-2006 07:21 PM


All times are GMT. The time now is 08:39 AM.



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