Hi Peter,
Using the example of the PlotText
function in the AB Help files, I have wrapped the integer function around the
Buy Price. See the example below:
Regards,
Gordon Sutherland
Plot(C,Price, colorBlack,
styleLine );
Plot(MA(C,20),MA20, colorRed );
Buy=Cross( C, MA
Johan,
Slick, very slick indeed - especially when you add a couple of
parameters to control verticality.
Thanks,
Gordon Sutherland
-Original Message-
From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of johsun
Sent: Saturday, 29 July 2006 5:30 a.m.
To: amibroker
Osgem,
You have a typo in your last line of code (missing a quote mark in front
of the I). It then runs just fine.
Graph0 = Foreign( ~MyIndex, C )/Foreign( ~MyIndex, I );
Regards,
Gordon Sutherland
-Original Message-
From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED
luck,
Regards,
Gordon
Sutherland
// ATC AFL code to create a Price Array of Index and
incorporating volume
// Created
by Gordon Sutherland 27th August 2006 for Osgem - Amibroker(at)YahooGroups.com
AddToComposite( L , ~MyIndex ,
L );
AddToComposite( O , ~MyIndex , O );
AddToComposite( H
the attachment AFL file rather than risk word wrap
syntax errors using copy and paste from the body of the email.
Regards,
Gordon Sutherland
-Original Message-
From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of osgem_2006
Sent: Tuesday, 29 August 2006 2:12 a.m
Hi Osgem,
Thanks for the feedback. Glad to be of some help.
Good hunting ---
Regards,
Gordon Sutherland
-Original Message-
From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of osgem_2006
Sent: Wednesday, 30 August 2006 7:02 a.m.
To: amibroker
this is of help.
Regards,
Gordon Sutherland
-Original Message-
From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of matrix10014
Sent: Friday, 15 September 2006 2:40 a.m.
To: amibroker@yahoogroups.com
Subject: [amibroker] ATC and Missing quotes
Just figured it out
);
Regards,
Gordon
Sutherland
-Original Message-
From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of
sdp_51
Sent: Sunday, 22 October 2006 3:45 p.m.
To: amibroker@yahoogroups.com
Subject: [amibroker] coloring candlesticks according to code?
i want to color
-code amend the second
argument for each parameter line, as I provided, or soft-code by using
the parameters box in the AA Window (for Exploration or Back Test
reports).
Good luck,
Regards,
Gordon Sutherland
-Original Message-
From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED
.
Regards,
Gordon Sutherland
-Original Message-
From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of MarkK
Sent: Sunday, 17 December 2006 3:41 a.m.
To: amibroker@yahoogroups.com
Subject: [amibroker] Exporting AA window to .cvs some data shifts
Wonder
Try StyleNoRescale in your Plot statement.
Regards,
Gordon Sutherland
-Original Message-
From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of sdp_51
Sent: Wednesday, 31 January 2007 7:50 p.m.
To: amibroker@yahoogroups.com
Subject: [amibroker] Automatic window
Dan,
Chaikin Money Flow is in the Online AB Library - since 2001.
Regards,
Gordon Sutherland
-Original Message-
From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of danielwardadams
Sent: Tuesday, 20 February 2007 3:38 a.m.
To: amibroker@yahoogroups.com
Subject
Nicholas,
Use the function: PositionScore to do this.
Regards,
Gordon Sutherland
-Original Message-
From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of nicholas_mandelbaum
Sent: Tuesday, 24 July 2007 4:25 a.m.
To: amibroker@yahoogroups.com
Subject: [amibroker] How
Hello Bill,
The following example works for me:
SetForeign(XAO);
Sym = Name();
FName = FullName();
RestorePriceArrays();
Plot(C,,-1,64);
Title = Sym ++ FName;
Regards,
Gordon Sutherland
-Original Message-
From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf
);
Plot(MA(ForeignSYMBOL,10),Nasdaq Trin, colorPink,styleLine|styleOwnScale);
Regards,
Gordon Sutherland
-Original Message-
From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of murthysuresh
Sent: Sunday, 16 September 2007 5:28 a.m.
To: amibroker@yahoogroups.com
Subject
Probably an obvious question but have you checked-out the AFL function:
SetOption(HoldMinBars, 30 );
This does not require low level CBI.
Regards,
Gordon Sutherland
-Original Message-
From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of tipequity
Sent: Tuesday, 25
The code below posted by Graham Kavanagh seems to give the same result as
MetaStock values.
Cheers,
Gordon Sutherland
_SECTION_BEGIN(Kaji Chart);
/*AFL Library
Details:
Formula Name: Kagi Chart
Author/Uploader: Graham Kavanagh - [EMAIL PROTECTED]
Date/Time added: 2002-11-29 05:12:31
Hi Bob,
Just a long-shot, but make sure AB is not open when you install the new
Beta.
Regards,
Gordon
-Original Message-
From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of Mike Orlyk
Sent: Wednesday, 28 November 2007 3:32 a.m.
To: amibroker@yahoogroups.com
Subject:
a clue as to how to conditionally color the y-axis background for the value:
Prds= Param(Periods,20,2,250,1);
HV = H == HHV(H,Prds);
LV = L == LLV(L,Prds);
Plot( C , , IIf(HV,colorGreen,IIf(LV,colorRed,colorBlack )) , 64 );
Regards,
Gordon Sutherland
Hi Joseph,
Brian was correct, I use SnagIt from http://www.techsmith.com/ . I have been
using it for about 5 years and find it superb. There is a small license fee
to use.
Cheers,
Gordon Sutherland
-Original Message-
From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf
Hi Sheldon,
Yes there is. Simply draw your line on the chart and hover your mouse over
the line drawn. A pop-up Tooltip window will show you the dates and values
of the start and end bars together with their respective values and the
percentage increase.
Cheers,
Gordon
-Original
--- In amibroker@yahoogroups.com, Gordon Sutherland [EMAIL PROTECTED] wrote:
Hi Larry,
I believe iterating through the price array using loops is the best
solution. For those (like me) uncomfortable with looping there is
some code
that I believe will do what you want in the form of a custom
JoeP,
Just typos:
1. Place a comma before coloryellow and before colorgreen. This
separates arguments two from three in the plot statements.
2. Remove the y in colorygreen.
Cheers,
Gordon Sutherland
-Original Message-
From: amibroker@yahoogroups.com [mailto
Ara,
I have the following AFL code for the RVI:
// Donald Dorsey's RVI Indicator (Relative Volatility Index?)
// Posted to AB Yahoo Groups by Rakesh Sahgal on 23rd April 2007
SD10=StDev(C,10);
RVI=RSIa(SD10,10);
Plot(RVI,RVI,colorBlack,styleLine);
Cheers,
Gordon Sutherland
Hello,
If you are referring to Daryl Guppy's Count Back Line (CBL) then the
following code transcribed by Stephane Carrasset should do the trick (the
AFL code plots OK on my machine).
Hope this helps,
Gordon Sutherland
/* Stephane Carrasset's Countback Line (CBL) popularized by Daryl
with the PlotShapes symbols are not the same size/proportions as
your laptop.
Failing the above, then as Bill suggested, I guess you will need to contact
support.
Good luck,
Gordon Sutherland
-Original Message-
From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf
,
Gordon Sutherland
// Filed by Tomasz Janezco 12th October 2007 as example of using low-level
// graphics functions
// This example shows the Profit from ~~~Equity Symbol after a system test.
// Use Parameters to change the type of graph dispayed. Gordon Sutherland
// (GBS)
SetBarsRequired
(BarIndex());
yH=LastValue(HHV(H,LineFwd));
Plot(C,,-1,64);
Line = LineArray( BarCount-(LineFwd+1), yh, BarCount-1, yh, 1,True );
Plot(Line, High Value , colorRed,1 );
_SECTION_END();
Regards,
Gordon Sutherland
-Original Message-
From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED
elegant
ways to achieve the same purpose.
Regards,
Gordon Sutherland
_SECTION_BEGIN(Closing Price Ribbon);
upbar = C Ref(C,-1);
downbar = C Ref(C,-1);
UDcol = IIf(upbar, colorGreen,IIf(downbar, colorRed, colorYellow));
//Plot( 5, ,UDcol,styleArea|styleOwnScale|styleNoLabel,0,100
Another approach that does not use loops would be to use the AddToComposite
Function (ATC) as this will sum the specific event bar values and then you
can divide by a separate ATC that gives you the total number of such events.
I just love ATC!
Cheers,
Gordon Sutherland
-Original Message
Hi Mahesh,
Why not use C * V (Close * Volume)
Regards,
Gordon Sutherland
-Original Message-
From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of mahest72
Sent: Wednesday, 30 April 2008 12:38 a.m.
To: amibroker@yahoogroups.com
Subject: [amibroker] volume filter plz
by highest or lowest values by clicking
in the $ Traded column header
I hope this gets you going and I can understand your desire for instant
results but you will have to spend much time reading the extensive Help
files.
Good luck with your trading.
Gordon Sutherland
-Original
Hello Perumal,
Go to Preferences Charting 'New Look' Charts and check the box.
Cheers,
Gordon
-Original Message-
From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of umrperumal
Sent: Wednesday, 2 July 2008 5:28 p.m.
To: amibroker@yahoogroups.com
Subject: [amibroker]
Hi Stan,
I attach AFL code below that should do the trick.
Cheers,
Gordon Sutherland
_SECTION_BEGIN(Countback Line);
/* Stephane Carrasset's Countback Line (CBL) popularized by Daryl Guppy
Refer to AmiBroker Yahoo Forum posting 30th December 2004*/
nR=2;
Cbl[nR]=Null;
bCBL
key
on your keyboard.
Cheers,
Gordon Sutherland
-Original Message-
From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of rr_bt
Sent: Saturday, 16 August 2008 3:01 a.m.
To: amibroker@yahoogroups.com
Subject: [amibroker] scrolling through watchlist
hello,
i have a 5-window
Pete,
One way is to save all your local layouts to global layouts and that way all
databases can see the layouts and underlying AFL code. I tend to use Global
layouts for all my studies for this reason.
Cheers,
Gordon Sutherland
-Original Message-
From: amibroker@yahoogroups.com [mailto
Try the following:
HigherClose = C Ref(C,-1);
HigherThanLast4 = Sum(HigherClose,5) 4;
Plot(HigherThanLast4,,colorBlue,2);
Cheers,
Gordon Sutherland
-Original Message-
From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of ozzyapeman
Sent: Friday, 12 September
Use the ToolTip function in your AFL at the same time as you select
crosshairs and hey presto OHLC and whatever you define.
Cheers,
Gordon Sutherland
-Original Message-
From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of Carl Vanhaes
Sent: Monday, 22 September 2008 10
Graham,
Check-out the SetForeign() function in the Help files. This should enable
you to get the ATR for your foreign symbol.
Cheers,
Gordon Sutherland
-Original Message-
From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of Graham Johnson
Sent: Friday, 17 October 2008
Yes I've been getting the same email many times also. I'm about to do a
special Norton Scan!
Cheers,
Gordon Sutherland
-Original Message-
From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of Herman
Sent: Friday, 28 November 2008 5:54 a.m.
To: Barry Scarborough
to W7 was with
disappearing files (compatibility files) and so I switched-off W7's UAC
feature and life has been sweet since!
Cheers,
Gordon Sutherland
From: Sidney Kaiser
Sent: Thursday, February 25, 2010 9:42 AM
To: amibroker@yahoogroups.com
Subject: [amibroker] (unknown)
I missed
(EMA(C,S),C );
MaxPos = 12;
SetOption(MaxOpenPositions, MaxPos);
PositionSize = -100/MaxPos;
Thanks,
Gordon Sutherland
caused my problem - some
incompatibility or corruption I suppose.
Gordon Sutherland
From: Mike
Sent: Tuesday, June 08, 2010 1:03 PM
To: amibroker@yahoogroups.com
Subject: [amibroker] Re: Problem getting CMAE Optimizer to run
Your script ran fine under Win 7 64 bit using standard trial 5.30.0
.
Thanks and Regards, Gordon Sutherland
From: Ton Sieverding
Sent: Tuesday, June 08, 2010 6:53 PM
To: amibroker@yahoogroups.com
Subject: Re: [amibroker] Re: Problem getting CMAE Optimizer to run
No problems at all ... XPPro with 5.30.1 ( 32bit ) ...
Regards, Ton.
- Original Message
44 matches
Mail list logo