Click here to Login

                                                   Problems with the Composite Function


2018-03-17 14:19:01

I try to apply the comp function to count stocks with close > SMA(200) for a given symbols list.
The used symbol list is visible under "Symbols View".
When running this line of code
RUSSMA =Comp(close > sma(200), "sum",1,1, "Russel1000");
'RUSSMA' is still 'n. def' in the debug View of the formula window.

Any suggestions ?


2018-03-19 04:18:08



The "Comp" function does not work with the chart or the watchlist tools. That functions requires that all securities data to be loaded and thus it works with tools such as portfolio, trading system, composite, screener...

2018-03-19 06:18:50


Alright, the simulator seems to work with the "Comp" function.
Thanks for the response.


No more messages


No html code. URLs turn into links automatically.

Type in the trading objects you want to include: - Add Objects
To add a trading object in your message, type in the object name, select it and then click on "Add Objects"


Trading Items
Top 20 stocks with the highest 10 day rate of change - Current an...
Market Composite Index based on the Sharpe Ratio
Stocks with the highest Volume Increase
Stocks with an EPS Several Times Higher than the Industry Average...
Fibonacci Trading with the Retracement Levels/Ratios

How-to Lessons
How to screen for stocks having a high correlation with the Dow J...
How to create a composite index/indicator
How to plot a stock using different periods in the same chart
How to plot a time-series that do not update the chart scale
How to change volume bar colors when the price closes down

Related Forum Threads
Composite Function
Composite Function
Problem with performance calculation in custom function
Problem with the "Individual stocks put and call volume" download...
Limiting the scale of a candlestick chart with volume?

Blog Posts
Screening with the composite indicators
How to create market indicators using the composite function - Pa...
How to create market indicators using the composite function - Pa...
How to create market indicators using the composite function - Pa...
How to measure market strength with the composite tool

Create an account
Affiliate Program
Contact Us
Trading Forum
How-to Lessons
About Us
Terms of Use

Copyright 2021
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
Follow us on Google+
RSS Trading Items

Trading financial instruments, including foreign exchange on margin, carries a high level of risk and is not suitable for all investors. The high degree of leverage can work against you as well as for you. Before deciding to invest in financial instruments or foreign exchange you should carefully consider your investment objectives, level of experience, and risk appetite. The possibility exists that you could sustain a loss of some or all of your initial investment and therefore you should not invest money that you cannot afford to lose. You should be aware of all the risks associated with trading and seek advice from an independent financial advisor if you have any doubts.