Forex
Google
New signals service!

Go Back   Forex Trading > Downloads > Indicators - 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
  #11 (permalink)  
Old 07-09-2007, 09:11 PM
Senior Member
 
Join Date: Mar 2006
Location: La Verne,CA
Posts: 556
MrPip is on a distinguished road
Quote:
Originally Posted by Michel View Post
I think you did a mistake : changing TF, you change the time unit, so what you obtain is DeltaY/(DeltaX*Period()).
You should just have to compute DeltaY/DeltaX where DeltaX is in minutes, not in period; then TF doesn't matter.
The original method used deltaX as the number of bars on the X axis which is a constant. This would give pips/bar.

The code I use for deltaX is as follows.

deltaX = (PrevMAShift-CurMAShift) * Period();

PrevMAShift defaults to 4, CurMAShift defaults to 0 so there are 4 bars on X axis( the original deltaX). This is multiplied by Period() to get minutes. On 1 minute chart period is 1 so 4 bars are 4 minutes, on 5 minute chart Period is 5 so 4 bars are 20 minutes.

So timeframe does matter for calculation of minutes from the number of bars.

For deltaY the code is

deltaY = (fCurMA - fPrevMA) / Point; // deltaY in Pips

Then slope as pips/minute is

fAngle = deltaY/ deltaX; // slope

It is possible the slope is different for each timeframe because it just is. This might mean determining a different slope threshold in each timeframe for determining flat markets.

I think visually determining slope is the problem. When the Y axis is reduced to include the same price range on each timeframe the slope does appear different.



In case you did not know this I have a degree in Computer Science, Computer Engineering and a minor in Mathematics as well as over 30 years of programming experience. Before that I was a mathematical analyst for several years.

Robert
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 07-09-2007, 10:34 PM
Senior Member
 
Join Date: Feb 2006
Posts: 558
Michel is on a distinguished road
Quote:
Originally Posted by MrPip View Post
In case you did not know this I have a degree in Computer Science, Computer Engineering and a minor in Mathematics as well as over 30 years of programming experience. Before that I was a mathematical analyst for several years.

Robert
Please, could You accept my humble excuses if I have underevaluate Your intelligence? I am only post graduate in nuclear physics, so You are certainly right !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 07-09-2007, 11:02 PM
kjhfdgjfhdghdf's Avatar
Senior Member
 
Join Date: Mar 2007
Posts: 679
kjhfdgjfhdghdf is on a distinguished road
Talking

Quote:
In case you did not know this I have a degree in Computer Science, Computer Engineering and a minor in Mathematics as well as over 30 years of programming experience. Before that I was a mathematical analyst for several years.
Robert
Dude geeeeez then why the hell are you on here you should be rich enough to have people type for you.
__________________
http://en.wikipedia.org/wiki/Probability
In a deterministic universe, based on Newtonian concepts, there is no probability if all conditions are known.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Tags
angle

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
Ema Angle Zero forexts Indicators - Metatrader 4 33 11-15-2008 08:31 AM
MA Angle Indicator help mrebersv Metatrader 4 3 09-06-2008 10:06 AM
Lsma forexts Indicators - Metatrader 4 11 06-28-2007 07:45 PM
Request: JMA Angle Histogram camisa Metatrader 4 5 12-22-2005 02:02 PM


All times are GMT. The time now is 10:28 AM.



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