Send keystroke to the chart

Questions about MultiCharts .NET and user contributed studies.
Abhi
Posts: 38
Joined: 28 Nov 2015
Has thanked: 6 times
Been thanked: 5 times

Send keystroke to the chart

Postby Abhi » 15 Jan 2022

Hey Guys, Question - How can we write a piece of code to send keystroke to the chart from a C# indicator. I Googled on the net I see various code which sends keystroke from a C# form to another program, but when I tried to copy it on a C# indicator, it gives out an error. Indicator does not identify the method.

My C# knowledge is limited but I think the indicator is giving an error as the below piece of code is not supported in the CalcBar() method.

SendKeys.Send("{AUDUSD}");
SendKeys.Send("{ENTER}");

User avatar
Tammy MultiCharts
Posts: 200
Joined: 06 Aug 2020
Has thanked: 6 times
Been thanked: 65 times

Re: Send keystroke to the chart

Postby Tammy MultiCharts » 27 Jan 2022

Hello Abhi,

Please use the pre-built _ChartToolBar_Trading_ signal as a reference.

Abhi
Posts: 38
Joined: 28 Nov 2015
Has thanked: 6 times
Been thanked: 5 times

Re: Send keystroke to the chart

Postby Abhi » 29 Jan 2022

Thanks a lot Tammy. Found a freeware software on the internet that sends keystroke to any windows application.

http://prjsoft.ru/sendkeys.php


Return to “MultiCharts .NET”