Click here to Login





                                                   Entry and Exit in Rule manager analyzer

  0

0
crfaldu
2017-01-05 15:51:42


In Rule manager analyzer is there a way to change the setting where we can "buy" at close today and "sell" at close today. I believe the default is buy and sell at open tomorrow.

Thanks



QuantShare
2017-01-06 03:01:18

  0

In "Outputs" in the control that appears after you analyze a rule, click on "Select Outputs/Exit rules", select "Custom output", Click on "Add" then add something like:

SET ((close / close[-1]) - 1) * 100
WHERE 1

for buy at close of today and sell the next day at close.

To buy at close of today and sell after 10 days at close, type:
SET ((close[9] / close[-1]) - 1) * 100



crfaldu
2017-01-06 11:49:36

  0

Is there a tutorial on this so I can learn how to code

Thanks



crfaldu
2017-01-06 12:19:09

  0

Would you be kind to explain how this works

Thanks



QuantShare
2017-01-07 03:34:18

  0

Please check our documentation here:
http://www.quantshare.com/index.php?option=download

The custom output just uses the value returned by the "SET" formula (QuantShare language) to generate the return/output.



crfaldu
2017-01-10 12:37:58

  0

Thanks,
another way I found that works is

SET ROC(1)



QuantShare
2017-01-11 03:22:54

  0

Yes, that would work too. It is the same formula.


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
Staggered Entry and Exit Strategy
Entry Price and Exit Price in Trading System Report
Market Rule based on the Crossover Between Stock Close prices and...
Staggered Trade Entry - Profit Entry
Transform any order into a limit order selectively based on a tra...

How-to Lessons
How to save and restore charts
How to create and trade a Neural Network model
Difference between the watchlist and the screener tools
How to download EOD quotes for active and valid stocks only
How to create trading rules based on Put and Call volume data

Related Forum Threads
How do you retrieve the entry and exit price for a position?
MM Staggered Entry and Exit
Adjust the Entry and exit prices of trades in AMM script
rule analyzer requirements
Rule Analyzer

Blog Posts
How to get buy and sell orders for a portfolio based on a trading...
Introduction to the trading rules analyzer
How To Create and Backtest an S&P 500 Trend Following System
Day Trading: A trading system that combines intraday and EOD data
Reducing risk and increasing return by combining several trading ...









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.