NexusFi: Find Your Edge


Home Menu

 





ASCIL Help


Discussion in Sierra Chart

Updated
    1. trending_up 1,666 views
    2. thumb_up 1 thanks given
    3. group 1 followers
    1. forum 1 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
 nodoji 
New York
 
Experience: Advanced
Platform: SC, TN
Trading: ES
Posts: 85 since Sep 2014
Thanks Given: 10
Thanks Received: 9

I am slowly trying to figure out code that was done for me. I am trying to get "^" to display in the middle of the volume bars. At the moment it is near the bottom, all at the same level. Any help is appreciated. I am guessing it has to do with the "VerticalPositionValue". Am I able to define it in this function.

Thanks




void DrawLetters(int verticalAlign, SCStudyInterfaceRef sg, SCString letter, int index, float VerticalPositionValue, int lineNum)
{
s_UseTool Tool;
int UniqueLineNumber = lineNum;
Tool.Clear();
Tool.Region = sg.GraphRegion;
Tool.ChartNumber = sg.ChartNumber;
Tool.DrawingType = DRAWING_TEXT;
Tool.LineNumber = UniqueLineNumber;
if(letter == "^")
{ Tool.FontSize = 14;
Tool.TextAlignment = DT_CENTER|DT_BOTTOM;
Tool.Color = RGB(255,255,255);
Tool.FontBold = 1;

}

else if (letter == "D" || letter == "WD")

{ Tool.FontSize = 10;
Tool.TextAlignment = DT_CENTER|DT_BOTTOM;
Tool.Color = RGB(0,0,255);
Tool.FontBold = TRUE;
}

else
{ Tool.FontSize = 16;
Tool.TextAlignment = DT_CENTER|verticalAlign;
Tool.Color = RGB(0,0,255);
Tool.BeginValue = VerticalPositionValue;
Tool.FontBold = TRUE;
}

Tool.FontFace = "Arial";
Tool.Text = letter;
Tool.BeginIndex = index;
Tool.AddMethod = UTAM_ADD_OR_ADJUST;
sg.UseTool(Tool);
}


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
CFTC Requests Tag 50 Trader Identity Data From CME and I …
Traders Hideout
Iran Fired a Missile at Israel Last Night. The $8M June …
Prediction Markets & Event Contracts
Six Days to Kickoff: World Cup Prediction Markets Hit $1 …
Prediction Markets & Event Contracts
Saylors 41-Month HODL Breaks: Strategy Sells 32 BTC as $ …
Prediction Markets & Event Contracts
Trump Lands in Beijing on CPI Day: Iran Peace Expires To …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Big Mike in Ecuador
205 thanks
Sober Journey With S&P
21 thanks
30 Sessions
20 thanks
Volume Indicators
8 thanks
Thanks Mike. Godspeed.
7 thanks
  #2 (permalink)
 nodoji 
New York
 
Experience: Advanced
Platform: SC, TN
Trading: ES
Posts: 85 since Sep 2014
Thanks Given: 10
Thanks Received: 9

For those that care. After trial and error. I included the line below to get it to work.

Tool.BeginValue = VerticalPositionValue*.8f;


Started this thread Reply With Quote
Thanked by:




Last Updated on July 11, 2015


© 2026 NexusFi®, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Downloads - Top
no new posts