ADE.GetBarInfo for day and week timeframe

Questions about MultiCharts and user contributed studies.
rc76
Posts: 51
Joined: 14 Oct 2020
Has thanked: 17 times

ADE.GetBarInfo for day and week timeframe

Postby rc76 » 18 Nov 2022

When using ADE to retrieve the variable value (number), we use the:

ADE.GetBarInfo()

Where the 3rd parameters need to align to ADE-Sender's time-frame.

In the ADE documentation, it only give the clues of daily, weekly, and monthly, as follow:

0 : day
-1 : weekly
-2 : monthly

It didn't specify if the bar's timeframe is hours, how should we return the parameter.

So for 5 days barInterval, how should we assign the parameter? I cannot do 0 * 5 days ....

Or say for 2 weeks time interval, I cannot do -1 * 2 weeks ...

User avatar
Polly MultiCharts
Posts: 203
Joined: 20 Jul 2022
Has thanked: 1 time
Been thanked: 55 times

Re: ADE.GetBarInfo for day and week timeframe

Postby Polly MultiCharts » 22 Nov 2022

Hello rc76,

I am afraid, this question is beyond our tech support, because ADE is not our product.

User avatar
rrams
Posts: 128
Joined: 10 Feb 2011
Location: USA
Has thanked: 7 times
Been thanked: 70 times
Contact:

Re: ADE.GetBarInfo for day and week timeframe

Postby rrams » 22 Nov 2022

rc76,
I am not a spokesperson for ADE, but the GetBarInfo function is using the word "Interval" to mean a key that stores a map file. So even though seconds and quarter etc. charts are not explicitly supported; you can still store the map using the appropriate key that is generated from the ADE.BarInterval function of your sender signal on say a 2 day chart. Then retrieve the map info and use it on a 4 hour chart using zero as the Interval key (daily) from your receive signal.

rc76
Posts: 51
Joined: 14 Oct 2020
Has thanked: 17 times

Re: ADE.GetBarInfo for day and week timeframe

Postby rc76 » 22 Nov 2022

Thank you so much rrams! I will give a try on this!

rc76
Posts: 51
Joined: 14 Oct 2020
Has thanked: 17 times

Re: ADE.GetBarInfo for day and week timeframe

Postby rc76 » 22 Nov 2022

rrams,
Just a side question, do you aware whether it is possible to send data using ADE between PT and MC Charts? i.e. Retrieve PT equity performance or entry/exit signals of symbol and draw it on MC Chart?

User avatar
rrams
Posts: 128
Joined: 10 Feb 2011
Location: USA
Has thanked: 7 times
Been thanked: 70 times
Contact:

Re: ADE.GetBarInfo for day and week timeframe

Postby rrams » 23 Nov 2022

Yes, it's literally called All Data Everywhere. However, you should instead use ElCollections whenever possible because it is slightly more supported. They both are for the purpose of importing data structures like lists and vectors between charts.

rc76
Posts: 51
Joined: 14 Oct 2020
Has thanked: 17 times

Re: ADE.GetBarInfo for day and week timeframe

Postby rc76 » 23 Nov 2022

I actually just tried to use ADE, with PT signal as sender, and MC Chart signal as receiver.

Unfortunately nothing comes through..

Have you actually got it working?


Return to “MultiCharts”