Click here to Login





                                                   Check Position Days After Opening

  0

0
Rodney
2018-06-17 23:36:49


Hello,
Could someone help me write a formula for the following.

100 days after opening a position, I would like to compare the close price to the purchase price of the position.

Thanks in advance for any help.




QuantShare
2018-06-20 08:07:10

  0

Best Answer
You should use the money management tool to get the open price of a position. You cannot get it using the QS language formula editor because the formula is used only to get trading signals and thus doesn't know which stocks were bought.



Rodney
2018-06-20 17:39:01

  0

Thank you,


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
NSE - Security-wise Delivery Position
Exit Position based on Profitability
Volatility-based Position Sizing Method with Adjustable Parameter...
Opening Range Breakout Indicator
Moving Average Crossovers In the Past Trading Days

How-to Lessons
How to quickly select stocks based on the last value of a databas...
How to add future bars to plan for market scenarios
How to set order type of a trading system programmatically
How to quickly add several positions to your portfolio
How to add custom position-based metrics to your trading system

Related Forum Threads
Stop Loss after N days
May Quantshare check "Intraday Data for US Stocks" conn...
How do you check for NaN?
Enhanced Dynamic Position Sizing money mgmt - some issue
NaN error in Dynamic Position Sizing MM object

Blog Posts
5 position sizing techniques you can use in your trading system
Dynamic Position Sizing in your Trading System
The Ultimate Guide to Create Trading Systems in QuantShare
How to Select the Best Market Indicator for your Trading System
True portfolio simulation applied to trading systems









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.