[amibroker] Re: getting an error in my if statement

2007-08-25 Thread Fred
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

Re: [amibroker] Re: getting an error in my if statement

2007-08-25 Thread Graham
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

RE: [amibroker] Re: getting an error in my if statement

2007-08-25 Thread Fred Tonetti
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) {

[amibroker] Re: getting an error in my if statement

2007-08-25 Thread lifes_student_1
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

Re: [amibroker] Re: getting an error in my if statement

2007-08-25 Thread Graham
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

[amibroker] Re: IB as real-time data source

2007-08-25 Thread Ed Hoopes
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

[amibroker] Re: IB as real-time data source

2007-08-25 Thread murthysuresh
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 >

[amibroker] Re: getting an error in my if statement

2007-08-25 Thread lifes_student_1
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

[amibroker] Re: IB as real-time data source

2007-08-25 Thread danielwardadams
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

[amibroker] Re: horizontal line

2007-08-25 Thread gp_sydney
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

[amibroker] Re: getting an error in my if statement

2007-08-25 Thread gp_sydney
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

Re: [amibroker] Re: getting an error in my if statement

2007-08-25 Thread Tomasz Janeczko
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

Re: [amibroker] Re: getting an error in my if statement

2007-08-25 Thread Graham
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: > >

Re: [amibroker] Re: how to plot a shape just below the candle price bar?

2007-08-25 Thread Graham
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

[amibroker] IB as real-time data source

2007-08-25 Thread danielwardadams
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

[amibroker] Re: horizontal line

2007-08-25 Thread booker_1324
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

[amibroker] Re: Rotational System with PositionScore Threshold

2007-08-25 Thread georgeafe
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

[amibroker] Re: getting an error in my if statement

2007-08-25 Thread lifes_student_1
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

RE: [amibroker] getting an error in my if statement

2007-08-25 Thread Thomas Z.
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

[amibroker] Re: ADK QT.dll won't work anymore

2007-08-25 Thread aequalsz
--- 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 >

RE: [amibroker] getting an error in my if statement

2007-08-25 Thread Bob Jagow
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

[amibroker] getting an error in my if statement

2007-08-25 Thread lifes_student_1
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

[amibroker] ADK QT.dll won't work anymore

2007-08-25 Thread aequalsz
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

[amibroker] Re: How do you plot the "bid" value of a foreign symbol?

2007-08-25 Thread treliff
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

[amibroker] Re: how to plot a shape just below the candle price bar?

2007-08-25 Thread lifes_student_1
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

[amibroker] How do you plot the "bid" value of a foreign symbol?

2007-08-25 Thread ymtrader1
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

Re: [amibroker] horizontal line

2007-08-25 Thread Joe Landry
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

[amibroker] horizontal line

2007-08-25 Thread Roberto Martinez
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.

Re: [amibroker] SYMBOL STEPPING>New Feedback Issue#1157

2007-08-25 Thread Tomasz Janeczko
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/