log in     sign up for free
 
Whenever you get hit, you are very upset emotionally. Most traders try to make it back immediately; they try to play bigger. Whenever you try to get all your losses back at once, you are most often doomed to fail.
Marty Schwartz
 
 
Home
systems (285)
 
 
Special offer: buy AmiBroker and EOD+Real-Time 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

Color on MACD Histogram II

Formula for: TradeStation

indicator

 

 

Views:  3408

Added: January 24, 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
 


Re: Color on Histogram
. To: ribau@xxxxxxxxxxxxx, Omega List <omega-list@xxxxxxxxxx>
. Subject: Re: Color on Histogram
. From: Dennis Holverstott <dennis@xxxxxxxxxx>
. Date: Wed, 04 Nov 1998 14:56:35 -0800
. References: <19981104193003196.AAA140@xxxxxxxxxxxxxxxxxxx@notebook>
. Resent-Date: Wed, 4 Nov 1998 14:56:59 -0800
. Resent-From: omega-list@xxxxxxxxxx
. Resent-Message-ID: <"Eaj5h3.0.sG6.xkDGs"@mx1>
. Resent-Sender: omega-list-request@xxxxxxxxxx

> What I was trying to
> code was an indicator that would paint the MACD hist bar green if it has
> risen in relation to the previous bar (increased value), and paint the MACD
> hist bar red if it is lower than the previous bar (decreased value),
> regardless of whether the bar is above or below the zero line.

This could be coded to run much faster but it should do what you want.

 

 



Code:

Type : Indicator, Name : Color on MACD Histogram II
Input:
FastMA(12),
SlowMA(26),
MacdMA(9);

value1 = MACD(Close,FastMA,SlowMA);
value2 = XAverage(MACD(Close,FastMA,SlowMA),MacdMA);

if value1 > value1[1] then plot1(value1,"MACD Up") else {green hist}
if value1 < value1[1] then plot2(value1,"MACD Down") else {red hist}
plot3(value1,"MACD Flat"); {yellow hist}

plot4(value2, "MACD Avg"); {line}


 





Code to difficult? Find somebody to help you with coding here.

 


Source: http://www.purebytes.com

 

View similar (indicator for TradeStation):

Kase CD
Pivot Point Average
CCI - Stochastic (CCI-STO)
T3
One Point Two Eight
Preferred (Slow) Oscillator
Balance Of Power (BOP)
Weekly Hi-Lo Lines
DBS-Where
Quarterly Pivots
...
 
 
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.
PayPalSecure payments by PayPal S4T™ is a part of TAURO EDUCATION NETWORK
 
Privacy note | (c) copyrights systems4trading.com 2006-2009