Click here to Login




Profile Graphs

Updated on 2020-08-20





You can plot profile graphs on QuantShare by using the "PlotProfile" function. To learn more about the QuantShare programming language, please check this.

Here is how a profile graph looks like. The graph in red displays the volume by price. By looking at the chart, you can quickly see at which price range the highest volume occurred. These could be potential support and resistance areas.




And here is the function used to display that profile:
PlotProfile("volume", 0, 1, 100, colorRed, colorRed, OperationSum);

The profile function isn't designed to show only volume but can be used to display anything.

Here are some examples:
Number of instances where the asset closed higher (close > open) displayed per price range and for each trading year (new/different profile for each year)
PlotProfile("close > open", year() != ref(year(), 1), 1, 100, colorBlue, colorBlue, OperationSum);

Average RSI by price range
PlotProfile("rsi(14)", 0, 1, 100, colorBlue, colorBlue, OperationAvg);

Daily volume profile on a weekly price
PlotProfile("volume", 1, 1, 5, colorRed, colorRed, OperationSum);


The function contains several parameters.

Formula: Defines the profile formula
For a profile graph based on volume, simply type: "volume"
For a profile graph based on 25-bar simple moving average, type: "sma(25)"

New Profile Condition: Specify when to create a new profile
To display only one profile for all trading data, type: 0
To display one profile for each trading bar, type: 1
In a daily chart and in order to display one profile per week, type: week() != ref(week(), 1)

Time frame: Specify the time frame used to calculate "Formula"

Number of buckets: The number of buckets (price range) for each profile

Back Color: The back color of profiles

Font/Border Color: The font and border color of profiles

Operation: Specify the operation to perform in this profile and some styles. You can separate values using the character |

OperationAvg: calculate the average of the "Formula" values for each bucket
OperationMax: calculate the maximum of the "Formula" values for each bucket
OperationMin: calculate the minimum of the "Formula" values for each bucket
OperationRank: calculate the rank of the "Formula" values for each bucket
OperationSum: calculate the sum of the "Formula" values for each bucket
ShowBorder: Display profile borders
ShowValues: Show the value of each profile bar

UseRthOnly: Uses data from regular trading hours only (intraday)

Note:
1/ If you have an EOD chart and you want to use intraday data in your profile graph, simply use a negative value as "Time frame". Same for Intraday charts.
2/ For EOD data, time frame is expressed in days
3/ For Intraday data, time frame is expressed in seconds

In a future article, we will show you how to access profile data using C# and create advanced custom functions based on the profile data.












2 comments (Log in)

QuantShare Blog
QuantShare
Search Posts




QuantShare
Recent Posts

Create Graphs using the Grid Tool
Posted 1449 days ago

QuantShare
Previous Posts

Profile Graphs
Posted 1554 days ago

Lock, Link and Undock your Charts
Posted 2364 days ago

How to Use the Percentage Scale
Posted 2913 days ago


More Posts

Back







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.