dde excel

Discuss anything related to using the program (eg. triggered betting tactics)

Moderator: 2020vision

dde excel

Postby robcpettit » Thu Feb 23, 2006 11:01 am

Hi, Ive been playing with BA and its great. I have a question, its a bit long winded so please go easy on me. Im logging individual prices into excel. Then im linking col h into metastock to give me a chart. This works perfect, streems in great, keeps up, no strain on resources. Ofcourse though, theres a but. Because Im linking the whole of colomn h into metastock, until the cells get filled, the chart shows 0. This is a problem because if the first 5 values are 20 I get a line at 20 then a shrp drop to 0. This make rescalling impossible. So I tried limiting the link to h4:h20. Ounce all the cells are filled the 0 goes but ofcourse becomes a static chart. Then I tried putting a macro in worksheet_change so that when h20>0 it deleted row h4, thinking the next value would go into h20. the next value from ba went into h21 leaving h20 blank, therefore my macro would never get fired again. Ive tried cutting and pasting. If this makes sense does anybody have any suggestions.
Regards Robert
robcpettit
 
Posts: 35
Joined: Thu Feb 23, 2006 9:22 am

Postby Mitch » Thu Feb 23, 2006 11:58 am

I've never used a macro on a chart before so you'll have to fill in the itallic bit but how about... (I'm assuming the data starts at H4 from your post, and you want the graph to show the last 20 values once there are more than 20 items of data).

Private Sub Worksheet_Change(ByVal Target As Excel.Range)
If Target.Row < 24 Then Exit Sub
Application.EnableEvents = False
graph source = Range(Cells(Target.Row-19, 8 ), Cells(Target.Row, 8 ))
Application.EnableEvents = True
End Sub
User avatar
Mitch
 
Posts: 365
Joined: Sat Nov 19, 2005 12:28 am
Location: Leicester

Postby robcpettit » Thu Feb 23, 2006 12:53 pm

mitch, thankyou for your reply. This has helped alot. Ive adapted the macro to:
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
If Target.Row < 121 Then Exit Sub
Application.EnableEvents = False
Range(Cells(Target.Row - 120, 1), Cells(Target.Row, 15)).Select
Selection.Copy
Sheet2.Select
ActiveSheet.Paste _
Destination:=ActiveSheet.Range("A1")
Application.CutCopyMode = False
Sheet1.Select
Application.EnableEvents = True
End Sub
As you can see Im taking the data from sheet1 and putting into sheet2 as I can then set my link to metastock as h4:h120. the only draw back, if using 1 sec refresh I have to wait 2 mins before data is added. Im now working to see if I can get data into the chart from first data point without 0's. Icouldnt use the graph source because I cant workout how to reference metastock. Im thinking that if there was a way to manipilate the dde link by altering the range its refering to through vba this would solve all. Thanks again.
Regards Robert
robcpettit
 
Posts: 35
Joined: Thu Feb 23, 2006 9:22 am

Re: dde excel

Postby kinsky » Fri Nov 21, 2014 6:21 pm

hi rob,

can you please explain how you get data into metastock from excel?
thank you
kinsky
 
Posts: 1
Joined: Fri Nov 21, 2014 9:08 am

Re: dde excel

Postby doris_day » Sat Nov 22, 2014 12:30 pm

There was a guy who set up a site called Quantsports a while back and you could graph the data from Gruss in Ninjatrader, Worked really well but as there were very few that were interested he shut up shop. A shame really.

Personally I think TA isn't much help with trading but then again I'm a useless trader :D
'He was looking for the card so high and wild he'd never need to deal another' - Leonard Cohen
User avatar
doris_day
 
Posts: 968
Joined: Fri Nov 02, 2007 12:34 am

Re: dde excel

Postby rourkem » Sun Nov 23, 2014 11:02 pm

It would be really nice I guess to have the guys contact and hoped that this is still available.
Windows 8 | Framework 2.0 Image
User avatar
rourkem
 
Posts: 166
Joined: Tue Oct 28, 2014 3:20 pm


Return to Discussion

Who is online

Users browsing this forum: Majestic-12 [Bot] and 50 guests

Sports betting software from Gruss Software


The strength of Gruss Software is that it’s been designed by one of you, a frustrated sports punter, and then developed by listening to dozens of like-minded enthusiasts.

Gruss is owned and run by brothers Gary and Mark Russell. Gary discovered Betfair in 2004 and soon realised that using bespoke software to place bets was much more efficient than merely placing them through the website.

Gary built his own software and then enhanced its features after trialling it through other Betfair users and reacting to their improvement ideas, something that still happens today.

He started making a small monthly charge so he could work on it full-time and then recruited Mark to help develop the products and Gruss Software was born.

We think it’s the best of its kind and so do a lot of our customers. But you can never stand still in this game and we’ll continue to improve the software if any more great ideas emerge.