NexusFi: Find Your Edge


Home Menu

 





Easylanguage: Dynamic Text Box


Discussion in EasyLanguage Programming

Updated
      Top Posters
    1. looks_one eros1973ms with 13 posts (5 thanks)
    2. looks_two Jura with 4 posts (4 thanks)
    3. looks_3 Big Mike with 3 posts (1 thanks)
    4. looks_4 futat with 2 posts (0 thanks)
    1. trending_up 20,784 views
    2. thumb_up 10 thanks given
    3. group 3 followers
    1. forum 21 posts
    2. attach_file 6 attachments




 
Search this Thread
  #21 (permalink)
eros1973ms
florence
 
Posts: 27 since Oct 2011
Thanks Given: 3
Thanks Received: 6


futat View Post
Hello, Eros1973ms & Big Mike

Much thanks for your code.
Could you tell me more hint that how the text correctly positioned and moved anytime when resize the chart?
Does it is related the below vars for coding this effect?

time_1(0),
price_1(0),
hours(0),
minut(0),

Hi Futat, basically the dynamic positioning is obtained evaluating the variable date+time for the horizontal positioning and price for the vertical. This evaluation can be done using the "aiLeftDispDateTime" and "aiHighestDispValue", that change every time you resize the window with the values of the high-left corner of the window.


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
CME Group CEO Calls CFTC-Approved Crypto Perps Dangerous …
Traders Hideout
Iran Talks Final Stages -- Two VLCCs Exit Hormuz, Record …
Traders Hideout
Iran Forward Curve: June 30 at 56% vs June 15 at 28% -- …
Prediction Markets & Event Contracts
US Prop Firms Race Inside the CFTC Perimeter -- Tradeify …
Funded Trading Evaluation Firms
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
NexusFi site changelog and issues/problem reporting
13 thanks
Darmok and Jalad at Tanagra
3 thanks
Big Mike in Ecuador
1 thanks
30 Sessions
1 thanks
  #22 (permalink)
futat
Hong Kong
 
Posts: 6 since Nov 2011
Thanks Given: 1
Thanks Received: 1


eros1973ms View Post
Hi Futat, basically the dynamic positioning is obtained evaluating the variable date+time for the horizontal positioning and price for the vertical. This evaluation can be done using the "aiLeftDispDateTime" and "aiHighestDispValue", that change every time you resize the window with the values of the high-left corner of the window.

Hello, Eros1973ms
Much thanks for your teaching.
I adjusted the code in simple for easily studying and I am newbie, so I am using the FreeQuotes in daily chart.
So, I still have no idea why & how to activate the variable date from the left once I resize the chart.
Does it is FreeQuotes data problem? Or I miss something to make the variable of date_1 can be changed once I resize the chart?

Could you kindly teach me?

Code as below:
vars:
date_1( 0 ), price_1( 0 ), time_2( 0 ), textStr( "" ), offset_points( 0.1 );

date_1 = JulianToDate( GetAppInfo( aiLeftDispDateTime ) );

time_2 = ( HoursFromDateTime( GetAppInfo( aiLeftDispDateTime ) ) * 100 ) + ( MinutesFromDateTime( GetAppInfo( aiLeftDispDateTime ) ) ) + SecondsFromDateTime( GetAppInfo( aiLeftDispDateTime ) );

price_1 = getappinfo( aiHighestDispValue ) - 0.5 * offset_points;

once cleardebug;
textStr = "Futat";
once value16 = text_new( date_1, time_2, price_1 - offset_points, textStr );
value17 = Text_SetStyle( value16, 0, 1 );
value18 = text_setlocation( value16, date_1, time_2, price_1 - offset_points );


Reply With Quote




Last Updated on May 9, 2012


© 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