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

[amibroker] Re: Adding value(s) at the end of an Array



PureBytes Links

Trading Reference Links

Stephane,

Yup.  That's exactly what I have in mind ...

So the first (beginning of time) elements will be lost/discarded and 
the elements will be added at the end (tomorrow's element, day-after-
tomorrow's element and so on).

Regards,
- Salil V Gangal


--- In amibroker@xxxxxxxxxxxxxxx, "Stephane Carrasset" 
<nenapacwanfr@xxxx> wrote:
> Hi Salil,
> 
> If I understand you want to create a new Foreign("QQQ","C");
> with a "custom" close array for the last bar? 
> 
> Stephane
> 
> > Err ... never mind ... I got it.
> > 
> > Regards,
> > - Salil V Gangal
> > 
> > --- In amibroker@xxxxxxxxxxxxxxx, "salil_gangal" 
> <salil_gangal@xxxx> 
> > wrote:
> > > Friends,
> > > 
> > > I'll like to add a value at the end of an array.  What I'm 
trying 
> > to 
> > > do is (say) something like this ===>
> > > 
> > > // This step sets up the array
> > > myArray = Foreign("QQQ","C");
> > > 
> > > // This step cuts out the element at the *beginning* of array
> > > myArray = Ref(myArray,-1);
> > > 
> > > // Now I want to 'add' an element at the *end* of this array
> > > myArray = ?????
> > > 
> > > Is this doable ?  (And if it, is how to do it ?)
> > > 
> > > What I want to do is to 'anticipate' signal(s) based on the 
value
> > (s) 
> > > for the array that I come-up with (which are 
> future/hypothetical), 
> > so 
> > > I'll like to add an element.
> > > 
> > > Sure ... I know of a work-around.  I can set-up an ASCII file 
and 
> > > import the values I want to insert.  So perhaps what I can do 
> today 
> > > to import two (future/hypothetical) values for QQQ is to import 
> the 
> > > following, where I've got values (future/hypothetical) for 
August 
> > 12 
> > > and 13 as below.
> > > 
> > > QQQ|8/13/2003|31.20
> > > QQQ|8/12/2003|30.20
> > > QQQ|8/12/2003|30.86
> > > QQQ|8/11/2003|30.40
> > > QQQ|8/8/2003|30.07
> > > QQQ|8/7/2003|30.31
> > > QQQ|8/6/2003|30.19
> > > QQQ|8/5/2003|30.21
> > > QQQ|8/4/2003|31.45
> > > QQQ|8/1/2003|31.46
> > > 
> > > But is there a simpler way ?
> > > 
> > > Regards,
> > > - Salil V Gangal


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for Your HP, Epson, Canon or Lexmark
Printer at Myinks.com. Free s/h on orders $50 or more to the US & Canada. http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/l.m7sD/LIdGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/