I suggest you simplify you code : buy = ...; sell = ...;
filter = buy or sell; Hope it helps, -R 2009/11/11 L <[email protected]> > > > I'm having difficulty with results from exploration and scan functions. > I've written one program to filter and buy and sell so that I can explore > or scan as needed. > > My review of the instructions indicated that Explore is used with a filter. > In the code, I set up my filter, ran Explore, and reviewed the data. It > looked correct. So far, so good. > > Farther down in the program, I used the same code for a buy signal. I ran > Scan and I saw only sell signals from my sell criteria. The buy signals were > not there. > > I seem to have missed something in the purposes of exploration and scan or > am overwriting other data. > > Here are the filter and buy criteria: > > //Filter is for exploration > Filter = > diff > diff10 AND > C > 5.0 AND > ROC(C,10) > 0 AND > PDI(10) > MDI(10) AND > ADX(10)>25 AND > C > EMA(C,10) AND > EMA(C,10) > EMA(C,20) AND > C > TrailStop AND > Open > TrailStop AND > C > TrailStopLine; > > Buy = > diff > diff10 AND > C > 5.0 AND > ROC(C,10) > 0.0 AND > PDI(10) > MDI(10) AND > ADX(10)>25 AND > C > EMA(C,10) AND > EMA(C,10) > EMA(C,20) AND > C > TrailStop AND > Open > TrailStop AND > C >TrailStopLine; > > Any suggestions? > > >
