Hello
A Text box is manually installed over a chart. Is there a way to find using PowerLanguage. witch bar is attached with the Text box?
Martin
Found a bar that has a Text box attached to it: Possible?
Re: Found a bar that has a Text box attached to it: Possibl
Hi Martin,
Try Text_getactive and Text_GetBarNumber.
cheers,
-K
Try Text_getactive and Text_GetBarNumber.
Code: Select all
print(" bar#=", text_getbarnumber(text_getactive()));
-K
Re: Found a bar that has a Text box attached to it: Possibl
Please see a similar case using arrow on chart
with binary search by bowlesj3
http://www.multicharts.com/discussion/v ... f=5&t=7749
with binary search by bowlesj3
http://www.multicharts.com/discussion/v ... f=5&t=7749
Re: Found a bar that has a Text box attached to it: Possibl
HelloPlease see a similar case using arrow on chart
with binary search by bowlesj3
http://www.multicharts.com/discussion/v ... f=5&t=7749
Meecc
Thanks for your suggestion. I'm already using the search arrow and center my chart around it.
This function is called using a click over a given position on my charts.
Now, I want to use it for Text (number). I just did not found a function to return the position of a text box over a chart
Here is a daily chart that I marked the reversal
Now, I want to scall down to 15 min and study how was done the reversal.
The value to search (number in string) will be in a Global Variable set by Excel. MC to read the string value and search for it on the chart. All I need for now is a function to look for the position of a text box containing a given value.
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: Found a bar that has a Text box attached to it: Possibl
Hello Martin,
Have you tried the solution provided by kernel?
Have you tried the solution provided by kernel?
Try Text_getactive and Text_GetBarNumber.Code: Select all
print(" bar#=", text_getbarnumber(text_getactive()));
Re: Found a bar that has a Text box attached to it: Possibl
Thanks to poke on this post and the remind. I had not seen Kernel responceHello Martin,
Have you tried the solution provided by kernel?Try Text_getactive and Text_GetBarNumber.Code: Select all
print(" bar#=", text_getbarnumber(text_getactive()));
I will work on that this weekend
Martin
Re: Found a bar that has a Text box attached to it: Possibl
Hello Martin,
Have a try on the following code pattern:
Text_GetFirst(7);
while (TextID <> -2)
Text_GetString(TextID);
Text_GetBarNumber(TextID);
Text_GetNext(TextID,7);
Have a try on the following code pattern:
Text_GetFirst(7);
while (TextID <> -2)
Text_GetString(TextID);
Text_GetBarNumber(TextID);
Text_GetNext(TextID,7);