As i want to compare equities of several systems within a chart, i try
to program equityline within a loop.
But i got a problem which i cannot solve. Maybe somebody can help me.
This is my code, but it seems that it adds a position with every
signal and i want just 1 contract/share in a position a
Thanks,
That was quick.
It must have been too easy.
I'll try a harder one next time.
If you can write it, I can roadtest it (I'll try it later).
At first read it looks good (you definitely ironed out a couple of
the kinks).
All good ideas will be written into the UKB code.
brian_z
--- In a
My comment was based on the absence of the things that generate a valid wave
count, irrespective of the type of EW that one follows.
Bill
- Original Message -
From: "mytakeismine" <[EMAIL PROTECTED]>
To:
Sent: Thursday, March 06, 2008 11:27 PM
Subject: [amibroker] Anthony RE: EW
> An
Anthony
All I see is a red zig line... the rest isn't plotting?
Sounds like wavemechanic is seeing the same!!??
thanks kj
ps what are you seeing
The program finds peaks and troughs (as others in the library) but it ain't EW.
Bill
- Original Message -
From: Anthony Faragasso
To: amibroker@yahoogroups.com
Sent: Thursday, March 06, 2008 10:22 PM
Subject: Re: [amibroker] Elliott waves
Elliot Wave.afl
X=BarIndex(
Hi - I noticed your code assumes 5 days per week, so I tried to tweak it a
little to account for holiday weeks and also added some code to sum up the
days. It's untested but we can keep our fingers crossed... 8 - )
Steve
WeekDay = DayOfWeek();
BeginWeek = WeekDay < ref( WeekDay, -1 );
EndWeek
Elliot Wave.afl
X=BarIndex();
p=Param("p",5,5,30,5);
z=Zig(C,p);Plot(C,"C",1,64);
CONDP=PeakBars(C,P)==0;SP=Cum(CONDP);
EP1=ValueWhen(CONDP,C,1);TP1=ValueWhen(CONDP,X,1);
EP2=ValueWhen(CONDP,C,2);TP2=ValueWhen(CONDP,X,2);
EP3=ValueWhen(CONDP,C,3);TP3=ValueWhen(CONDP,X,3);
EP4=ValueWh
I don't think you can mix plot styles inline, try ...
Cond1 = StochD(7) > 70;
Cond2 = StochD(7) < 30;
Color = IIf(Cond1 ==1,5,IIf(Cond2 ==1,4,colorDefault));
Plot(Close,"Close",1, 4);
Plot(Close,"",Color,styleCloud );
-Original Message-
From: amibroker@yahoogroups.com [mailto:[EMAIL P
Do you think that AGet provides good EW analysis? In any case, to answer your
question you would have to program what you want.
Bill
- Original Message -
From: "mariancostin22" <[EMAIL PROTECTED]>
To:
Sent: Thursday, March 06, 2008 4:30 PM
Subject: [amibroker] Elliott waves
> Hi, I
--- In amibroker@yahoogroups.com, inv learn <[EMAIL PROTECTED]> wrote:
> function importquotes()
> {
> filename = "C:\\myquotes\\quotes.csv";
> AmiBroker = new ActiveXObject("Broker.Application" );
>
> AmiBroker.Import( 0, filename, "new1.format" );
> AmiBroker.RefreshAll();
Hello Sandeep,
You can find AmiBroker software on www.amibroker.com
Data is available Free from Yahoo and also a yahoo group called BSE-NSE2005
Cheers
Prashanth
- Original Message -
From: "aron_aran" <[EMAIL PROTECTED]>
To:
Sent: Thursday, March 06, 2008 7:24 PM
Subject: [amibroker]
hello everyone,
i have written a script to import quotes into amibroker, but the quotes don't
appear in ami and I dont get any error messages either. is there somethig i am
doing wrong, or is it that this method cannot be used anymore?
references : http://www.amibroker.com/guide/objects.html
Thanks Mr. Janeczko,
I will try both formulas and report to you the results. I hv noticed that you
hv been verey helpfull to list members. God bless you.
Regards,
Kethek
- Original Message
From: Tomasz Janeczko <[EMAIL PROTECTED]>
To: amibroker@yahoogroups.com
Sent: Friday, March 7, 200
Thanks Jerry and Steve,
You both were right that the problem was on the data. I found that DJI data
values on 23/02 was zero. When I deleted the data, everything was back to
normal. Thanks again.
Rgds,
Kethek
- Original Message
From: Jerry Gress <[EMAIL PROTECTED]>
To: amibroker@yahoo
//P_WeeklyHL
// Day of week numerical descriptor is from 0 == Sunday to 6 ==
Saturday
// Indentifies which day had the low and the high for the week
// Export to Excel for counting
// Note Excel has an upper limit of approx 65000 rows
Filter = 1;
WeeklyHigh = IIf(DayOfWeek() == 5, HHV(H,5),0);
Code tweaking required.
I have posted a short exploration to report the days when the weekly
high and low occurs (at the UKB).
At the moment I am exporting to a spreadsheet to total the number of
times it happens on a Mon or Tue etc.
If anybody would like to have a go at improving, or completi
Have a look at SetForeign/RestorePriceArrays
http://www.amibroker.com/guide/afl/afl_view.php?id=247
SetForeign("some other symbol name");
Buy = Cross(Close, MA(Close, 30));
Sell = ...;
RestorePriceArrays();
The Buy and Sell will apply to the active symbol (e.g. Apple), but the
O/H/L/C will be v
Hello Anil,
Please refer to the Users Guide (Help Manual).
http://www.amibroker.com/guide/
There is a reference section in the manual:
http://www.amibroker.com/guide/AFL.html
plus a tutorial:
http://www.amibroker.com/guide/h_understandafl.html
If you don't understand anything please ask the
Hello
Is it possible to code a rule that buy or sell any ticker, but
checking Nasdaq100 index, for example?
An example could be if cross close with ma(c,30), but checking the
nasdaq index, I buy Apple..
Thanx
Hi, I am new to Amibroker family, and I am interested in Elliott wave.
There are any indicator similar to those of advancet get? Forgive my
English. Thank you
mariancostin22 wrote:
> Hi, I have a problem with actualizationes of data, I explain, I made an
> account on esignal for real-time data, the only sign that this updating
> is INDU , I entered GBPJPY GBPUSD USDJPY, etc., but does not have data.
> I appeal to esignal, and they have told me that
Applying Steve's answer generically, such that you can test different
periods, you can use the Sum function
http://www.amibroker.com/guide/afl/afl_view.php?name=sum
periods = Optimize("Periods", 2, 2, 5, 1);
Sell = Sum(Close < Ref(Close, -1), periods) == periods;
--- In amibroker@yahoogroups.c
Have a look at the user guide for AddToComposite. It covers this type
of operation.
http://www.amibroker.com/guide/a_addtocomposite.html
Also, Hermen's guide, which goes into much more detail.
http://www.amibroker.net/3rdparty/IntroToAtc.pdf
Mike
--- In amibroker@yahoogroups.com, "Louis Préfo
Before diving in you need to download and become familiar with the Users Guide,
including these sections.
http://www.amibroker.com/guide/environ.html
http://www.amibroker.com/guide/h_dragdrop.html
Then you will learn that CCI() is supplied, how to place built-in indicators on
a chart and how
Thomas,
You only need to run the formula once (use selected symbol option
from AA window on any symbol), then you can reference the symbol from
any _other_ script as applied against any number of symbols.
Or, if you are trying to include the code segment within some other
script applied to mul
If you want to exit after 2 consecutive lower closes, try this...
Sell = Close < ref( Close, -1 ) AND ref( Close, -1 ) < ref( Close, -2 );
Steve
- Original Message -
From: "Steve Carlsson" <[EMAIL PROTECTED]>
To: "Amibroker"
Sent: Tuesday, March 04, 2008 6:05 AM
Subject: [amibroker] Se
To edit price , close down real time if needed, then > Symbol, Quote Editor,
find date of error, correct price, click on another other price somewhere
else to see if price of error will be changed, then save. Then sometimes
this works and sometimes not. Will not work in Real time and sometimes
bett
Hi - It just looks like your data has a DJI low of zero for that day - go to
Symbol > Quote Editor and set it to correct value. I don't know who your data
provider is but if it should go back to zero again you may need to contact them
and have them correct it...
Steve
- Original Message -
Hello,
I think that the previous code may be too much complicated.
For simple C * V chart, with 2 different averages use this:
Period1 = Param("Sum period1", 15, 1, 100 );
Period2 = Param("Sum period2", 25, 1, 100 );
Plot( MA( C * V, Period1 ), "MA(C*V,"+Period1+")", colorRed );
Plot( MA(
Hello,
The following should do the work. It checks the lookback-day change in price
and volume.
If both are positive then "1" is the result, otherwise -1. Then such binary
signal is summed up over period-bars.
Lookback = Param("Change lookback", 1, 1, 100 );
ChgPrice = ROC( C, Lookback );
Ch
hi everyone,
Im sandeep from hyderabad.I have started investing in stock markets
from the past one year,now i want learn about technical analysis and
amibroker.It would be of great help if someone can tell me where can i
find the software and the data that is to be uploaded into the software.
pl
Hi, I have a problem with actualizationes of data, I explain, I made an
account on esignal for real-time data, the only sign that this updating
is INDU , I entered GBPJPY GBPUSD USDJPY, etc., but does not have data.
I appeal to esignal, and they have told me that for his part throughout
this ok
With the EFX GROUP data feed can I build 12 hour and daily charts 1 Bar
at a time from the EFX data feed. I need both 12 hour and daily charts
I would build 1 bar at a time to both be "ask and bid" based charts. Is
this possible to get bid and ask based charts.
I only need one daily bar and on
Hi, I am not an IT guy, so it is rather hard for me to learn AFL and its logic.
I am wondering if someone has written a formula based on (Price * Vol).
Logically, when Price or Vol goes up, the chart (price * vol) goes up too, so
this is a buy or uptrend signals. The reversal would be when pric
Hello all
I have been testing a system with trade delays set to 1 for long short entry
exit in the backtester and keep getting very different results if I
alternatively code settradedealys(1,1,1,1) in the code. The results are
hugely different
Just to clarify, when the settradedelays is used
Hello
Can anyone offer some help please...
I want my trades to exit if the sell condition below is met:
Sell= C < Ref(LLV(C,2),-1);
What it is supposed to do is exit a trade if the closing price is lower for
2 consecutive days...the 2 is a variable I want to test
My other effort at this f
Hi, I am a newbie.
Does anyone have experince like I have? Out of the blue, a black vertical solid
line crossed the price chart on 2/23/08 and price scale changed from 0 to
14,000, so the chart become flattened (please refer to the attachment). But
when I moved back the arrow to the date 2/23/0
hi i just got the new amibroker 5 but the issue is it doesnt have cpl
of indicators as chaikin MFI , also i need another help from anyone
who can code in afl ...i need a indicator where it plots cci(72) for
eod data and cci(14) for weekly charts ...to plot both the cci's on
same graph.
thanx n hi
I use the Percent Bands feature as one of my key metrics in AmiBroker
but would like to set the Width% uniquely for each Symbol. Does anyone
know how to do that?
I belive that appropriate sample is "Example 2. Formatted (table-like) output
sample using low-level gfx functions" in:
http://www.amibroker.com/guide/a_lowlevelgfx.html
Best regards,
Tomasz Janeczko
amibroker.com
- Original Message -
From: Ken Close
To: amibroker@yahoogroups.com
david1000d wrote:
>
> Hi Guys,
> Is there an in-built Fast Stochastic indicator in Amibroker? I've been
> looking but I can only find slow,
> thank you,
> David
>
>
test
Does anyone have any GFX code you would be willing to share that puts up an
organized (like in a grid) Title statement.
Something like:
Results..1 Mon Ago.3 Mon Ago
Port.1.5%..3.2%
Index-8%...-9.2%
as an example.
I have exper
We and the IRS are gonna have mucho fun with this!
d
> -Original Message-
> From: amibroker@yahoogroups.com
> [mailto:[EMAIL PROTECTED] On Behalf Of Phsst
> Sent: Thursday, March 06, 2008 11:43 AM
> To: amibroker@yahoogroups.com
> Subject: [amibroker] OT: IB Furnished Sch-D (Original T
Hi Ton --
A comment on your example of insisting on fast being less than slow in your
example code ---
I understand that that might just have been an example for ease of
understanding.
But when the moving average lengths are fast < slow, the system is trend
following; when fast > slow, the syste
Early in February Interactive Brokers reported that they had a problem
with their Sch-D's and hoped to have them fixed by 02/28/08.
There are no longer any messages about problems with the Sch-D,
HOWEVER the current message related to their final Sch-D states:
"Please note there may be discrepa
Hi Mike,
I am interested in that too. I tried the formula, but it's only an average
of both tickers. I'd like to find a way to create my own index. e.g.
combine 5-10 tickers and adding all their close, high, low, open, volume to
get a super-index for those 5-10 tickers. Is it possible?
Thanks
David, you apparently want to reconstruct the stochastic your own way.
Here is the formula for a stochastic ... replace the components as you wish:
Stoc = ((Issue_C - LLV(Issue_L,Period)) /
(HHV(Issue_H,Period) - LLV(Issue_L,Period))) * 100;
%K = MA(Stoc,3);
%D = MA(%K,3);
Hi,
I thought that the SetForeign function only allowed me to replace
the ticker data with that of a different symbol, as opposed to
replacing it with a set variable, an I wrong??
kind regards, David.
--- In amibroker@yahoogroups.com, "Tomasz Janeczko" <[EMAIL PROTECTED]>
wrote:
>
> SetForeig
SetForeign function.
Best regards,
Tomasz Janeczko
amibroker.com
- Original Message -
From: "david1000d" <[EMAIL PROTECTED]>
To:
Sent: Thursday, March 06, 2008 3:36 PM
Subject: [amibroker] Replace O H L in Fast Stochastic
> Hi Guys,
> I need to replace the default O,H,L values in the
Hi Guys,
I need to replace the default O,H,L values in the Fast Stochastic
with my own variables. I can't see where I can do this, any ideas??
thank you in advance for your help
Thank you Tomasz
--- In amibroker@yahoogroups.com, "Tomasz Janeczko" <[EMAIL PROTECTED]>
wrote:
>
> Fast Stochastic is the same as slow stochastic with averaging
period (2nd parameter - ksmooth) equal to 1 (no smoothing).
>
> Best regards,
> Tomasz Janeczko
> amibroker.com
> - Original Mes
Mike,
thanks for your reply. In fact, I had tried the ATC solution before. The
problem: When used as an indicator (as mentioned in my previous post)
the chart looks as expected. However, with ATC the Open, High, Low and
Close of both time series are added up. Thus, the logic of my formulas
tha
Hi
Can a similar approach be adopted to modify the style of the plot??
For instance
Cond1=7 bar stoch >70;
Cond1=7 bar stoch < 30;
if condition1 or condition2 is true the style should be thickline and dots
and if not, then just thick line.
Thanks
Rakesh
On Thu, Mar 6, 2008 at 12:19 PM,
53 matches
Mail list logo