NexusFi: Find Your Edge


Home Menu

 





ASCIL Help


Discussion in Sierra Chart

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




 
Search this Thread

ASCIL Help

  #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?
Trade idea based off three indicators.
Traders Hideout
Better Renko Gaps
The Elite Circle
REcommedations for programming help
Sierra Chart
What broker to use for trading palladium futures
Commodities
MC PL editor upgrade
MultiCharts
 
  #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


© 2024 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 - Privacy Policy - Downloads - Top
no new posts