[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [amibroker] Load Layout from AFL



PureBytes Links

Trading Reference Links

Sure:
 
Dim oAB
Dim Result
Dim EndDate
Dim BegDate
Dim splitdate
Dim sDate

Set oAB = CreateObject("Broker.Application")
oAB.visible = True
EndDate = now
splitdate = split(Split(formatdatetime(Now), " ")(0), "/") ' parse todays
date
sDate = splitdate(0) + "/01/" + splitdate(2)               ' Make first day
of month

BegDate = DateAdd("d", 1, DateAdd("m", -3, EndDate)) 

Result = oAB.ActiveWindow.ZoomToRange(BegDate, EndDate)
Set oAB = Nothing

d


  _____  

From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf
Of cstrader232
Sent: Wednesday, June 28, 2006 2:49 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: Re: [amibroker] Load Layout from AFL


Dingo...could you point me in the right direction to write a script to load
a layout?  I'm familiar with the objects guide
http://www.amibroker.com/guide/objects.html.  But I don't see how to use it
to open a layout.  
 
tia
 
 

----- Original Message ----- 
From: dingo <mailto:dingo@xxxxxxxxxxxx>  
To: amibroker@xxxxxxxxxxxxxxx 
Sent: Wednesday, June 28, 2006 11:22 AM
Subject: RE: [amibroker] Load Layout from AFL

Yes it does, easily done from a script 
 
d


  _____  

From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf
Of Terry
Sent: Wednesday, June 28, 2006 9:49 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: RE: [amibroker] Load Layout from AFL



There must be a way since BatMan does it, although from a script I think.

--

Terry

-----Original Message-----
From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf
Of cstrader232
Sent: Wednesday, June 28, 2006 07:38
To: amibroker@xxxxxxxxxxxxxxx
Subject: Re: [amibroker] Load Layout from AFL

 

Yes, that's what I was afraid of.  Really too bad in a way because I have
automated adding symbols to the charts.  But when I do that the layouts get
messed up (for some reason the symbols are assigned to charts
alphabetically, so when new ones are added, everything gets switched).  So I
then have to manually reload a prior layout.  Anyone found a solution to
this?  Thanks!