Click here to Login





                                                   "perf" used in script

  0

0
Silver Dragon
2012-03-18 21:53:29


Hello,

What does the "perf" in the code below measure? Assuming it stands for performance?

buy = rule1 and (close * sma(volume, 10) > 50000 and close > 2) && ((perf(close, 35)) > (4)) && ((volume) > (1 * sma(volume, 5))) && ((perf(close, 10)) < (8));
sell = ((absolute((close / sma(close, 10)) - 1)) < (0.04)) || ((perf(close, 35) / perf(close, 5)) > (1.02));

Thanks!
SD



Juliettpapa
2012-03-19 04:15:52

  0

Best Answer
Performance over x days in percent

Regards
Joerg



MDE
2019-07-09 17:08:47

  0

Can you give us an example please? I still don't understand what performance means.

Is it the average of the dataset?How is performance calculated? If for example the dataset was (21,23,26,28,20) what is the performance?

The manual doesn't help has it just gives an example but doesn't show the result.

thanks!

MD



QuantShare
2019-07-10 07:56:19

  1

The performance here is the return. Perf(close, 1), means the one-bar return. (Today close / Yesterday's close) - 1 and multiplied by 100.
You can plot any variable in a chart to have a visual confirmation (Right click on a chart pane and select "Edit formula")



MDE
2019-07-10 17:03:41

  0

thanks! that makes sense now. perf = percentage change


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
Identify Spilts Screener Script
Market Timing Rules - Used to construct profitable trading strate...
ADS Business Conditions Index
System Metrics v2.0
Averaging Down Money Management Strategy

How-to Lessons
How to run a screen or a watchlist from a script
How to get stocks for a particular index using the global script
How to execute a script at regular intervals
How to dynamically change the number of positions in a portfolio?
How to create a custom trading indicator

Related Forum Threads
Money Management Script variables and more
Reuse optimization parameters from Strategy script in Money Mgmt
How to remove trace/log-files by script
Script to Toggle Hide Buttons
Equity to Symbol - AMM / Script

Blog Posts
QS Trading Software: Global Script
Charting & Scripts - Manage stock charts using the global script
Sharpe Ratio - Part 2
How to Reference Drawing Studies in QS Formulas
Export Trading Orders from a Portfolio to a File









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.