shorton=0;
for (i=0; i buy = a and b and c and shorton==1; // *double =* for conditional
statement
shorton=1; // shorton will be 1 for all i's except the first one
}
noah.bender wrote:
my theory was initially to reference the shorton.But I am running into
problems. I have tried using the
Jim --
Muthy's suggestion may work if you do thing in the proper order, for
example:
param1 = Param("Param1", 5, 1, 10, 1); // for symbols not specified below
if(name()=="blah") param1=7; // overrides Param() function above
if(name()=="xyz") param1=3; // overrides Param() function above
the r
my theory was initially to reference the shorton.But I am running into
problems. I have tried using the ref function and the barcount function with no
luck.
It seems the code always reverts back to the initialization value of zero. It
is really frustrating. And I can't move the calculation of
Did that already but the parameters do not actually change when I change the
symbol in the chart. The Reset button in the parameters window has to be used
to force the change.
--- In amibroker@yahoogroups.com, "murthysuresh" wrote:
>
> i dont think so. why dont you just use conditional statem
i dont think so. why dont you just use conditional statements.
with if(name()=="blah")
{
param1=something
}
or you can use a switch case.
--- In amibroker@yahoogroups.com, "japple_55" wrote:
>
> I have a single system plotted on a chart that I would like to view/test for
> several symbols, wher
I have a single system plotted on a chart that I would like to view/test for
several symbols, where only the parameters will change according to the symbol
being viewed/tested.
I've got the parameter changes coded as symbol dependent ("IIF name = ...") and
their values reflect properly in the t
Dennis --
Yes, I could. Just tried it and it works for all panes and AA BackTest
as well. (for Optimize(), please see comment after code).
I had to make some other changes as well as follows:
My top pane is always just price and volume with maybe one or more
moving averages. This used to be a
Maybe you should play around with it a bit more I don't think it is a good
idea to 'miss' the open ... depending on your strategy.
I match up 1 min bar == 5 min bar open == daily bar open.
(try taking 5 min off the close and also check your night session settings ...
see that they match).
The settings are initially at 9:30~16:00. After I changed it to 9:31~16:00, the
data now is aligned.
Thank you.
--- In amibroker@yahoogroups.com, "brian_z111" wrote:
>
> Hello,
>
> Check your DatabaseSettings >> IntradaySettings
>
> StartTime/EndTime should equal 6.5 hours * 12 * 5min bars
Hello,
Check your DatabaseSettings >> IntradaySettings
StartTime/EndTime should equal 6.5 hours * 12 * 5min bars == 78
Start == 0930 End = 1555 == 6.5 hours inclusive (I have the preferences time
stamp set to START TIME OF INTERVAL)
This assmes you are in the US market (6.5 hours).
My persona
My data base has 1 minute resolution, but when I set the interval to 5 minutes,
the first bar of the day appears as 9:31. The second bar appears as 9:35 and
the rest of the day is normal. Due to that additional bar at open, there are 79
5-minute bars in a day instead of 78. Why is that? I tried
Been working with AB for a while now
It is great for back testing and setting up charts
Now when I start to trade live my trade system that AB has helped me put
together it falls short here
Am I missing something?
Looking for a way to track the open positions and get percentage returns,
dolla
Could you set the params once in its own window/chart, then just set
static variables with the param values? In each of the other charts
reference the static variables instead of the params.
BR,
Dennis
On May 24, 2009, at 3:47 PM, Keith McCombs wrote:
> Is there any convenient way to reset
Hi Frends,
How can I use "Foreign " with the following code.
Current_Close = StrFormat(" %g ", C, SelectedValue( ROC( C, 1 ) ) );
GfxSelectFont( "Verdana", 9, 700 );
GfxSetBkMode( 1 );
GfxSetTextColor( colorBlue);
pxHeight = Status( "pxchartheight" );
t = pxHeight;
x5 = 10;
GfxTextOut( Current_C
Forgot, another way I do it sometimes is, for example:
|
DnBars = Param("DnBars", 3, 1, 10, 1);
//DnBars = 5;|
All is synchronized, when I comment out the first line and use uncomment
the second one.
But still would like something slicker. Maybe some way to force the
default value 3 from the f
Is there any convenient way to reset or synchronize parameters in
multiple chart panes and AA simultaneously?
I commonly have one chart window containing three panes all defined by
one .afl program. The program may contain one or more Param()
statements. It is rather tedious, and prone to mis
Kus --
You are making a classic afl mistake that almost all of us have made
before (more than once for me). The mistake is that:
nn is an *array* which you have on both the left and right side of the =
sign in your equation nn = IIf(etc. You are assuming, incorrectly, that
the new value of Re
Hi,
depending on what you want to do...
You can use SQL but you must have in-depth knowlegde of the specific
database sw.
Logical and mostly physical database design is crutial to success. Both
designs must be very efficent.
Generally SQL database engine is used as a storage system. So it is bit
Dear All,
I found some un-answered questions about array processing of the AFL.
nn = 100;
nn = IIf(Vhttp://downloads.yahoo.com/id/firefox/
If you're trying to use positionsize based on the equity value, check this
message 108746.
hope it helps
--- In amibroker@yahoogroups.com, "spi_maker" wrote:
>
> I am trying to calculate a position size based on the current level of equity
> built up, but I not doing this properly.
>
> I set
Hi Brian
I use DTN IQ as sevice provider but my market hours are set to 9:30 to 3.55 on
5 minute bars. so i dont worry about pre and post market data.
--- In amibroker@yahoogroups.com, "brian_z111" wrote:
>
> Seede,
>
> Well, at least we are making some progress (we seem to have isolated the
>
Hello all,
I have a question on sigscaleout. Do i have to use a loop when I use
sigscaleout or can I use it in an array? so far I have only been able to use
it in a loop.
Also, if I have a short sigscaleout and a long sigscaleout in the same loop.
I have noticed that only one of the sigscaleouts a
if what u say is true then even though the short gets set to 1 in the loop.
when it passes through the code again it will get set to zero and then enter
loop with a value of zero and not one?
because each time the code passes through the value gets set to zero.
--- In amibroker@yahoogroups.
You can do it by ASCII import. There are some default fields in the database
other than price, which can be imported. See the 'Format Definition commands'
section to have a list of available fields and also the process of defining the
format for importing data.
Regarding this issue, I have a qu
Hi guys,
does someone know if there is any possibility to import information like round
lot size or margin deposit etc. out of a .csv or .xls file into Amibroker
through e.g. AFL?
Thanks, dubi
25 matches
Mail list logo