Tradecision Talks
May 22, 2013, 12:40:49 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Analysing range  (Read 2399 times)
martn76
Full Member
***
Posts: 7


« on: May 21, 2007, 02:54:11 PM »

I want to be able to implement an analysis on any index to find out the most persistent range.  For example, I may want to find out if the dow has more days that range from +20 to -20 points or +30 to -10 and so on.  How could I implement this in tradecision?
Logged
AlexG
Sr. Member
****
Posts: 16


« Reply #1 on: May 22, 2007, 10:54:29 AM »

I want to be able to implement an analysis on any index to find out the most persistent range.  For example, I may want to find out if the dow has more days that range from +20 to -20 points or +30 to -10 and so on.  How could I implement this in tradecision?

It looks like a pattern recognition capability which is not available in Tradecision.
We'll add to it our list of future considerations.

Sincerely,

Alex Grechanowski

Sales Manager
Alyuda Research
(510) 931-7808
sales@tradecision.com
www.tradecision.com


Logged
Tradecision Support Team
Hero Member
*****
Posts: 336


« Reply #2 on: May 25, 2007, 05:35:50 AM »

Hi Martin,

According to your new email to us

All I want to  find out  is how the probability of an index ranging 10 points up and then 10 points down from its open price over a given time line.  I want to use write a formula or some use existing indicators or features in tradecision to do this...

Here is the code for a custom indicator (use Indicator Builder) provided by our Improvian mavens as Free Improvian Consulting Services for Tradecision customers (www.tradecision.com/support/improvian_consulting.htm):

Input
     length:"Lenght",20;
     pointsUp:"Points Up",0.3;
     pointsDown:"Points Down",0.3;
end_input

var
   i:=0;
   ud:=0;
   lastPivot:=Close;
   count:=0;
end_var

 
for i:=0 to length do   {go to reverse direction}
begin
     if ud=0 then {finding 10 points down}
        if (C\i\-lastPivot>pointsDown) then begin ud:=1; lastpivot:=C\i\; end;
        else
           if lastPivot>C\i\ then lastPivot:=c\i\;

     if ud=1 then {finding 10 points up}
        if (lastPivot-C\i\>pointsUp) then begin ud:=0; count:=count+1; lastpivot:=C\i\; end;
        else
           if lastPivot<C\i\ then lastPivot:=c\i\;

end;

return count;


Hopefully it will help you in trading.

Sincerely,

Tradecision Support Team


Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!