NexusFi: Find Your Edge


Home Menu

 





ASCIL Help


Discussion in Sierra Chart

Updated
    1. trending_up 1,800 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?
Trump Media to sell instant access to market-moving soci …
Traders Hideout
No book, only a stair: journaling fills where price move …
Cryptocurrency
requesting .nrd replay files from 2026 spy and qqq
The Elite Circle
Datafeed for Atas
Platforms and Indicators
My Rant with AMP Futures
Trading Reviews and Vendors
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Mes vs MNQ
6 thanks
NexusFi site changelog and issues/problem reporting
5 thanks
BERN ALGOS algo trading journal
3 thanks
TopStep Trader disappointment
2 thanks
Running trading strategies on a VPS
1 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