Showing the sequences of bars marked by me using line drawing tools - futures io
futures io futures trading



Showing the sequences of bars marked by me using line drawing tools


Discussion in Sierra Chart

Updated by doitagaitforme
    1. trending_up 396 views
    2. thumb_up 0 thanks given
    3. group 1 followers
    1. forum 2 replies
    2. attach_file 1 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 100,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

 
Search this Thread
 

Showing the sequences of bars marked by me using line drawing tools

(login for full post details)
  #1 (permalink)
Rostov-na-Donu/ Russia
 
Experience: Beginner
Platform: Metatrader
 
Posts: 17 since Jul 2010
Thanks: 7 given, 4 received

Hello. Help please implement the following task:

I need to perform: sc.Subgraph [0] [sc.Index] = sc.Close [sc.Index]; if at the moment there is a any drawing tool made by me on the chart.

Or i need an indicator showing the sequences of bars marked by me using line drawing tools.

Thank you.

Reply With Quote

 
 
(login for full post details)
  #3 (permalink)
Rostov-na-Donu/ Russia
 
Experience: Beginner
Platform: Metatrader
 
Posts: 17 since Jul 2010
Thanks: 7 given, 4 received


 
Code
#include "sierrachart.h"
SCDLLName("Custom Study DLL")
SCSFExport scsf_AdjustUserDrawnDrawingExample(SCStudyInterfaceRef sc)
{
	if (sc.SetDefaults)
	{
		sc.GraphName = "Adjust User Drawn Drawing Example";
		sc.GraphRegion = 0;
		sc.UpdateAlways = 1;
		sc.Subgraph[0].Name = "Last";
		return;
	}

	int DrawingIndex = 0;
	s_UseTool DrawingObject;
	while( sc.GetUserDrawnChartDrawing(sc.ChartNumber, DRAWING_LINE , DrawingObject, DrawingIndex) ) 
	{
		for (int Index = DrawingObject.BeginIndex; Index < DrawingObject.EndIndex; Index++)
		{
			sc.Subgraph[0][Index] = sc.BaseData[SC_LAST][Index];
		}
		DrawingIndex++;	
	}
}

Attached Thumbnails
Click image for larger version

Name:	@KCK17  1 Min   #1 2019-04-08  17_52_38.049.png
Views:	30
Size:	16.2 KB
ID:	264808  
Reply With Quote


futures io Trading Community Platforms and Indicators Sierra Chart > Showing the sequences of bars marked by me using line drawing tools


April 8, 2019


Upcoming Webinars and Events
     



Copyright © 2020 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, info@futures.io
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts