Welcome Guest, please sign in to participate in a discussion. | Search | Active Topics | |
Registered User Joined: 1/30/2005 Posts: 25
|
I posted this question by mistake in the "General Discussion " section. I am reposting here:
Please let me know if this is possible.
I am trying to create a combination bullish / bearish scan. It doesn't matter what the scan itself is (say the bullish is an entry when price crosses up through a moving average, and the bearish when it crosses down).
The condition to apply the bullish scan would be the "market" going up, and for the bearish scan, of course, it would be the "market" going down.
The market going up could be defined, for example, as the SPX crossing up through the similar moving average.
The questions here is, then, how do I condition a scan of a watchlist on an occurrence on a different stock/index/watchlist?
Any help would be appreciated
Thanks in advance for the reply
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 710
|
grogoff,
Take a look at the attached WorkSpace which contains a BackScan I think meets your purposes. The buy signal is when the stock's price is crossing up through the 20EMA AND the SPY is also crossing up through its 20EMA. Sell signal is when the stock's price is crossing down through its 20EMA AND the SPY is also crossing down through its 20EMA.
You can change any of the parameters through quickedit on the individual conditions (including changing the symbol from SPY to whatever you want to reflect the market as you've defined it).Attachments: grogoffBackScan.bWorks - 68 KB, downloaded 709 time(s).
|
|
Registered User Joined: 1/30/2005 Posts: 25
|
Thank you, Michael.
That's exactly what I was looking for. The problem is, now you got me going!! Is there any way to create "global variables" in BackScanner?
Examples of the variables I am interested in:
LOW (more than one?) HIGH " ENTRY PROFIT
In each case, and for different purposes, I would like to compare the value of any Global with a running variable, and replace it when certain conditions are met.
If the only way to achieve this is through programming (Visual Basic?) so be it, but please let me know.
Thanks again
Jerry
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
grogoff, The following Blocks might be useful in doing what you want:
Line Switch Maximum Minimum Output Constant Single
There are also Max Value in Series and Min Value Series Blocks that are not currently documented in the Worden Knowledge Base. You can see how they would be used by examining the Block Diagram for the Trailing Stop BackScan Condition in the Web Library under Trade Stops. You may wish to review the following:
Customizing with Properties Your First 3 Block Diagrams
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Registered User Joined: 1/30/2005 Posts: 25
|
Thanks again!!
|
|
Worden Trainer
Joined: 10/7/2004 Posts: 65,138
|
You're welcome. Our pleasure.
-Bruce Personal Criteria Formulas TC2000 Support Articles
|
|
Guest-1 |