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

Re: [amibroker] Exploration and Scan differences



PureBytes Links

Trading Reference Links



I suggest you simplify you code :

buy = ...;
sell = ...;

filter = buy or sell;

Hope it helps,

-R

2009/11/11 L <srengret@xxxxxxxxx>
 

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?




__._,_.___


**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/





Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___