Hi,
Is there a way to draw text at fixed position, e.g. 5% or 10 pixel of screen height from bottom of chart on a bar? It seems all the drawing "setLocation" functions are relative to price only. I want to draw indicators at fixed position of the chart, not flunctuating up and down with prices.
Thanks.
Fixed position drawing
Re: Fixed position drawing
Hi,
You should check out these keywords:
GetAppInfo(aiLowestDispValue) and GetAppInfo(aiHighestDispValue)
For instance:
You should check out these keywords:
GetAppInfo(aiLowestDispValue) and GetAppInfo(aiHighestDispValue)
For instance:
Code: Select all
Input: Space_Pct(5) ;
Vars: Bottom(0), Top(0), Space(0) ;
Bottom = GetAppInfo(aiLowestDispValue) ;
Top = GetAppInfo(aiHighestDispValue) ;
Space = (Top - Bottom) * Space_Pct/100 ;
Value1 = Text_New (Date, Time, Top - Space, "xxxxx") ;