Forex



Go Back   Forex Trading > Downloads > Indicators - 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 10-26-2006, 07:32 PM
Junior Member
 
Join Date: Mar 2006
Posts: 11
bunder is on a distinguished road
Corrected Moving average

Have someone can help with this indicator?

I need to have the possibility to draw the sma...or not...

Thanks




Here's Tradestation Code:

{Corrected Average (CA), A.Uhl, Oct. 25, 2005}

vars:
CA(0),SA(0),n(0),
v1(0),v2(0),K(0);

inputs:
Price(Close),length(35);

if CurrentBar=1 then
CA=Price
else
begin

if CurrentBar<length then
n=CurrentBar
else
n=length;

SA=Average(Price,n);
v1=Square(StdDev(Price,n));
v2=Square(CA[1]-SA);

if v2<v1 then
K=0
else
K=1-v1/v2;
CA=CA[1]+K*(SA-CA[1]);
end;

Plot1(CA,"Correct Avg",Red,White,3);
Plot2(SA,"Simple Avg",Blue,White,1);
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 10-28-2006, 07:36 PM
Junior Member
 
Join Date: Mar 2006
Posts: 11
bunder is on a distinguished road
Chart example

Here's a chart example.

I'm not intentionally indicating the market or the time frame for showing the indicator capability to stay with a strong trend.

Hope that someone can program it in Metatrader.

ps: In this chart, this is not a sma but a Hull ma which served as a trigger.
Attached Images
File Type: jpg cma.JPG (17.8 KB, 211 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
  #3 (permalink)  
Old 10-29-2006, 09:38 AM
raff1410's Avatar
Senior Member
 
Join Date: May 2006
Location: 24°10' E 54°24' N
Posts: 201
raff1410 is on a distinguished road
Cma

Hi...
Try this one...

Raff
__________________

Last edited by raff1410; 10-29-2006 at 12:24 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
  #4 (permalink)  
Old 10-29-2006, 10:33 AM
Member
 
Join Date: Aug 2006
Posts: 66
swall is on a distinguished road
Quote:
Originally Posted by raff1410
Hi...
Try this one...

Raff
Hi Raff your work is always awwesome.

Can you please put 2 colors on this indicator, like sloping up green and sloping down red

thanks a lot
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 10-29-2006, 11:29 AM
raff1410's Avatar
Senior Member
 
Join Date: May 2006
Location: 24°10' E 54°24' N
Posts: 201
raff1410 is on a distinguished road
Once again CMA...

Quote:
Originally Posted by swall
Hi Raff your work is always awwesome.

Can you please put 2 colors on this indicator, like sloping up green and sloping down red

thanks a lot
Attached Files
File Type: mq4 CMA.mq4 (2.5 KB, 167 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
  #6 (permalink)  
Old 10-30-2006, 12:26 AM
Junior Member
 
Join Date: Mar 2006
Posts: 11
bunder is on a distinguished road
Very nice work RAFF


Thanks again
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


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
XP Moving Average! codersguru Ema Cross 426 11-14-2009 09:24 PM
Moving Average RSI xcooper Metatrader 4 27 09-12-2009 10:05 PM
How to calculate Moving Average of a Moving Average babarmughal Expert Advisors - Metatrader 4 4 05-31-2009 03:05 PM
EA Moving Average rodrigokaus Expert Advisors - Metatrader 4 10 02-11-2009 08:45 AM
moving average danu Expert Advisors - Metatrader 4 1 05-31-2006 05:23 AM


All times are GMT. The time now is 04:00 AM.



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