|
Re: Bid-Ask Pressure Indicator for Tradestation
|
Quote: |
|
 |
|
|
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.
|