Click here to Login





                                                   profit/loss in percent %

  0

0
kulkarni
2010-11-15 00:55:54


hello,
i make a formula & see it on chart. it indicate buy or sell arrow as per formula but i also want as simulator done (buy price= next day open & sell price= next day open or close which we select it). i want when my formula show sell arrow then it also show diffrance betwen buy price of next day open & sell price of next day open or close .if buy price is > than sell price then it show '- %' so it help to know trade profit or loss.
thank you.



QuantShare
2010-11-15 06:30:10

  0

You should create a trading system using your buy and sell rules, backtest it then check "Plot entries & exits on chart".
After that, every time you select a chart, buy and sell arrows will be displayed with entry & exit prices and profit/loss data.



kulkarni
2010-11-15 15:09:41

  0

i want it how i do useing with edit formula?


QuantShare
2010-11-16 08:58:30

  0

Best Answer
Here is a formula that plots the profit/loss percentage:

buypr = ValueWhen(brule, ref(open, -1));
sellpr = ValueWhen(srule, ref(open, -1));
per = ((sellpr / buypr) - 1) * 100;
per = round(per, 3);

PlotArrow(brule, "Buy", BelowLow, colorBlue);
PlotArrow(srule, "Sell\n".per, AboveHigh, colorRed);

- "brule" is the buy rule and "srule" is the sell rule.



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
Percentile - Percent Rank of a Trading Indicator
Percent Above Average Yield
Percent of Time Spent Above a Moving Average
Trading System Based on the CloseHL Percent Rank Oscillator
Percent Rank Market Indicator

How-to Lessons
How to add a metric in the trading system simulation report
How to create a volatility-based Stop - Dynamic stop based on the...
How to perform a basic quantitative analysis using the S&P 500
How to debug a trading system using the money management tool
How to create trading rules based on Put and Call volume data

Related Forum Threads
Percent Rank Function Needed
Percent Change (close) indictor
Percent change/Change
Percent INvested
Open position profit/loss method in money manager

Blog Posts
Introduction to the trading rules analyzer
Create Your Own Technical Stock Rating System
Backtesting All Candlestick Patterns in 10 Minutes
10 masks to create thousands of rules to use into your trading sy...
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.