Click here to Login

Trading Software Trading objects Features How-to Blog Search


                                                   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
Percent Bollinger Bands
CloseHL Percent Rank Oscillator
Percent Rank Market Indicator
Percent Bollinger Bands smothed with exponential Moving Average
Percent Oversold to Overbought Stocks - Market Breadh 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 drag & drop indicators in charts
How to add a trading indicator to a chart

Related Forum Threads
Percent Rank Function Needed
Percent Change (close) indictor
Percent change/Change
3 suggestions
Equal Weighted Composite

Blog Posts
Introduction to the trading rules analyzer
4 indicators to create adaptive trading systems
Basic trading system implemented using the money management tool
Several money management strategies in a trading system
How to get buy and sell orders for a portfolio based on a 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 © 2012 QuantShare.com
Social Media
Follow us on Facebook
Twitter Follow us on Twitter
Google+
Follow us on Google+
RSS Trading Items