Click here to Login





                                                   Logging the Comp() function

  1

0
Vangelis M.
2013-01-29 13:34:58


Hello,

I am using the comp function in the backtester. For example rankPerf=comp(perf(close,10),'rank');
Is there a way to debug - log or visualize - the results of the comp function? I need to 'see' what are the results, bar by bar.
As far as I know I cannot use it on a chart as an indicator.

Thank you.



clonex
2013-01-29 15:17:10

  0

It is very easy.

Use Screener, choose markets, choose date and then put this code:
var1 = comp(perf(close,10),'rank');
AddColumn("Rank",var1);

Clonex




clonex
2013-01-29 15:18:35

  0

But option to log various values bar by bar to txt files will be great.


Vangelis M.
2013-01-29 17:04:58

  0

Great. Thank you Clonex! Backtester output would be great but this does help make sure my formula is coded correctly.
Appreciate it.



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
Yang Zhang extension of the Garman-Klass Volatility Estimator
NORMDIST - Normal Probability Density Function
Trading System based on the Previous Week SPY Return
Rank Industries based on the average Relative Strength Index
Moving Average Crossovers In the Past Trading Days

How-to Lessons
How to display two stocks on the same chart
How to calculate the average of a time series using the money man...
How to plot two different time frames in the same chart
How to display the bar index of a stock on a chart
How to screen for stocks having a high correlation with the Dow J...

Related Forum Threads
Puzzling over the Comp() function
Problems with the Composite Function
Calling a Function from another Function
Question on Swing Point function sp()
Function Call

Blog Posts
How to create market indicators using the composite function - Pa...
The 'inside period' function
How to create market indicators using the composite function - Pa...
How to create market indicators using the composite function - Pa...
QuantShare Trading Software: New Features in the 3.3.1 Version









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.