Text, Arrows, Lines in Subcharts  [SOLVED]

Questions about MultiCharts and user contributed studies.
User avatar
syswizard
Posts: 295
Joined: 15 Dec 2012
Has thanked: 16 times
Been thanked: 28 times

Text, Arrows, Lines in Subcharts

Postby syswizard » 17 Jan 2019

I'd like the ability in PowerLanguage to place text and graphics objects on subcharts that contain indicators.
Does anyone else think this has value ?
Is there any way this can be done now....via DLL's or other methods ?

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: Text, Arrows, Lines in Subcharts

Postby TJ » 17 Jan 2019

I'd like the ability in PowerLanguage to place text and graphics objects on subcharts that contain indicators.
Does anyone else think this has value ?
Is there any way this can be done now....via DLL's or other methods ?

MultiCharts has this ability since . . . gawd . . . a long long time ago.

Please go to the Wiki and look up the respective keywords.

User avatar
syswizard
Posts: 295
Joined: 15 Dec 2012
Has thanked: 16 times
Been thanked: 28 times

Re: Text, Arrows, Lines in Subcharts

Postby syswizard » 18 Jan 2019

So using Arw_New_self_s would do it ?
However, Arw_SetLocation_s (ObjectID, BarDate, BarTime_s, PriceValue)
indicates a Price, not an indicator value.
So this is confusing...as the arrow should be associated with the indicator value, not the price on the chart.

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: Text, Arrows, Lines in Subcharts

Postby TJ » 18 Jan 2019

So using Arw_New_self_s would do it ?
However, Arw_SetLocation_s (ObjectID, BarDate, BarTime_s, PriceValue)
indicates a Price, not an indicator value.
So this is confusing...as the arrow should be associated with the indicator value, not the price on the chart.

When you are creating an object (ie text, arrow, or trendline), you use the xx_NEW keyword.
for example:
Arw_New
Text_New_self
TL_New_BN
. . . .
etc.,

All the other keywords are used to modify the object's characteristics.

Please study all the "NEW" keywords to get yourself familiarize with their operations.


For more programming examples, please google and download one of the free ebooks on EasyLanguage.
See post #1
viewtopic.php?t=6929

User avatar
syswizard
Posts: 295
Joined: 15 Dec 2012
Has thanked: 16 times
Been thanked: 28 times

Re: Text, Arrows, Lines in Subcharts

Postby syswizard » 19 Jan 2019

I understand all of that....but the implementation of arw_setlocation_s is the big issue....as a subchart with an indicator does not have price, only a value.
I'll test this weekend to see if it relates the price parameter to the corresponding indicator value.

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: Text, Arrows, Lines in Subcharts

Postby TJ » 19 Jan 2019

I understand all of that......
No you don't.

If you do, you will not have any problems.

These are not new. You are not the first person to use these features; they have been around for umpteenth umpteenth years.
They are not unusual or obscure keywords. Thousands of people are using these keywords on thousands and thousands of indicators every day.

My advice stands -- go read the definition and the accompanying examples.

User avatar
syswizard
Posts: 295
Joined: 15 Dec 2012
Has thanked: 16 times
Been thanked: 28 times

Re: Text, Arrows, Lines in Subcharts

Postby syswizard » 20 Jan 2019

Ah....so it automagically associates the PRICE with the indicator VALUE.....that makes sense.

User avatar
syswizard
Posts: 295
Joined: 15 Dec 2012
Has thanked: 16 times
Been thanked: 28 times

Re: Text, Arrows, Lines in Subcharts  [SOLVED]

Postby syswizard » 22 Jan 2019

No, I finally determined that the documentation for the SELF functions is confusing because it defines the parameter as being PRICE, but instead it's the INDICATOR VALUE that must be passed. Sheesh.....finally its working.

However, I have only 1 indicator in it's own subchart. What about the case where there are 2 indicators, each in their own subchart ?
There is no parameter for indicating which indicator gets the arrow.


Return to “MultiCharts”