View Single Post
 
Old 03-15-2007, 09:47 PM
Pcontour's Avatar
Pcontour Pcontour is offline
Senior Member
 
Join Date: Nov 2006
Location: Canada
Posts: 176
Pcontour is on a distinguished road
Quote:
Originally Posted by autumnleaves
Thanks for the comments Daraknor. The reason that I get sells and not buys with the PAC signal is that I reverse all the Buy/Sell signals in order to convert Phoenix to a trending system.

But I need clarification regarding your conclusion. Is there a bug in this code that limits it to either long or short transactions, or did I miss something somewhere? How can the problem be corrected?
Autumnleaves,

Have you checked the updated documentation. In it I added some explanations about the signals. I was under the understanding that only signals 2 and 3 were counter trending signal. I would appreciate it if you would have a look and let me know if I need to change something.

Signal 1 - Moving Average Envelopes

Envelopes they indicate the upper and lower limits of the price range. View a picture of Envelopes.
 If the price goes above the upper envelope that is a Buy Signal.
 If the price goes below the lower envelope that is a Sell Signal.

Signal 2 - Moving Average Comparison 1 - Counter Trend Signal

Two moving averages are calculated using the same time period P_SMAPeriod. The first is for the present timeframe, and the second is for a point in the past, which is a certain number of bars previous.

 If the older MA is greater than the present one that indicates a downtrend price trend. but Phoenix produces a Buy Signal
 If the older MA is greater than the present one that indicates a downtrend price trend. but Phoenix produces a Buy Signal

Signal 3 - OSMA - Counter Trend Signal

Uses OSMA: Calculates the Moving Average of Oscillator and returns its value. Sometimes called MACD Histogram in some systems.

 If the OSMA from 2 periods ago is less that the OSMA of 1 period ago this indicates a rising price trend, but Phoenix produces a Sell Signal.
 If the OSMA from 2 periods ago is less that the OSMA of 1 period ago this indicates a falling price trend, but Phoenix produces a Buy Signal.

Signal 4 - Moving Average Comparisons 2

Two moving averages are calculated, using P_Fast_Period and P_Slow_Period. Phoenix uses a 15-minute timeframe. The timeframes vary from 1 hour 15 minutes to 9 hours 15 minutes in the current pref settings. It subtracts the fast moving average (which should be for the shorter timeframe) from the value of the faster timeframe.

 If the faster moving average is above the slower one by at least P_DVBuySell but not by more than P_DVStayOut Buy.
 If the faster moving average is below the slower one by at least P_DVBuySell but not by more than P_DVStayOut Sell.