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
  #121 (permalink)  
Old 08-29-2009, 01:42 AM
Senior Member
 
Join Date: Jan 2007
Location: not so remote
Posts: 3,272
fxbs is on a distinguished road
for (; masPeriod<=Mas.End; masPeriod+= Mas.Step, masCount++)
Mladen, (; - looks like something missing, is it ACodeError?
dem, his code getting shorter and shorter - i'm very unhappy
now i don't even know what is it (what i'm stealing), that's apsets me
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
  #122 (permalink)  
Old 08-29-2009, 01:55 AM
Senior Member
 
Join Date: Jan 2007
Location: not so remote
Posts: 3,272
fxbs is on a distinguished road
see, with such hi-tec - how to achieve TrStr C effect (p.44):

To determine how much a market shows a trend-movement we will use the TrendStrength C

Indicator from the TrendStrength family (introduced above). This indicator was developed by José
Cruset and works similar as the TrendStrength A indicator but instead of comparing the price with
the price of various SMAs it counts how many SMAs are rising or falling. The higher its value (in
absolute terms) the more SMAs are rising and consequently the stronger is the trend. The higher the
indicator
Attached Images
File Type: jpg ts c _jc.JPG (57.9 KB, 696 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
  #123 (permalink)  
Old 08-29-2009, 04:00 AM
Member
 
Join Date: Jan 2007
Posts: 83
Sundowner is on a distinguished road
Very nice indicator

Quote:
Originally Posted by mladen View Post
This one I needed to rename : it was described by Jose Cruset in the attached document but since he calls it a Trend Strength and since there is already an indicator for metatrader with that name (different calculation behind it) I renamed it to MasTrend.


Thanks for sharing.
Attached Images
File Type: gif chart.gif (33.5 KB, 699 views)

Last edited by Sundowner; 08-29-2009 at 04:11 AM. Reason: add pic
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
  #124 (permalink)  
Old 08-29-2009, 02:18 PM
Senior Member
 
Join Date: Jan 2007
Location: not so remote
Posts: 3,272
fxbs is on a distinguished road
seriously, with all hard coded in one f-la ("A") : ) - how to get "C" (p44 doc) : (
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
  #125 (permalink)  
Old 08-29-2009, 06:15 PM
mladen's Avatar
Senior Member
 
Join Date: Oct 2006
Posts: 1,269
mladen is on a distinguished road
Quote:
Originally Posted by fxbs View Post
for (; masPeriod<=Mas.End; masPeriod+= Mas.Step, masCount++)
Mladen, (; - looks like something missing, is it ACodeError?
dem, his code getting shorter and shorter - i'm very unhappy
now i don't even know what is it (what i'm stealing), that's apsets me
Nah, no error
As of short - not short enough. The ideal would look something like this :
PHP Code:
while(myWelth<3*WarrenBuffetsWelthmakeMeSomeMoreMoney(); 
but when I write it metatrader complains (can you imagine that )
Quote:
Originally Posted by fxbs View Post
seriously, with all hard coded in one f-la ("A") : ) - how to get "C" (p44 doc) : (
Looking for slopes of MA instead for difference between price and MA. So : if iMa(,..,i)>iMa(,...,i+1) total++ and if iMa(,..,i)<iMa(,...,i+1) total--. For speeding up maybe some more code would be needed, but that is the essence

_____________________________

PS: Ultra trend does the same slope comparing thing only it uses JMA for that and it's representation is a bit different, so it would be interesting to find out exactly the origin of that "slope" idea (I am not sure that it is Jose Cruset's original idea)

Last edited by mladen; 08-29-2009 at 08: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
  #126 (permalink)  
Old 08-29-2009, 06:28 PM
Senior Member
 
Join Date: Jan 2007
Location: not so remote
Posts: 3,272
fxbs is on a distinguished road
if i knew what is it :
for (; masPeriod<=Mas.End; masPeriod+= Mas.Step, masCount++)
- i would allready did it
(just two words explain(it's not a programminf thread, but...) - please, Mladen
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
  #127 (permalink)  
Old 08-29-2009, 10:51 PM
Senior Member
 
Join Date: Jan 2007
Location: not so remote
Posts: 3,272
fxbs is on a distinguished road
Quote:
Originally Posted by mladen View Post
Nah, no error
As of short - not short enough. The ideal would look something like this :
PHP Code:
while(myWelth<3*WarrenBuffetsWelthmakeMeSomeMoreMoney(); 
but when I write it metatrader complains (can you imagine that )

Looking for slopes of MA instead for difference between price and MA. So : if iMa(,..,i)>iMa(,...,i+1) total++ and if iMa(,..,i)<iMa(,...,i+1) total--. For speeding up maybe some more code would be needed, but that is the essence

_____________________________

PS: Ultra trend does the same slope comparing thing only it uses JMA for that and it's representation is a bit different, so it would be interesting to find out exactly the origin of that "slope" idea (I am not sure that it is Jose Cruset's original idea)
like this
A:

for (; masPeriod<=Mas.End; masPeriod+= Mas.Step, masCount++)
{
double ma = iMA(NULL,0,masPeriod,0,Mas.Type,Price,i);
if (price > ma) total++;
if (price < ma) total--;
}
MasTrendBuffer[i] = 100.00*total/masCount;




C:

for (; masPeriod<=Mas.End; masPeriod+= Mas.Step, masCount++)
{
double ma0 = iMA(NULL,0,masPeriod,0,Mas.Type,Price,i);
double ma1 = iMA(NULL,0,masPeriod,0,Mas.Type,Price,i+1);
if (ma0 > ma1) total++;
if (ma0 < ma1) total--;
}
MasTrendBuffer[i] = 100.00*total/masCount;

p.s. thanks, Mladen ( though i still have no idea what "for (; " means - and you don't wanna tell nobody : (((((((
Attached Images
File Type: gif mas trend a c.gif (15.1 KB, 885 views)
Attached Files
File Type: mq4 0MasTrend_C.mq4 (1.8 KB, 122 views)

Last edited by fxbs; 08-30-2009 at 04:31 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
  #128 (permalink)  
Old 09-03-2009, 06:43 PM
CodeMuncher's Avatar
Member
 
Join Date: Jul 2008
Posts: 65
CodeMuncher is on a distinguished road
Quote:
Originally Posted by fxbs View Post
for (; masPeriod<=Mas.End; masPeriod+= Mas.Step, masCount++)
Mladen, (; - looks like something missing, is it ACodeError?
dem, his code getting shorter and shorter - i'm very unhappy
now i don't even know what is it (what i'm stealing), that's apsets me
Your PM box is full.
__________________
If you code it, they will come
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
  #129 (permalink)  
Old 09-03-2009, 06:47 PM
CodeMuncher's Avatar
Member
 
Join Date: Jul 2008
Posts: 65
CodeMuncher is on a distinguished road
Quote:
Originally Posted by mladen View Post
This one I needed to rename : it was described by Jose Cruset in the attached document but since he calls it a Trend Strength and since there is already an indicator for metatrader with that name (different calculation behind it) I renamed it to MasTrend.

The idea is simple : compare a price to a series of moving averages. For more details about it (not just about it) please read the attached document by
Jose Cruset. In general, values above 60 and below -60 are considered as strong trend.


!!_cm.gif

Is there a reason you didn't plot the level lines at 60, 0 and -60?

Simple code:

Code:
#property indicator_level1 60.0
#property indicator_level2 0.0
#property indicator_level3 -60.0
 
#property indicator_levelcolor Gray
__________________
If you code it, they will come
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
  #130 (permalink)  
Old 09-03-2009, 08:48 PM
Big Joe's Avatar
Senior Member
 
Join Date: May 2006
Location: In the trading room !
Posts: 764
Big Joe is an unknown quantity at this point
Quote:
Originally Posted by CodeMuncher View Post
Attachment 89391

Is there a reason you didn't plot the level lines at 60, 0 and -60?

Simple code:

Code:
#property indicator_level1 60.0
#property indicator_level2 0.0
#property indicator_level3 -60.0
 
#property indicator_levelcolor Gray
Because it will make you billionaire
__________________
Picasso is the best !
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
1-2-3, 1-2-3 Pattern, 1-2-3 Pattern MTF, 3d oscillator, best trend indicator, brain trend, brain trend indicator, dynamic trend, Dynamic Trend Indicator, flat indicator, flat trend, flat trend indicator, flat trend indicators, forex trend detection, Forex Trend indicator, forex trend indicators, Instantaneous Trend Indicator, Kaufman, metatrader trend indicator, mt4 trend indicator, mt4 trend indicators, rsi triple hull, TDI indicator forex, trend, Trend Detection Index mt4, trend indicator, trend indicator forex, trend indicator metatrader, trend indicator mq4, trend indicator mt4, trend indicators, trend indicators forex, trend line indicator, Trend mq4, trend strength, trend strength indicator, trend strength mq4, trend.mq4, true strength index mq4, TRUE TREND INDICATOR, Widners Oscilator, WSOWROTrend, WSOWROTrend.mq4


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
Max number of indicators in indicators folder? moneyline Metatrader 4 23 05-29-2009 12:37 PM
Flat trend indicators ? hexadecimal Indicators - Metatrader 4 8 10-04-2008 08:43 AM
Best trend indicators? markt Indicators - Metatrader 4 7 11-28-2007 06:00 AM
Anti Trend and Trend Following Systems Maji General Discussion 3 03-08-2007 09:23 PM


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



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