[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Code question - what is tomorrows reverse price?



PureBytes Links

Trading Reference Links


Hello all;

I'm using the following code on end of day data for the XAverage Crossover
Signal which I'm pretty sure is standard in 2000i:

Input: Length1(4),Length2(9);
IF CurrentBar > 1 and XAverage(Close,Length1) crosses above
XAverage(Close,Length2) Then Buy on Close;
IF CurrentBar > 1 and XAverage(Close,Length1) crosses below
XAverage(Close,Length2) Then Sell on Close;

Knowing that there a few known bugs in Omega's code, does anyone know if the
XAverage function has any flaws?

Also, for you more mathematically inclined, what code might you suggest for
predicting tomorrows price that would cause a "crosses above(below)?" I'm
sure that many users who use moving averages would find such a code useful
for setting reversals assuming they aren't using the close for calculations.

Thanks for all the help!

Daniel Poiree
Bellingham WA