Power Language-Chart Trading Panel extension

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

Power Language-Chart Trading Panel extension

Postby syswizard » 19 Apr 2019

I just wonder if anyone thinks this is useful idea:
Having the ability to control certain aspects of the Chart Trading Panel from within Power Language.
I would like the ability to:
1) disable Buy/Sell buttons under certain conditions
2) set the # of contracts based on market volatility
Right now this has to be done manually....and you know how that goes.

I am constantly finding myself getting out of winning positions too early ...and want to disable the sell/buy based on my position until the market trend changes. This is a huge problem for me right now.
Also, I find myself trading the same number of contracts regardless of market volatility conditions. I'd like to set the default number of contracts based on a volatility measure.
Note: using Alerts just doesn't cut it...see my other post on this.

gpw797
Posts: 216
Joined: 04 Mar 2006
Has thanked: 3 times
Been thanked: 7 times

Re: Power Language-Chart Trading Panel extension

Postby gpw797 » 19 Apr 2019

Yes vote here

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

Re: Power Language-Chart Trading Panel extension

Postby TJ » 19 Apr 2019

I just wonder if anyone thinks this is useful idea:
Having the ability to control certain aspects of the Chart Trading Panel from within Power Language.
I would like the ability to:
1) disable Buy/Sell buttons under certain conditions
2) set the # of contracts based on market volatility
Right now this has to be done manually....and you know how that goes.

I am constantly finding myself getting out of winning positions too early ...and want to disable the sell/buy based on my position until the market trend changes. This is a huge problem for me right now.
Also, I find myself trading the same number of contracts regardless of market volatility conditions. I'd like to set the default number of contracts based on a volatility measure.
Note: using Alerts just doesn't cut it...see my other post on this.

What happens if the buttons are "Disabled", and you want to get out immediately? :lol:

eg. the market has turned against you . . . and your logic has locked your buttons.

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

Re: Power Language-Chart Trading Panel extension

Postby syswizard » 22 Apr 2019

I can still exit using the feature of clicking on the instrument on the chart. I never use this technique on a regular basis.

sptrader
Posts: 742
Joined: 09 Apr 2010
Location: Texas
Has thanked: 483 times
Been thanked: 274 times
Contact:

Re: Power Language-Chart Trading Panel extension

Postby sptrader » 22 Apr 2019

"set the # of contracts based on market volatility".
I'd like to see that one. Maybe use a percent of ATR.

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

Re: Power Language-Chart Trading Panel extension

Postby syswizard » 22 Apr 2019

"set the # of contracts based on market volatility".
I'd like to see that one. Maybe use a percent of ATR.
Remember: With PowerLanguage any and all kinds of logic can be applied.
Setting the bet-size based on current volatility makes a lot of sense.

So all we need is a few getters and setters: CTP = Chart Trading Panel
v1 = CTPGetBuyButtonStatus; // returns true/false
v1 = CTPGetSellButtonStatus; // returns true/false
s1 = CTPSetBuyButtonStatus(boolean True/False); // true = enabled
s1 = CTPSetSellButtonStatus(boolean True/False); // true = enabled

v1 = CTPGetQty; // returns current size
s1 = CTPSetQty(long ); // sets current size

Wow, this would be a huge improvement for those who are semi-automated traders (like me !!).

User avatar
Smoky
Posts: 507
Joined: 03 Dec 2010
Location: Thailand
Has thanked: 97 times
Been thanked: 115 times

Re: Power Language-Chart Trading Panel extension

Postby Smoky » 23 Apr 2019

Always agree to make more POWER in Powerlanguage !

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

Re: Power Language-Chart Trading Panel extension

Postby syswizard » 23 Apr 2019

Always agree to make more POWER in Powerlanguage !
Absolutely. I am arguing for a extension to access the chart trading panel's basic functions.
This provides much needed functionality for traders who are semi-automated.....and eliminates yet another set of rules that must be followed manually.
The more automation can take care of basic chores, the better.

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

Re: Power Language-Chart Trading Panel extension

Postby syswizard » 23 Apr 2019

What happens if the buttons are "Disabled", and you want to get out immediately? :lol:
eg. the market has turned against you . . . and your logic has locked your buttons.
TJ, you are smarter than that....just use keyboard shortcuts in an emergency.
https://www.multicharts.com/trading-sof ... _Shortcuts
The point is: we should be able to control the trading panel via Powerlanguage to some extent.

darob
Posts: 207
Joined: 20 Nov 2014
Has thanked: 57 times
Been thanked: 32 times

Re: Power Language-Chart Trading Panel extension

Postby darob » 23 Apr 2019

Hi syswizard, sounds like you want .net with its access to toolbar controls.

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

Re: Power Language-Chart Trading Panel extension

Postby syswizard » 24 Apr 2019

Hi syswizard, sounds like you want .net with its access to toolbar controls.
Of course, but I want PowerLanguage extended instead.
Otherwise, I'll be homeless learning C# and the entire Dot Net platform.....I've been told it's a 1 year journey.
Oh, and then I have 10,000 lines of code in PowerLanguage that will need to be converted.
I need an "angel" to back this massive conversion.

User avatar
Smoky
Posts: 507
Joined: 03 Dec 2010
Location: Thailand
Has thanked: 97 times
Been thanked: 115 times

Re: Power Language-Chart Trading Panel extension

Postby Smoky » 24 Apr 2019

Hi syswizard, sounds like you want .net with its access to toolbar controls.
Of course, but I want PowerLanguage extended instead.
Otherwise, I'll be homeless learning C# and the entire Dot Net platform.....I've been told it's a 1 year journey.
Oh, and then I have 10,000 lines of code in PowerLanguage that will need to be converted.
I need an "angel" to back this massive conversion.
Same for me, not sure that you can make same work in Dot.net, in Powerlanguage you can call native DLL !

Many MC customers are same as us, take a look about how many users are in Multicharts .NET forum...

darob
Posts: 207
Joined: 20 Nov 2014
Has thanked: 57 times
Been thanked: 32 times

Re: Power Language-Chart Trading Panel extension

Postby darob » 25 Apr 2019

yes it's quiet over there.. seriously though if none of the indicators are helping you stay in your trades an accessible button probably won't work either. Have you considered automating your exits?

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

Re: Power Language-Chart Trading Panel extension

Postby syswizard » 25 Apr 2019

Guys - thanks for the feedback. The Dot-Net option is not possible.....there are only 9000 Dot net posts relative to 75000 posts on this forum.
I really like the DLL option.....but only if MC support can provide the details of modifying the Chart Trading Panel via DLL.
That sounds great !!!


Return to “MultiCharts”