logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
ABDULLAH7044  
#1 Posted : Thursday, March 22, 2012 2:02:50 PM(UTC)
ABDULLAH7044

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 4/15/2011(UTC)
Posts: 10

how can i control metastock from another application like visual basic for example changing periodicity or pressing refresh data from visual basic can i do this using blug in and add on if so what tool i need i alredy have mdk thank you
jjstein  
#2 Posted : Thursday, March 22, 2012 3:12:07 PM(UTC)
jjstein

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 5/13/2005(UTC)
Posts: 715
Location: Midwest, USA

Was thanked: 1 time(s) in 1 post(s)
Any scripting tool should work; I've used AutoIt.

ABDULLAH7044  
#3 Posted : Friday, March 23, 2012 12:53:17 AM(UTC)
ABDULLAH7044

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 4/15/2011(UTC)
Posts: 10

Thank you jjstein
ABDULLAH7044  
#4 Posted : Friday, March 23, 2012 12:17:15 PM(UTC)
ABDULLAH7044

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 4/15/2011(UTC)
Posts: 10

I installed Autoit read the help and practice the tutorial search the internt for script that control metastock i found nothing except the following script AutoItSetOption("WinTitleMatchMode", 1) WinWaitActive("MetaStock Professional") For $i = 10 to 1 Step -1 sleep(10000) Send("!fgN") Next this script open every security one by one what is fgn do you have please script that change periodicity any help
jjstein  
#5 Posted : Friday, March 23, 2012 12:36:00 PM(UTC)
jjstein

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 5/13/2005(UTC)
Posts: 715
Location: Midwest, USA

Was thanked: 1 time(s) in 1 post(s)
ABDULLAH7044 wrote:
do you have please script that change periodicity


Sorry, I don't have anything handy. You will have to write a script that clicks FORMAT, X-Axis, then PERIODICITY, then the option you want.

ABDULLAH7044  
#6 Posted : Friday, March 23, 2012 1:58:53 PM(UTC)
ABDULLAH7044

Rank: Member

Groups: Registered, Registered Users, Subscribers
Joined: 4/15/2011(UTC)
Posts: 10

I used this function but i dont know how to set the options interval , periods WinMenuSelectItem("[CLASS:MetaStockMainWnd]", "", "&Format", "&X-Axis...","&Periodicity","&Custom","&Interval:Minute","&Periods:1" )
jjstein  
#7 Posted : Friday, March 23, 2012 2:15:45 PM(UTC)
jjstein

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers
Joined: 5/13/2005(UTC)
Posts: 715
Location: Midwest, USA

Was thanked: 1 time(s) in 1 post(s)
Sorry, it's been awhile; don't recall all the details. You'll have to read the manual.

Users browsing this topic
Guest (Hidden)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.