log in     sign up for free
 
Don't worry about what the markets are going to do, worry about what you are going to do in response to the markets.
Michael Carr
 
 
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

eVwma

Formula for: TradeStation

indicator


 

 

Views:  1661

Added: May 17, 2007
 
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
Christian Fries's elastic volume-weighted moving average (eVwma), described in the article "Elastic Moving Averages" elsewhere this issue, can be implemented as an indicator in TradeStation's EasyLanguage as follows:

 

 



Code:

Type : Indicator, Name : eVwma

inputs:
Price( Close ),
VolumeDivisor( 1 ),
N( 100000 ) ;

variables:
eVWMA( 0 ),
ScaledVol( 0 ),
VolDiff( 0 ),
Violation( false ) ;

if CurrentBar = 1 then
eVWMA = Price

else
begin
ScaledVol = Volume / VolumeDivisor ;
VolDiff = N - ScaledVol ;
if VolDiff < 0 and Violation = false then
Violation = true ;
if Violation = true then
eVWMA = eVWMA[1]

else
eVWMA = ( VolDiff * eVWMA[1] + ScaledVol * Price ) / N ;
end ;

Plot1( eVWMA ) ;


 





Source: http://www.traders.com

 

View similar (indicator for TradeStation):

VIMA
Hull Moving Average
LBR_3/10 Oscillator
TRIX Indicator S&C
Instantaneous Trend Line
MATCH
Double Smoothed Exponential Moving Average
Moving Beyond the Closing Price
Alligator Indicators
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