Join Now or Login or connect with

Trading Software Trading objects Features Blog Search

This is a trading object shared by a member. You can use this object as well as hundreds of others with QuantShare - Trading Software.
Click on the Like button or on one of the share buttons to share this object and spread the word about QuantShare.
QuantShare is an advanced trading software for stock, forex, futures, ETF and options markets. It is the best and the most complete EOD trading software software and it is FREE (beta version).

Close Price Above Cursor

by QuantShare, 141 days ago
Share |

The "Close price above cursor" drawing tool is the first of a series of drawing tools that I am going to share to explain you how to create your own custom drawing tools.
This object simply displays the security close price above the mouse cursor when you move your mouse over a chart. It shows the close price of the bar the mouse is pointing at.

Here is a picture:



To create a new custom drawing tool, select "Tools" on the menu, and then click on "Custom Drawing Tools". Click on the "Add" button, type in a name and finally click on "Save".
Now, all you have to do is to write a script, which will be executed each time the application wants to draw your item.

"Close price above cursor" object:
To get the close price time-series, we need to call the following function:
double[] close = Functions.ChartData.GetTimeSeries("close");

To get the bar index the mouse cursor is pointing at:
PointPosition pos = Functions.CursorPosition;
int barindex = (int)pos.X + Functions.ChartData.StartIndex - 1;

To get the current close price:
double closePrice = close[barindex];

To draw a text that shows the close price:
TextObj text1 = Functions.PaneObject.DrawText("", "Close: " + closePrice + "\n\n", pos.X, pos.Y);
text1.FontSpec.Border.IsVisible = false;
text1.FontSpec.FontColor = Color.Green;
text1.FontSpec.Fill.Color = Color.Transparent;

To end the drawing when a trader clicks on a chart:
if(Functions.ClickPositions.Length > 0)
{
Functions.FinishDrawing();
}

To access the drawing tool, right click on the bookmark panel (under the menu), click on "Add shortcut", select "Drawing Tool" as the shortcut type, and then click on "OK". In the "Load an item" form, select "Close Price" then click on "Load".
Now, double click on "Close Price" in the bookmark panel and move your mouse over a chart.


Share This ->
Share |


You have to log in to bookmark this object
What is this?





Related Trading Objects



Country
Page 1
Historical data for Major World Stock I..
by QuantShare, uploaded one month ago
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 8 Notes Report an item
Major World Stock Indices
by QuantShare, uploaded one month ago


No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 6 Notes Report an item
Crossover/Convergence of Several Tradin..
by QuantShare, uploaded one month ago
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 4 Notes Report an item
Number of reviews
Click to add a review
Average rate
Click to rate this item
Number of times this object was downloaded
Number of rates the current object received
Report an object
if you can't run it for example or if it contains errors
Click to report this object






Reviews
You must log in first

Join now
and get instant access for free to the trading software, the Sharing server and the Social network website.
Click here


Related objects
Show All
Buy Indicator (by bug man, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 67 Notes Report an item
Indicator -> Moving average -> Rate of change -> Trading rule (by bug man, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 30 Notes Report an item
Trendline (by QuantShare, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 5 Notes Report an item
Yahoo EOD historical quotes (by QuantShare, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 460 Notes Report an item
Simple pattern detection rules using close and open prices (by bug man, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 49 Notes Report an item
The DeMark's DeMarker indicator (by bug man, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 19 Notes Report an item
Price and Volume Trend (by Patrick Fonce, uploaded several months ago)
No notes

Rate an item Rate an item Rate an item Rate an item Rate an item Number of downloads 14 Notes Report an item
Number of reviews
Click to add a review
Average rate
Click to rate this item
Number of times this object was downloaded
Number of rates the current object received
Report an object
if you can't run it for example or if it contains errors
Click to report this object

Technical Analysis


Fundamental Analysis


Random Objects

 27 0 0 - China stock market
 22 0 0 - High to low stock pattern for the close price
 24 0 0 - French Euronext Symbols - Liste des entreprises francaise coté ŕ l'Euronext
 12 0 0 - History of dividend payment for stocks in the US stock market
  7 0 0 - Austria Stock Market Symbols
 14 0 0 - Forex Data
 25 1 5 - Brazil Stock Market
  6 0 0 - Denmark - Copenhagen stock exchange
 29 0 0 - EOD NSE stock quotes data
  6 0 5 - Argentina Stock Market Symbols
More trading objects...


Recent Posts

How to search for a trading item
Posted 3 days ago

How to create market indicators using the composite function - Part 3
Posted 10 days ago

How to create market indicators using the composite function - Part 2
Posted 17 days ago

Create a Pivot Table that displays the Relative Strength Index - RSI
Posted 31 days ago

6 Stock Trading Items Related to the New York Stock Exchange - NYSE
Posted 38 days ago

Show All

Number of reviews
Click to add a review
Average rate
Click to rate this item
Number of times this object was downloaded
Number of rates the current object received
Report an object
if you can't run it for example or if it contains errors
Click to report this object


contactus
About | Trading Forum | Trading Software Manual
Copyright © 2010 QUANTSHARE.COM