I understand and agree, which is why I responded to his post and not
yours ...
The point I was trying to make was that if nested IF or IFF
statements are required, the former of which he seems to have no
trouble understanding, then the latter is no more complicated.
--- In amibroker@yahoogroup
What I was actually trying to point out was that if the result is true of
all the conditions are true you do not even need to use IF or IIF
Even if one of the conditions need to be false to give true result you can
do this, eg if C2 needed to be false
Result = Trigger and C1 and C2==0;
--
Cheers
Forgetting for a minute which form is array oriented and which isn't, I'm
not sure why you see that much distinction in terms of simplicity or
complexity between a nested if this .
Result = False;
If (Trigger == True)
{
If (C1 == True)
{
If (C2 == True)
{
using iif(this and that and another, 1,0) wouldn't be too bad. It
would (for me) get really messy and hard to read to try nested iif
statements though. I appreciate your help.
--- In amibroker@yahoogroups.com, Graham <[EMAIL PROTECTED]> wrote:
>
> there are different ways to achieve things, fo
there are different ways to achieve things, for simple conditions to
give true/false result you can simply use statement with OR/AND. The
following assigns true to results if all 3 conditions are true on the
same bar
Result = Trigger AND C1 AND C2;
to assign values to the variable for true/false
I started using AB with eSignal data - it worked just fine, but was
quite expensive. I then ran IB + eSig data services in parallel for
several months and noticed very little difference between the two, so
I dropped eSig 3 years ago and am satisfied with the AB - IB combo.
My shortest timeframe is
becausae you get only 30 day backfill and it takes forever to backfill.
--- In amibroker@yahoogroups.com, "danielwardadams"
<[EMAIL PROTECTED]> wrote:
>
> Thanks, but if the 100 symbol limit wasn't a problem, why couldn't
> (wouldn't) I use Amibroker charting with IB as the data feed?
>
> Dan
>
It's a bit more complicated than my example. I need to check for
several cases and I would generally use an if statement for something
like this. Something like:
result = false;
if (trigger == true)
{
if (c1 == true)
{
if (c2 == true)
{
result = true;
}
}
}
--- In amibroker@yahoog
Thanks, but if the 100 symbol limit wasn't a problem, why couldn't
(wouldn't) I use Amibroker charting with IB as the data feed?
Dan
Something like this:
start =
end =
val =
bix = Cum(1) - 1;
hline = IIf(bix >= start AND bix <= end, val, Null);
For the bar index, you could also use:
bix = BarIndex();
bix = bix - bix[0];
Regards,
GP
--- In amibroker@yahoogroups.com, "Roberto Martinez" <[EMAIL PROTECTED]>
wrote:
>
> Hi t
That works fine for me. What error is it giving?
You don't need the two sets of brackets in the "c1 = ..." statement
though.
Regards,
GP
--- In amibroker@yahoogroups.com, "lifes_student_1" <[EMAIL PROTECTED]> wrote:
>
> Thanks. Why can't I do the following though that should result in a
> boole
Read the manual:
http://www.amibroker.com/guide/h_understandafl.html
http://www.amibroker.com/guide/a_mistakes.html
Best regards,
Tomasz Janeczko
amibroker.com
- Original Message -
From: "lifes_student_1" <[EMAIL PROTECTED]>
To:
Sent: Saturday, August 25, 2007 9:29 PM
Subject: [amibroker
Not knowing what you are trying to do why not try the simpler and
faster IIF function
--
Cheers
Graham Kav
AFL Writing Service
http://www.aflwriting.com
On 26/08/07, lifes_student_1 <[EMAIL PROTECTED]> wrote:
> Thanks. Why can't I do the following though that should result in a
> boolean:
>
>
As an example here is plotting arrow when you get a buy signal.
PlotShapes( shapeUpArrow*Buy, colorGreen, 0, L, -10 );
--
Cheers
Graham Kav
AFL Writing Service
http://www.aflwriting.com
On 26/08/07, lifes_student_1 <[EMAIL PROTECTED]> wrote:
> Thanks. I used Close as the second to last paramet
In the past I think I've seen messages from people who use Interactive
Brokers for trading but use other sources for their real-time data
(e.g., IQFeed or eSignal). Isn't IB a reliable data source or are
their other reasons to seek alternatives?
Dan
Hmmm, I too have been trying to plot a partial line and when I use
your code in 4.99 beta, it works for about 2 seconds and then extends
the line completly across the screen. I must have a setting problem.
Any ideas?
Ron
--- In amibroker@yahoogroups.com, "Joe Landry" <[EMAIL PROTECTED]> wro
Curt,
I think I just went through figuring out how to do what you want in
one of my systems. Hope this helps!
PS = put in whatever your PositionScore function is here;
PositionScore = IIF(PS > WorstScoreHeld, PS, 0);
What this does is use your PositionScore function if PS >
WorstScoreHeld other
Thanks. Why can't I do the following though that should result in a
boolean:
color = colorLime;
color2 = colorRed;
i1 = colorLime;
c1 = ((i1 == color OR i1 == color2));
if (c1 == true)
{...
This doesn't work. I guess I'm not used to AFL.
--- In amibroker@yahoogroups.com, "Thomas Z." <[EMAIL
You need a loop and then you could write if(barsback[i] < 6)
The other way would be to use IIF()
Regards
Thomas
www.patternexplorer.com
From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of lifes_student_1
Sent: Saturday, August 25, 2007 8:28 PM
To: amibroker@yahoogroups.com
S
--- In amibroker@yahoogroups.com, "aequalsz" <[EMAIL PROTECTED]> wrote:
>
> Using the Microsoft C++ compiled version of Amibroker Development
Kit
> (ADK) basic version of QT doesn't work anymore with the new version
of
> AB. It had always worked fine until maybe 6 months ago - then
instead
>
Like the error msg says, you can't use an array in your IF statement.
BARSSINCE
SYNTAX BarsSince( ARRAY )
RETURNS ARRAY
-Original Message-
From: amibroker@yahoogroups.com [mailto:[EMAIL PROTECTED] Behalf
Of lifes_student_1
Sent: Saturday, August 25, 2007 11:28 AM
To: amibroker@yahoogrou
condition1 = cross(close, ma(close,20));
barsback = BarsSince(condition1 == true);
if(barsback < 6)
{...
I'm getting error 6 on barsback in if statement. condition1 is set and
works as I've tested it elsewhere. What am I doing wrong?
(Condition in IF, WHILE, FOR statements has to be Numeric or B
Using the Microsoft C++ compiled version of Amibroker Development Kit
(ADK) basic version of QT doesn't work anymore with the new version of
AB. It had always worked fine until maybe 6 months ago - then instead
of a green connection, now I only get the red (no connection) sign.
The really str
Indeed no bid array as explained in this recent thread:
http://finance.groups.yahoo.com/group/amibroker/message/113912
But why you need the *BID* of vol-nasd-nasdaq-ind ??
-treliff
--- In amibroker@yahoogroups.com, "ymtrader1" <[EMAIL PROTECTED]> wrote:
>
> I thought the following code would dr
Thanks. I used Close as the second to last parameter and it plots the
shape on top of the bar. I tried Close-7 and it plots below the bar as
I wanted it too but some bars it's further below than other bars. Is
there a way to get this uniform? I tried using offset but that didn't
make it uniform
I thought the following code would draw the changing value of the
"bid" value but instead it just draws a horizontal line of the current
value:
upvol=GetRTDataForeign("BID","vol-nasd-nasdaq-ind");
Plot(upvol,"UVol",colorRed,stylecandle);
It appears that upvol is being treated as a constant value
Hi Roberto
Here's a clip from one of my indicators that you may be able to use. This can
be compressed in fewer lines
of code by nesting the functions but it was done this way for readability.
Note that as long as the barindicator BIX is in the range it will develop a
value for YY.
JOE
Hi there,
I would like to know how to programatically draw a horizontal line that last
for x bars and not for all the chart. When I use the PLOT function it draws a
line trough all the chart length.
Tia.
Hello,
Go to Tools->Customize,
switch to "Keyboard" tab.
Select "Symbol" from category combo box.
Scroll down the list of commands and you will find
"Next Sibling/Previous Sibling" commands.
Now you can assign your custom key strokes to those two commands
and they will allow you to move to next/
29 matches
Mail list logo