Send GV to DOM

Questions about MultiCharts and user contributed studies.
mickatrade
Posts: 114
Joined: 12 Jul 2015
Has thanked: 20 times
Been thanked: 16 times

Send GV to DOM

Postby mickatrade » 15 Jul 2015

Hello,
i've just discovered the power of global variable.
I've coded an indicator that gives the number of shares and the stop loss for each US stock of a watchlist.
This watchlist is linked to my masterchart and my DOM.
When i click on a stock of the list i would like to send directly the number of shares to the linked DOM.
Is it possible to do it or to create a custom button to launch a macro (like Excel) ?
Attached file is the watchlist with stop and size(last column) calculation for each stock.
Attachments
wathlist.JPG
whatchlist
(44.51 KiB) Downloaded 354 times

User avatar
JoshM
Posts: 2195
Joined: 20 May 2011
Location: The Netherlands
Has thanked: 1544 times
Been thanked: 1565 times
Contact:

Re: Send GV to DOM

Postby JoshM » 16 Jul 2015

When i click on a stock of the list i would like to send directly the number of shares to the linked DOM.
Is it possible to do it or to create a custom button to launch a macro (like Excel) ?
I don't think this is possible because PowerLanguage, as far as I know, cannot notice whether or not a stock in the list has been clicked on. So a script cannot execute and send something to Excel.

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Send GV to DOM

Postby Henry MultiСharts » 20 Jul 2015

Hello mickatrade,

There is no programmatic access to the DOM window.


Return to “MultiCharts”