SierraChart : put 2 colors in the STRING - Sierra Chart | futures io social day trading
futures io futures trading


SierraChart : put 2 colors in the STRING
Updated: Views / Replies:146 / 0
Created: by Mejzil Attachments:0

Welcome to futures io.

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

futures io is the largest futures trading community on the planet, with over 100,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors Ė all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you donít need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

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

Reply
 
Thread Tools Search this Thread
 

SierraChart : put 2 colors in the STRING

  #1 (permalink)
Saint-Sever + Landes/France
 
 
Posts: 1 since Jun 2019
Thanks: 0 given, 0 received

SierraChart : put 2 colors in the STRING

Hello,
I would like to put 2 colors to a STRING of SierraChart.
I would like to put [10] in red and [16] in green in STRING.
The code works for a color on the STRING.
But I can not put 2 colors in the STRING


 
Code
#include "sierrachart.h"
#include <windows.h>
#include <string>

using std::cout;
using std::endl;
using std::string;
using std::to_string;

SCDLLName("TEST");
SCSFExport scsf_TEST(SCStudyGraphRef sc){
 
SCSubgraphRef  VBID=sc.Subgraph[0];
SCSubgraphRef  VASK=sc.Subgraph[1];

  if(sc.SetDefaults){
	  sc.GraphName="TEST";sc.FreeDLL=1;sc.AutoLoop=1;sc.GraphRegion=0;sc.UpdateAlways=1;
	  VBID.Name="BID";VBID.DrawStyle=DRAWSTYLE_CUSTOM_TEXT;VBID.PrimaryColor=RGB(255,255,255);VBID.LineWidth=10;VBID.DrawZeros=false;
	  VASK.Name="ASK";VASK.DrawStyle=DRAWSTYLE_CUSTOM_TEXT;VASK.SecondaryColor=RGB(255,0,255);VASK.LineWidth=10;VASK.DrawZeros=false;
  }

   if(sc.Index==1){
	   
	   string Stxt{};
	   
	  sc.DeleteACSChartDrawing(sc.ChartNumber,TOOL_DELETE_CHARTDRAWING,1);
	  s_UseTool AAA;
		AAA.Clear();
		AAA.ChartNumber=sc.ChartNumber;
		AAA.Region=sc.GraphRegion;
		AAA.DrawingType=DRAWING_TEXT;
		AAA.LineNumber=1;
		AAA.BeginIndex=sc.Index;
		AAA.BeginValue=sc.Low[sc.Index];
		AAA.EndIndex=sc.Index;
		AAA.EndValue=sc.Low[sc.Index];
		AAA.FontSize=VBID.LineWidth;
		AAA.AddMethod=UTAM_ADD_OR_ADJUST;
		AAA.TextAlignment=DT_CENTER;
		AAA.Color=VBID.PrimaryColor;/*<- Color for [10]:*/
		AAA.Color=VASK.SecondaryColor;/*<- Color for [16]*/
                
                Stxt="[10][16]";
		AAA.Text=Stxt.c_str();

	  sc.UseTool(AAA);

   }
}
 
Code
system ("Color 1A");/*does not work in SierraChart!*/
Can you help me ?

Reply With Quote

Reply



futures io > > > > SierraChart : put 2 colors in the STRING

Thread Tools Search this Thread
Search this Thread:

Advanced Search



Upcoming Webinars and Events (4:30PM ET unless noted)
 

futures io is celebrating 10-years w/ over $18,000 in prizes!

Right now
 

$1,000 in Amazon Gift Cards being given away right now from GFF Brokers

Right now
 

$250 Amazon Gift Cards with our "Thanks Contest" challenge!

Right now
 

Show us your trading desks and win over $5,000 in prizes w/Jigsaw Trading

August
 

Webinar: Chart Patterns and Practical Trading Stats w/Suri Duddella

Elite only
 

Webinar: Richard Bailey (TBA)

Elite only
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
String Manipulation arjfca EasyLanguage Programming 4 April 24th, 2017 01:54 AM
passing in a string as a variable parameter .. code help. ! onava TradeStation 1 October 10th, 2013 03:27 PM
Using Global Variable string with Excel is causing problem arjfca MultiCharts 0 July 11th, 2013 06:02 PM
G-string fish salesman kbit Jokes 0 August 15th, 2011 05:51 PM
Cannot implicitly convert string to boolean gordo NinjaTrader Programming 7 February 22nd, 2011 04:40 PM


All times are GMT -4. The time now is 11:55 AM. (this page content is cached, log in for real-time version)

Copyright © 2019 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