Page 1 of 1

Power Language-Chart Trading Panel extension

Posted: Apr 19 2019
by syswizard
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.

Re: Power Language-Chart Trading Panel extension

Posted: Apr 19 2019
by gpw797
Yes vote here

Re: Power Language-Chart Trading Panel extension

Posted: Apr 19 2019
by TJ
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.

Re: Power Language-Chart Trading Panel extension

Posted: Apr 22 2019
by syswizard
I can still exit using the feature of clicking on the instrument on the chart. I never use this technique on a regular basis.

Re: Power Language-Chart Trading Panel extension

Posted: Apr 22 2019
by sptrader
"set the # of contracts based on market volatility".
I'd like to see that one. Maybe use a percent of ATR.

Re: Power Language-Chart Trading Panel extension

Posted: Apr 22 2019
by syswizard
"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 !!).

Re: Power Language-Chart Trading Panel extension

Posted: Apr 23 2019
by Smoky
Always agree to make more POWER in Powerlanguage !

Re: Power Language-Chart Trading Panel extension

Posted: Apr 23 2019
by syswizard
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.

Re: Power Language-Chart Trading Panel extension

Posted: Apr 23 2019
by syswizard
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.

Re: Power Language-Chart Trading Panel extension

Posted: Apr 23 2019
by darob
Hi syswizard, sounds like you want .net with its access to toolbar controls.

Re: Power Language-Chart Trading Panel extension

Posted: Apr 24 2019
by syswizard
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.

Re: Power Language-Chart Trading Panel extension

Posted: Apr 24 2019
by Smoky
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...

Re: Power Language-Chart Trading Panel extension

Posted: Apr 25 2019
by darob
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?

Re: Power Language-Chart Trading Panel extension

Posted: Apr 25 2019
by syswizard
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 !!!

Re: Power Language-Chart Trading Panel extension

Posted: Apr 09 2024
by svfutures24
Have there been further updates to this option at all? i.e. using DLL to create the toolbars and accessing chart trading pannel?

Re: Power Language-Chart Trading Panel extension

Posted: May 21 2024
by Mark Brown
i do it with python - i write the trade to a file - python monitors and then sends hotkeys to focused trading chart for orders.

Re: Power Language-Chart Trading Panel extension

Posted: Jul 14 2024
by Jojojo
Could you please explain a bid further in detail ?