PureBytes Links
Trading Reference Links
|
<FONT face=Arial color=#0000ff
size=2>David,
You
want yesterdays value but ask for todays.... try
<FONT face=Arial color=#0000ff
size=2>
TimeFrameSet( inDaily );
vxdc =Ref( Foreign
("$Vix","C"),-1);
TimeFrameSet( in1Minute
);
Filter=C>0;
vxmc = Foreign
("$Vix","C");
TimeFrameRestore();
vxdif=(vxdc-vxmc);
Plot(vxdif,"vxdif",C);
or see
it in AA by adding
<FONT face=Arial color=#0000ff
size=2>
TimeFrameSet<FONT
color=#282828 size=2>( inDaily<FONT
color=#282828 size=2> );
vxdc =<FONT
color=#0000ff>Ref(
Foreign (<FONT
size=2>"$Vix","C"<FONT
size=2>),-1<FONT
size=2>)<FONT face=Arial
color=#0000ff>;
TimeFrameSet<FONT
color=#282828 size=2>( in1Minute<FONT
color=#282828 size=2> );<FONT face=Arial
size=2>
Filter<FONT
face=Arial size=2>=C<FONT face=Arial
size=2>>0<FONT face=Arial
color=#282828 size=2>;<FONT
color=#282828 size=2>
vxmc = <FONT
color=#0000ff>Foreign (<FONT
size=2>"$Vix",<FONT
size=2>"C"<FONT face=Arial
color=#0000ff>);
TimeFrameRestore<FONT color=#282828
size=2>();
vxdif=(vxdc-vxmc);<FONT
color=#0000ff size=2>
Plot<FONT color=#282828
size=2>(vxdif,"vxdif"<FONT
color=#282828 size=2>,C<FONT
color=#282828 size=2>);<FONT face=Arial
color=#0000ff size=2>
AddColumn(Vxdc,<FONT
face=Arial color=#ff00ff size=2>"Daily,vix"<FONT face=Arial color=#282828
size=2>);
AddColumn(Vxmc,<FONT
face=Arial color=#ff00ff size=2>"1 min"<FONT face=Arial color=#282828
size=2>);
AddColumn(Vxdif,<FONT
face=Arial color=#ff00ff size=2>"Diff"<FONT face=Arial color=#282828
size=2>);
Regards,
Jayson
<FONT face=Tahoma
size=2>-----Original Message-----From: wooziwog
[mailto:xcitemint@xxxxxxx]Sent: Monday, March 29, 2004 12:07
PMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] Time
Function or Foreign error - Need HelpI have tried to
get the following formula to work and am definitelyin over my head on this
one. I am trying to accomplish the following:1. Set the Time frame to daily
and get yesterday's close(vxdc)2. Set the Time Frame to one minute and get
the most recent close(vxmc)3. Subtract vxmc from vxdc for vxdif4.
Use vxdif for plot and colorI appreciate any help that can be provided on
this one.David K.//Vix Barometer//TimeFrameSet(
inDaily );vxdc = Foreign ("$Vix","C");TimeFrameSet( in1Minute );vxmc
= Foreign
("$Vix","C");TimeFrameRestore();vxdif=(vxdc-vxmc);Plot(vxdif,"vxdif",C);COLOR=//Ultra
Bullish Reading//(vxdif>=-1.20)*colorGreen+Plot( 10, "Ribbon",
COLOR,styleOwnScale|styleArea|styleNoLabel,2,5
);Send BUG REPORTS to bugs@xxxxxxxxxxxxxSend
SUGGESTIONS to
suggest@xxxxxxxxxxxxx-----------------------------------------Post
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A
href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check
group FAQ at: <A
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html
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
Yahoo! Groups Links
To visit your group on the web, go to:http://groups.yahoo.com/group/amibroker/
To unsubscribe from this group, send an email to:amibroker-unsubscribe@xxxxxxxxxxxxxxx
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
|