Forex



Go Back   Forex Trading > Discussion Areas > Metatrader 4
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 09-20-2008, 02:42 PM
cutzpr's Avatar
Member
 
Join Date: Jan 2008
Posts: 60
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!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 09-20-2008, 10:42 PM
MT4free.com's Avatar
Junior Member
 
Join Date: Aug 2008
Posts: 25
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!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 09-21-2008, 12:08 AM
cutzpr's Avatar
Member
 
Join Date: Jan 2008
Posts: 60
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!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 12-04-2008, 03:25 AM
cutzpr's Avatar
Member
 
Join Date: Jan 2008
Posts: 60
cutzpr is on a distinguished road
Could someone please help me define what variable to I need to change in order to reverse the time series?
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 12-18-2008, 05:07 PM
Junior Member
 
Join Date: Dec 2008
Posts: 3
michael_lewis is on a distinguished road
I think you’re not going to receive too much help if you don’t at least explain, what would be the use in reversing the EMA, and "The Market will do what the Market will do" doesn’t seem to persuade. Good luck.
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 12-18-2008, 05:08 PM
Junior Member
 
Join Date: Dec 2008
Posts: 3
michael_lewis is on a distinguished road
I think you’re not going to receive too much help if you don’t at least explain, what would be the use in reversing the EMA, and “The Market will do what the Market will do” doesn’t seem to persuade. Good luck.
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 12-20-2008, 12:45 PM
cutzpr's Avatar
Member
 
Join Date: Jan 2008
Posts: 60
cutzpr is on a distinguished road
What I mean by When has the Market ever been logical is;
If you have never read up on Random walk theory and Efficient Market Hypothesis. You should.
If markets were perfectly efficient and random then traders would not be able to make excess returns on any available information because the information is already out there and the moves are random. But that is not the case, therefore markets can not be perfectly efficient in the sense of fundamental data and exchange rates always being where fundamentally they should be. Technical analysis helps traders create methods to beat the market using past data. Now efficient markets hypothesis states that past market data had no bearing on forecasting the future, but if that was true. Then technical analysis would be useless. So yeah….. the Market is not logical.
Anyways..
The Reverse Exponential Moving Average An exponential moving average computed working backward through the time series, rather than forward, as is the case with a standard EMA. A REMA is used so the target would reflect only future price behavior, not past action that would induce spurious correlation.- Traders' Glossary N-S
I believe this is the code for it but I believe it is for Amibrokers.
// Reverse EMA function, by D.Tsokakis, June 2003
P=20;
CLOSEviaEMA=0.5*((P+1)*EMA(C,P)-(P-1)*Ref(EMA(C,P),-1));
Plot(C,"CLOSE",1,1);
Plot(CLOSEviaEMA,"CLOSEviaEMA",7,8);
AmiBroker - AFL Library
It can be used in the Market to better judge short term and mid term correlations between currencies and filter out market noise between currency legs. It can also help in studying market cycles.
Spurious relationship - Wikipedia, the free encyclopedia
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 12-22-2008, 06:14 PM
Junior Member
 
Join Date: Dec 2008
Posts: 1
FxAdvanger is on a distinguished road
mmm

Can we make an EA out of this LOL!!
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
ema forex, reverse ema, reverse


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
Rads Reverse MTF HAS radatats Suggestions for Trading Systems 220 09-17-2009 12:37 PM
Close and Reverse orders elihayun Tools and utilities 29 06-23-2009 10:57 AM
Reverse Divergence DanielTyrkiel Indicators - Metatrader 4 41 11-13-2008 02:33 PM
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:57 AM.



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