Welcome to the Traders Laboratory Forums.
Coding Forum Collaborate, receive help, or discuss coding related issues.

Reply
Old 04-06-2010, 01:12 PM   #9

Tams's Avatar

Join Date: Sep 2008
Location: Geelong
Posts: 3,779
Ignore this user

Thanks: 2,084
Thanked 1,474 Times in 912 Posts

Re: Median in Easylanguage

more info on array

http://www.traderslaboratory.com/for...uage-5785.html

__________________



Only an idiot would reply to a stupid post
Tams is offline  
Reply With Quote
Old 04-06-2010, 01:43 PM   #10

BlowFish's Avatar

Join Date: Mar 2007
Location: In Da House
Posts: 3,292
Ignore this user

Thanks: 129
Thanked 1,054 Times in 702 Posts

Re: Median in Easylanguage

Quote:
Originally Posted by Tams »
you have to use the medianarray

first, create an array,
then put the 5 numbers in the array,
then use medianarray to interrogate the array for the median.
This would certainly work but grows exponentially slower as the set of data increases. (It calls SortArray which is a bubble sort and fairly highly iterative). Not a problem if you are looking at (for example) the close of 5 minute bars (small data set) but possibly an issue if you are using say tick data (a large data set).

Just offering this for consideration .
BlowFish is offline  
Reply With Quote
The Following User Says Thank You to BlowFish For This Useful Post:
Tams (04-06-2010)

Reply

Tags
array, median

Thread Tools
Display Modes Help Others By Rating This Thread
Help Others By Rating This Thread:


Similar Threads
Thread Thread Starter Forum Replies Last Post
Easylanguage Partner Market Wizard Coding Forum 1 05-19-2012 04:51 PM
Trendline (EasyLanguage) Tams Coding Forum 43 07-09-2011 12:36 AM
Antonio: Please help me on MP for easylanguage nasdaq5048 Market Profile 13 09-23-2010 09:50 AM
Some EasyLanguage Help Please jjthetrader Coding Forum 8 06-02-2008 04:20 PM
Andrews Pitchfork (Median Line) justcatalin Market Analysis 16 04-06-2008 03:44 AM

All times are GMT -4. The time now is 02:35 PM.
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
CS to VB integration by DeskLancer
©2006-2011 Traders Laboratory, All Rights Reserved.