Traders Laboratory - View Single Post - Bid-Ask Pressure Indicator for Tradestation
View Single Post
  #12 (permalink)  
Old 03-22-2008, 12:25 PM
Blu-Ray's Avatar
Blu-Ray Blu-Ray is offline
Blu-Ray has no status.

Trader Specs
 
Join Date: Nov 2006
Location: England
Posts: 406
Thanks: 92
Thanked 40 Times in 26 Posts
Re: Bid-Ask Pressure Indicator for Tradestation

Quote:
View Post
currently, the color changes when it crosses above the zero line and stays green when it is above the zero line and it becomes red when it is below the zero line. I was wondering if it can be coded not for zero line crossovers. I would like it to stay green when it keeps going up on the next bar, and go red on a next down bar of the histogram. The price action follows this very well.

thanks...my other favorite indicator is TWIGGS money flow oscillator modified by cosmic.
My apologies, I got the wrong end of the stick ( as usual )

Open up the ELD code and replace this line:

if SmoothedBA <= 0 then color = DownColor else color = UpColor;

with this one:

if SmoothedBA <= SmoothedBA[1] then color = DownColor else color = UpColor;

Hope this helps

Blu-Ray

__________________
Remember - Take the path of least resistance.
Reply With Quote