How can I use powerlanguage to choose symbol.

Questions about MultiCharts and user contributed studies.
chaoruixinxi
Posts: 8
Joined: 09 Apr 2013
Has thanked: 2 times

How can I use powerlanguage to choose symbol.

Postby chaoruixinxi » 11 Apr 2013

How can I use powerlanguage to choose symbol which is according with an indicator from scanner window .Then I give it my signal .Can you give me an example?

User avatar
arnie
Posts: 1594
Joined: 11 Feb 2009
Location: Portugal
Has thanked: 481 times
Been thanked: 514 times

Re: How can I use powerlanguage to choose symbol.

Postby arnie » 12 Apr 2013

How can I use powerlanguage to choose symbol which is according with an indicator from scanner window .Then I give it my signal .Can you give me an example?
Something like:

Code: Select all

Input:
SelectSymbol ("ES");

If SelectSymbol = "ES" then begin
...
or since you've mentioned the scanner window maybe this would be more accurate

Code: Select all

Input:
SelectSymbol ("@ES#C");

If SelectSymbol = getsymbolname then begin
...
and if by any chance you apply it to the wrong symbol you might want to receive a warning about that

Code: Select all

RaiseRunTimeError("Symbol does not correspond to the one selected");


Return to “MultiCharts”