Click here to Login





                                                   comp function or equivalent does not seem to be working

  0

0
roosevelt
2019-11-24 09:30:36


//Trying to see if comp produce the correct result on filter
1. when i use just flt it has different set of output
2. when i put flt in comp as filter symbols it has different set of output and way higher than no of items in output

volumeRule1 = volume > ref(volume,1)
and sma(volume,3) > sma(volume,10)
and sma(volume,10)>100000
and volume>100000;

flt = close >100
and ref(close,0) > ref(low,1)+ 0.5*(ref(close,1)-ref(open,1)) and ref(close,0) > ref(close,1)
and volumeRule1;

dailyRule1 = comp((hhv(close,255)-close) , "rank",flt) <=20;

filter = dailyRule1;
//filter = flt;


I wanted to do the sort on a given column so that i can obtain only few rows from sorted one . let me know if we have anything like that .



QuantShare
2019-11-25 10:17:08

  0

Hello,

Sorry but I am not sure I understand.

If you set a filter ("flt" for instance), of course the results will be different. The composite calculation will not include data points where the filter do not pass.

If you use flt = close > 0

then you should see the same result as no passing filter because the rule will always pass.



No more messages
0




Reply:

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"










QuantShare

Trading Items
Swing Point Function (SP)
Advanced Quotes and Custom Databases Function
Set the First Trading Bar Values to Not a Number
Fibonacci Function
News parser function

How-to Lessons
How to plot a time-series that do not update the chart scale
How to speed up watchlist and screener plug-ins when working with...
How to detect whether price movements are predictable or not
How to plot two different time frames in the same chart
How to install the previous version of QuantShare

Related Forum Threads
comp function not working ok in 2.0.2?
Comp Function
Custom Drawing tool Trendline does not end with second click
Intraday data download is not working
Comp Function in Trading System Rules

Blog Posts
Programming skills are not that important
Working with the formula editor
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...









QuantShare
Product
QuantShare
Features
Create an account
Affiliate Program
Support
Contact Us
Trading Forum
How-to Lessons
Manual
Company
About Us
Privacy
Terms of Use

Copyright © 2024 QuantShare.com
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
Google+
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.