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 06-17-2006, 12:08 AM
holyguy7's Avatar
Senior Member
 
Join Date: Feb 2006
Posts: 502
holyguy7 is on a distinguished road
Indicator that Detects Daily Trending?

I am looking for a good indicator(s) that detects trending (or lack thereof) on a Daily chart. Could someone point a few decent ones.

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
  #2 (permalink)  
Old 06-17-2006, 10:00 AM
increase's Avatar
Senior Member
 
Join Date: May 2006
Posts: 844
increase is on a distinguished road
Maybe soeone could take a look at this, see if it worth the conversion

/*[[
Name := trend power
Author := Copyright © 2004, Nick Bilak
Link :=
Separate Window := Yes
First Color := Red
First Draw Type := Line
Use Second Data := Yes
Second Color := DimGray
Second Draw Type := Line
Second Symbol := 218
]]*/
Inputs : SMAfast(7),SMAslow(65),LoTrigger(-0.3),HiTrigger(0.3);
Variables : shift(0), MAType(1), cnt(0), loopbegin(0), first(True), prevbars(0);
Variables : sum(0), smconst(0), prev(0), weight(0), linear(0);
Variables : MAValue(0), MAstring("");
var: signal(0),noise(0),efRatio(0),i(0), Fastest(0.6667), Slowest(0.0645);
SetLoopCount(0);
// initial checkings
// check for additional bars loading or total reloading
If Bars < prevbars Or Bars-prevbars>1 Then first = True;
prevbars = Bars;
If first Then Begin
// loopbegin prevent couning of counted bars exclude current
loopbegin = Bars-SMAslow-1;
If loopbegin < 0 Then Exit; // not enough bars for counting
first = False;
End;

// moving average
loopbegin = loopbegin+1; // current bar is to be recounted too
For shift = loopbegin Downto 0 Begin
MAValue = 100 * (iMA(SMAfast,MODE_SMA,shift) - iMA(SMAslow,MODE_SMA,shift))/iMA(SMAslow,MODE_SMA,shift);
SetIndexValue(shift,MAValue);
if MAValue<0 Then
SetIndexValue2(shift,LoTrigger)
Else
SetIndexValue2(shift,HiTrigger);
loopbegin = loopbegin-1; // prevent to previous bars recounting
End
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 06-17-2006, 11:02 AM
fx-programmer's Avatar
Senior Member
 
Join Date: Apr 2006
Location: europe
Posts: 119
fx-programmer is on a distinguished road
Quote:
Originally Posted by increase
Maybe soeone could take a look at this, see if it worth the conversion

/*[[
Name := trend power
Author := Copyright © 2004, Nick Bilak
Link :=
Separate Window := Yes
First Color := Red
First Draw Type := Line
Use Second Data := Yes
Second Color := DimGray
Second Draw Type := Line
Second Symbol := 218
]]*/
Inputs : SMAfast(7),SMAslow(65),LoTrigger(-0.3),HiTrigger(0.3);
Variables : shift(0), MAType(1), cnt(0), loopbegin(0), first(True), prevbars(0);
Variables : sum(0), smconst(0), prev(0), weight(0), linear(0);
Variables : MAValue(0), MAstring("");
var: signal(0),noise(0),efRatio(0),i(0), Fastest(0.6667), Slowest(0.0645);
SetLoopCount(0);
// initial checkings
// check for additional bars loading or total reloading
If Bars < prevbars Or Bars-prevbars>1 Then first = True;
prevbars = Bars;
If first Then Begin
// loopbegin prevent couning of counted bars exclude current
loopbegin = Bars-SMAslow-1;
If loopbegin < 0 Then Exit; // not enough bars for counting
first = False;
End;

// moving average
loopbegin = loopbegin+1; // current bar is to be recounted too
For shift = loopbegin Downto 0 Begin
MAValue = 100 * (iMA(SMAfast,MODE_SMA,shift) - iMA(SMAslow,MODE_SMA,shift))/iMA(SMAslow,MODE_SMA,shift);
SetIndexValue(shift,MAValue);
if MAValue<0 Then
SetIndexValue2(shift,LoTrigger)
Else
SetIndexValue2(shift,HiTrigger);
loopbegin = loopbegin-1; // prevent to previous bars recounting
End
Too simple and 1 directional.
At the moment mq4 is too limited to give a decent answer. I would look into Tradestation for that.
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 06-17-2006, 11:12 AM
increase's Avatar
Senior Member
 
Join Date: May 2006
Posts: 844
increase is on a distinguished road
sorry to waste your time
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
trend power


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
ToR 1.02 - Trending or Ranging nittany1 Indicators - Metatrader 4 175 11-10-2009 04:27 AM
Daily Average Indicator pfxgroup General Discussion 50 05-26-2009 11:52 AM
Daily open indicator donb01 Metatrader 4 6 07-25-2008 06:09 AM
Indicator that show if market is trending/ranging? SloForeX Indicators - Metatrader 4 5 01-29-2008 04:05 PM
Daily Open Indicator phildunn Metatrader 4 4 03-20-2006 01:05 AM


All times are GMT. The time now is 02:58 PM.



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