- ago
I want to calculate market condition (bull or bear), and save it as a symbol so I can share it with all of my strategies. How can I do it ? or is there a better way to do it ?
0
179
Solved
7 Replies

Reply

Bookmark

Sort
- ago
#1
- Save as a BarHistory (QX).
- Save to an Indicator file (QXI).
- Don't save, use WL's global memory (*Global methods).
0
- ago
#2
QUOTE:
I want to calculate market condition (bull or bear)

I would pick a metric out of the IndexLab extension (e.g. the McCellan Oscillator, which has the indicator destination: CompMcClellan), which depicts the market condition you're most interested in, then employ that indicator destination in your strategies.

The documentation for IndexLab will not show up until you install the extension. Once installed, you can read about how it works. It does cache the indexes you're using on disk for faster operation.

You have to option to program your own indicator with it, but I would use one of the ready made ones to start out with.
0
Glitch8
 ( 10.92% )
- ago
#3
The standard solution is to just create a custom indicator, just like our MarketState indicator.
0
- ago
#4
Any documents or examples for these ? what do they (QX, QXI etc, and MarketState) mean ?

I want to calculate broad market strength which values are from 1 to 100, and save them as TimeSeries, Indicator or Quote in one strategy (or something in WL), so I can retrieve the data for all my other strategies. Can you provide me a sample code or a link to online document ?

thanks
0
Cone8
 ( 23.78% )
- ago
#5
Forget about QX, they're binary data files.

MarketState is an Indicator.
Search for it in the Indicators section and click on it for a Description.

The suggested idea is to "share" the market condition is to create an indicator for it. Use MarketState or create your own Custom Indicator for "market condition". Then all the strategies can use the same indicator.
0
Best Answer
- ago
#6
Cone, Thank you .

I can't find any place I can create a custom indicator, can you please show me an example or a link to document ?
0
- ago
#7
You can use the indicator builder via menu Tools -> New Custom Indicator (C#).
That'll bring up the Indicator Builder window. There are three samples from which you can learn - see the top of the window and you'll see samples ATR, RSI and SMA. For additional information click the ? mark in the upper right of the indicator builder window to bring up the help.
0

Reply

Bookmark

Sort