【Text_Float】
[code]inputs:TextID( numericsimple ),
TextBarsBack( numericsimple ),
TextPriceValuePercent( numericsimple ) ;
variables:
var0( false ),
var1( 0 ),
var2( 0 ),
var3( 0 ) ;
if LastBarOnChart then
begin
var0 = Text_Exist( TextID ) ;
if var0 then
begin
var1 = GetAppInfo( aiHighestDispValue ) ;
var2 = GetAppInfo( aiLowestDispValue ) ;
var3 = var2 + 0.01 * TextPriceValuePercent *
( var1 - var2 ) ;
Text_SetLocation( TextID, Date[TextBarsBack], Time[TextBarsBack],
var3 ) ;
Text_SetStyle( TextID, 2, 2 ) ;
end
else
RaiseRunTimeError( "TextID does not exist." ) ;
end ;
Text_Float = 1 ;
[/code]
页:
[1]