log in     sign up for free
 
I like the Japanese philosophy where you ask questions rather than look for answers. The more questions you come up with the better. The answers will happen.
Sunny Harris
 
 
Home
systems (284)
 
Special offer: buy MetaStock (try for free)   |   Reuters QuoteCenter Real-Time Data (get a free month)   |   EOD Data
 
Formula Library
 
AmiBroker
MetaTrader
MetaStock
TradeStation
Wealth-Lab
NinjaTrader
 
add your formula
System Library
 
 
Account login
Your email:
Password:
 
Log in
New to s4t? Sign up.
If you forgot your password click here.
Search the Web
 
Custom Search

VIDYA Variation

Formula for: TradeStation

indicator


 

 

Views:  2024

Added: August 23, 2008
 
Rate this code:  Rate: 1 Rate: 2 Rate: 3 Rate: 4 Rate: 5
This formula has not been rated yet
 

email this link

 
 
Tags: TradeStation, indicator
 
Your Ad Here
-----Original Message-----
From: William Heinz
To: editorial@xxxxxxxxxxxxx
Date: Monday, September 07, 1998 7:00 PM
Subject: Re: Reverse Engineering Request
I forgot to mention he indiator I am interested in. Chapter 3 "The Variable Index Dynamic Index" (VIDYA)
Thanks again, Bill

-----Original Message-----
From: William Heinz
To: The Omega Man (TM)
Date: Monday, September 07, 1998 6:21 PM
Subject: Re: Reverse Engineering Request

>Omega Man, The Book is "The New Technical Trader" by Tuschar S Chande >and Stanley Kroll
>(John Wiley & Sons) @ $64.95. Be happy to copy the chapter and mail it to you.
>There are some other interesting topics as well.
>
>Many thanks
>
>Bill
>
>PS You seem quite talented in your reverse engineering. This should be
>very easy as the formulas, etc to calculate the indicator are described.

Re: Reverse Engineering Request (VIDYA)

. To: "William Heinz"
. Subject: Re: Reverse Engineering Request (VIDYA)
. From: "The Omega Man (TM)"
. Date: Thu, 17 Sep 1998 05:41:22 -0400
. Cc: "Omega List"
. Reply-To: "The Omega Man (TM)"
. Resent-Date: Thu, 17 Sep 1998 02:41:41 -0700
. Resent-From: omega-list@xxxxxxxxxx
. Resent-Message-ID: <"xdiZl1.0.3o6.KbD0s"@mx1>
. Resent-Sender: omega-list-request@xxxxxxxxxx

Here's a variation I developed based on Dr. Chande's theme:

Create a user function called VIDYA2, as follows:



Type : Function, Name : VIDYA2

Input:
Price(numericseries),
CMOLen(numeric),
VIDYALen(numeric),
Speed(Numeric);

Var:
NumUp(0),
NumDn(0),
Cnt(0),
SumUp(0),
SumDn(0),
Diff(0),
VIDYAPri(0),
AbsCMO(0),
Const(0);

SumUp = 0;
SumDn = 0;
NumUp=0;
NumDn=0;

For Cnt = 0 to CMOLen-1 Begin
Diff = Price[Cnt] - Price[Cnt+1];
If Diff > 0 then SumUp = SumUp + Diff else SumDn=SumDn-Diff;
If Diff > 0 then NumUp=NumUp+1 else NumDn=NumDn+1;
End;

AbsCMO = Speed*AbsValue(((NumUp-NumDn)*(SumUp-SumDn))/((SumUp+SumDn)*(NumUp+NumDn)));
Const = 2/(VIDYALen+1);

VIDYA2 = iff(Barnumber > VIDYALen,(Price * Const * AbsCMO) +
((1 - AbsCMO * Const) * VIDYA2[1]),Price);




Now create the indicator, using the following code:



Type : Function, Name : VIDYA2
Input:
Price(TypicalPrice),
CMOLen(9),
VIDYALen(12),
UBandPct(1),
LBandPct(1),
Speed(2);

Var: PlotVal(0);

PlotVal = VIDYA2(Price,CMOLen,VIDYALen,Speed);

If PlotVal > 0 then begin
Plot1(PlotVal,"VIDYA");
Plot2((1 + UBandPct*.01)*PlotVal,"Upper Band");
Plot3((1 - LBandPct*.01)*PlotVal,"Lower Band");
End;






Try varying the speed input in VIDYA2 from 1 to 4. Set it to suit your trading style. I prefer my VIDYA2 to the original VIDYA. It suits my style better. But I'll let you be the judge...
One final note: These indicators could be coded as indicators only - without the use of user functions. I've provided the user functions in case you wish to incorporate VIDYA or VIDYA2 into a trading system.

All the best,

The Omega Man (TM)

Omega - Love it or Leave it.

 

 



Code:

Type : Function, Name : VIDYA2

Input:
Price(numericseries),
CMOLen(numeric),
VIDYALen(numeric),
Speed(Numeric);

Var:
NumUp(0),
NumDn(0),
Cnt(0),
SumUp(0),
SumDn(0),
Diff(0),
VIDYAPri(0),
AbsCMO(0),
Const(0);

SumUp = 0;
SumDn = 0;
NumUp=0;
NumDn=0;

For Cnt = 0 to CMOLen-1 Begin
Diff = Price[Cnt] - Price[Cnt+1];
If Diff > 0 then SumUp = SumUp + Diff else SumDn=SumDn-Diff;
If Diff > 0 then NumUp=NumUp+1 else NumDn=NumDn+1;
End;

AbsCMO = Speed*AbsValue(((NumUp-NumDn)*(SumUp-SumDn))/((SumUp+SumDn)*(NumUp+NumDn)));
Const = 2/(VIDYALen+1);

VIDYA2 = iff(Barnumber > VIDYALen,(Price * Const * AbsCMO) +
((1 - AbsCMO * Const) * VIDYA2[1]),Price);




Now create the indicator, using the following code:



Type : Function, Name : VIDYA2
Input:
Price(TypicalPrice),
CMOLen(9),
VIDYALen(12),
UBandPct(1),
LBandPct(1),
Speed(2);

Var: PlotVal(0);

PlotVal = VIDYA2(Price,CMOLen,VIDYALen,Speed);

If PlotVal > 0 then begin
Plot1(PlotVal,"VIDYA");
Plot2((1 + UBandPct*.01)*PlotVal,"Upper Band");
Plot3((1 - LBandPct*.01)*PlotVal,"Lower Band");
End;


 





Source: http://www.purebytes.com

 

View similar (indicator for TradeStation):

HI LO Activator
Trend Continuation Factor
LMS Predictor
Power RSI Pivot
Seasonal SB
Moving Average Spread Indicator
Moving Averages with Resistance and Support
VIDYA/CDMA
CCI Predict
Color on MACD Histogram
...
 
 
all formulas for TradeStation
all formulas

 

 

Email to friend

Top

 

     
However we try to maintain hiqhest possible level of service - most formulas, oscillators, indicators
and systems are submitted by anonymous users.
Therefore S4T™ does not take any responsibility for it's quality.
If you use any of this information, use it at your own risk. You are responsible for your own trading decisions.
Be sure to verify that any information you see on these pages is correct, and is applicable to your particular trade.
In no case will S4T™ be responsible for your trading gains or losses.
 
Privacy note | (c) copyrights systems4trading.com 2006-2012