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 12,282 views
    2. thumb_up 10 thanks given
    3. group 3 followers
    1. forum 21 posts
    2. attach_file 6 attachments




 
Search this Thread

Easylanguage: Dynamic Text Box

  #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?
What broker to use for trading palladium futures
Commodities
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Trade idea based off three indicators.
Traders Hideout
MC PL editor upgrade
MultiCharts
 
  #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


© 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