: Mike
Subject: [amibroker] Re: Please help in coding
To: amibroker@yahoogroups.com
Date: Friday, June 18, 2010, 3:10 PM
The link I pointed to shows how to handle the title. I don't know if there is a
way to make the Y-Axis label be a different color than the Plot. If there
isn't
The link I pointed to shows how to handle the title. I don't know if there is a
way to make the Y-Axis label be a different color than the Plot. If there
isn't, that can be easily worked around by not drawing a label for the original
plot and then using a second plot that includes a label but no
Dear Mike,
Thanks for your immediate reply.
I may not have properly described my need which I will try to do now.
I want my colordots to continue to be in either green or red color following
the changes in f_sar, but I want my styleTitle and styleLabel informations to
be in pink color.
After
See Title section
http://www.amibroker.com/guide/h_indbuilder2.html
Mike
--- In amibroker@yahoogroups.com, "Vinay Gakkhar." wrote:
>
> Dear members,
>
> colordots = IIf(f_sar < L,colorGreen,IIf(f_sar > H,colorRed,colorWhite));
> Plot(f_sar,"\nCyCl1", colordots,styleDots|styleNoLine );
>
> I wa
Awesome, I was able to do what I wanted -- thank you guys !
--- In amibroker@yahoogroups.com, "ricko8294_98" wrote:
>
> wow
> Quite complex
> Try this.
>
> I've set the 50 as a parameter, and plotted a vertical green dashed line at
> the 50th line back. It also has a green line running fro
wow
Quite complex
Try this.
I've set the 50 as a parameter, and plotted a vertical green dashed line at the
50th line back. It also has a green line running from its high all the way to
the right.
By the way, the Howlong function is not my own. Found it on some message here
and thought it
Rick, thank you so much for the code. I'm always impressed by people's ability
to code in AB... I'm pretty good with coding but some aspects of it just go
above my head :-) honestly... I understood most of it but the HowLong function
I just can't get it into my hard head.
What I'm looking to d
Rick,
I was looking for such a code. A cornerstone for my need.
Thanks for sharing.
Best regards
Le 12/02/2010 04:56, ricko8294_98 a écrit :
>
>
>
> try this...
>
> function Howlong( indicator, Length )
> // a length of 0 will place a dot at the last bar
> {
>
> Start = LastValue( Cum( 1 ) -
try this...
function Howlong( indicator, Length )
// a length of 0 will place a dot at the last bar
{
Start = LastValue( Cum( 1 ) - Length ) == Cum( 1 );
Start2 = Cum( Start ) == 1;
x = ValueWhen( Start2 , indicator, 1 ) ;
return x;
}
LBPeriod = Param("Lookback Period",50,5,20
Hi Patrick, Thank you very much for your generosity I tried for ages to write
that code now I understand how it is done. You saved me from giving up!
Cheers
Raine
--- In amibroker@yahoogroups.com, "NW Trader" wrote:
>
> Hi Raine,
>
> This is not difficult except for your definition of one
I think you are talking about "Industry Groups" rather than Sector, correct me
if I'm wrong. Here's the code to make a Composite of the Industries in the
Industry Group. Hope it helps.
//Industry Group Composite
sym = "~" + IndustryID(1);
AddToComposite( L, sym,"L",1+2+8+16);
AddToComposite( O
everything
> you do in order to speed up the resolution of
> the issue. Without knowledge of cruicial changes to settings it takes way
> more time to do guessing work
> of what user did.
>
> Best regards,
> Tomasz Janeczko
> amibroker.com
> ----- Original Message -
user did.
Best regards,
Tomasz Janeczko
amibroker.com
- Original Message -
From: "woodshedder_blogspot"
To:
Sent: Sunday, August 30, 2009 11:54 PM
Subject: [amibroker] Re: Please Help, AmiBroker Crashing
> Tomasz, I sent this message to the User's List over 9 days ago. W
I have no idea why this message just posted. Look at the time stamp of the
original message. It was sent in on Aug 22nd. Sorry for any confustion.
--- In amibroker@yahoogroups.com, "woodshedder_blogspot"
wrote:
>
> I'm running Vista-32, 3gb RAM, on a Dell inspiron 1525. I use Norgate
> Premium
this issue was resolved
> via support channel weeks ago, yet AmiBroker is target of some unjustified
> bashing again.
>
> Best regards,
> Tomasz Janeczko
> amibroker.com
> ----- Original Message -
> From: "etoketrader"
> To:
> Sent: Sunday, Augu
To:
Sent: Sunday, August 30, 2009 6:28 PM
Subject: [amibroker] Re: Please Help, AmiBroker Crashing
> Hi Woodshedder,
>
> are you the woodshedder from ibankcoin? I follow your blog :)
>
> I had lots of crashing issues until I (or rather, Tomasz told me to) set the
> in
Hi Woodshedder,
are you the woodshedder from ibankcoin? I follow your blog :)
I had lots of crashing issues until I (or rather, Tomasz told me to) set the
in-memorey cache size (max. symbols) to 11 and max. megabytes to around 850 (in
preferences). While it means that AB will run generally slow
I also just found TimeFrameGetPrice(), which allows me to do what I was trying
to use all the time frame stuff for. Hope it works!
--- In amibroker@yahoogroups.com, Graham wrote:
>
> The expandlast higher timeframe requires the next timeframe period to
> have started to produce a result at the l
See if this helps you:
http://amibroker.com/guide/h_pyramid.html
Mike
--- In amibroker@yahoogroups.com, "KBGlenn" wrote:
>
> Please, please help with this...tks in advance
>
> --- In amibroker@yahoogroups.com, "KBGlenn" wrote:
> >
> > I've read the user's manual and can't figure this out...pl
Please, please help with this...tks in advance
--- In amibroker@yahoogroups.com, "KBGlenn" wrote:
>
> I've read the user's manual and can't figure this out...please help
> with code.
>
> Example of what I want to do...
>
> If C > MA(C,20) Buy with position size 100%
> If C < MA(C,20) Scale down
You can set a parameter something like this:
// the following uses 15 minute increments, the 1500
timeopen = Param("Open time (hhmmss)", 93000, 0, 235959,
1500); // start trading at 9:30 AM
timeclose = Param("Close time (hhmmss)", 10, 0, 235959,
1500); // end trading at 10:00 AM
Then
thanks a million Jony, that is exactly what i am looking for.
best regards
cheers
Tony Grimes writes:
> Are you looking for something like this:
>
> WatchlistNumber=0;
> function CountTickers( Listnum )
> {
> list = GetCategorySymbols( categoryWatchlist , listnum ) ;
> Count=0;
> for( i =
Are you looking for something like this:
WatchlistNumber=0;
function CountTickers( Listnum )
{
list = GetCategorySymbols( categoryWatchlist , listnum ) ;
Count=0;
for( i = 0; ( sym = StrExtract( list, i ) ) != ""; i++ )
{
SetForeign(sym);
symC = C;
symMA = MA(C,20);
Count = Count +
Thanks Mike, i will check that and try to solve it
can you please give me an outline to do so.
thanks
cheers
Mike writes:
> Hi,
>
> The AddToComposites function is intended for exactly this scenario.
>
> http://www.amibroker.com/guide/a_addtocomposite.html
>
> Note that the documentation is
Thanks Grant
But i need to use the number of shares above their MA again in
the same AFL. what you did is very clever for just knowing but i
can't store that number in a variable to use in again.
i hope i can find a way of doing so.
thanks again.
cheers
Grant Noble writes:
> This code will let y
Hi,
The AddToComposites function is intended for exactly this scenario.
http://www.amibroker.com/guide/a_addtocomposite.html
Note that the documentation is out of date here. You should use the
Plot command if you want to show the results on a chart.
Mike
--- In amibroker@yahoogroups.com, "Wa
Thnaks for the reply.
Regards
Amirul
- Original Message -
From: ChrisB
To: amibroker@yahoogroups.com
Sent: Monday, June 09, 2008 5:24 PM
Subject: Re: [amibroker] Re: Please help with start of week code.
Amirul
a. I don't do stocks so I can't comment on D
- Original Message -
> *From:* ChrisB <mailto:[EMAIL PROTECTED]>
> *To:* [EMAIL PROTECTED] ps.com <mailto:amibroker@yahoogroups.com>
> *Sent:* Thursday, June 05, 2008 10:23 PM
> *Subject:* Re: [amibroker] Re: Please help with start of week code.
>
>
y/sell signals and keep just one.
Thanks
Amirul
- Original Message -
From: ChrisB
To: amibroker@yahoogroups.com
Sent: Thursday, June 05, 2008 10:23 PM
Subject: Re: [amibroker] Re: Please help with start of week code.
AH
Have a bit of play with this and see if
Thanks for that.
Looking at the buy sell variables added below ca yopu see why it is
triggering multiple buys on the same day? I only want it to do one buy or
sell (one closes other order) for the week.
cheers
AH
On Fri, Jun 6, 2008 at 12:56 AM, ChrisB <[EMAIL PROTECTED]> wrote:
> AH
>
>
AH
off to work so I have to be quick here
"Oh and how does the London Start", 07, 06, 13, 01);
value work please?"
This is for the TimeNum() function in AFL.
07 is 7AM london time.
I have placed this in a parameter line of code because where I live
London open (which is c
Chris thank you very much!
I have played with this (I am new to this so please excuse my basic
approach)
and added a buy/sell but get multiple trades on a monday wheni only want
one.
Any idea why? Oh and how does the London Start", 07, 06, 13,
01); value work please?
thanks
AH
Have a bit of play with this and see if this will get you started...
// code here**
// alta hob
// Assuming of course you have intraday data...
// it helps to install the deDateTime.dll from
http://www.amibroker.org/3rdparty/
// London Opening time and Open Value
LondonStart = Param(
Is there anyone else who knows how to specify 7:00am as part of the
MondayOpen criteria?
MondayOpen = ValueWhen(DayOfWeek() == 1, Open);
BuyPrice = MondayOpen * 1.5;
Buy = Cross(High, BuyPrice);
thanks
AH
On Tue, Jun 3, 2008 at 6:33 PM, alta hob <[EMAIL PROTECTED]> wrote:
> Hi Mike
>
>
> many
Hi Mike
many thanks.
The 50 points means for example on GBPUSD it would be 50 pips.
So would this be correct?
BuyPrice = MondayOpen + .0050;
The time of the "open" is important because I want my open to be when the
big money comes into the market. The London open time
is why I specified Mond
Hi,
Would something like the following be enough?
MondayOpen = ValueWhen(DayOfWeek() == 1, Open);
BuyPrice = MondayOpen * 1.5;
Buy = Cross(High, BuyPrice);
...
I'm not clear on what you mean by "50 points". I have assumed that
you meant a 50% move. You can adjust the following to reflect
whate
Set the trading hours, this is intraday system.
For overnight, remove boolean condition Markethours and Marketclose in
buy and sell.
Then modify short = sell and cover = buy
//NonLinear Ehlers Filter
TransmitOrder = False; // Set to True to really trade!
//TimeFrameSet( in1Minute ); // switch to
Original Message -
> From: "iinself" <[EMAIL PROTECTED]>
> To:
> Sent: Sunday, February 03, 2008 2:04 PM
> Subject: [amibroker] Re: Please help: How do I use if to compare
current and previous MA?
>
>
> > Thanks for your suggestion Bill, but it does not
modifying your code for any bar:
cond1 = iif(selectedvalue(this >= prev, 1, 0);
if(cond1 == 1) printf("hai");
Bill
- Original Message -
From: "iinself" <[EMAIL PROTECTED]>
To:
Sent: Sunday, February 03, 2008 2:04 PM
Subject: [amibroker] Re: Please hel
if (ref(yourarray,-1) > yourarray)
{
your code
}
The above will only handle the last bar.
- Original Message -
From: "iinself" <[EMAIL PROTECTED]>
To:
Sent: Sunday, February 03, 2008 11:04 AM
Subject: [amibroker] Re: Please help: How do I use if to compare curre
Thanks for your suggestion Bill, but it does not seem to solve my
problem. All I want to do is compare the MA for the current bar and
the previous bar and then do something if previous MA is greater than
current MA. Like print "hai" as below - iif returns an array which I
am not able to pass to
Hello,
I try it as it showing below, But it work fine with text, I NEED TO USE
IT WITH COLORS.
WH = TimeFrameGetPrice( "H", inWeekly, -1 ) ;
WL = TimeFrameGetPrice( "L", inWeekly, -1 ) ;
Wcolor = IIf (C > WH, colorGreen, colorRed );
+"\n"+" LWH : " + WH + EncodeColor( colorBlue )+ WriteIf(C >
It give me the result of one stock and then it craps out and gives me
this error message:
{ sine = sin( (Cum(1)-pkOffset+Periods/4)/Periods * 6.283185 ); }
if ( LastValue( ValueWhen(BCpk OR BCtr,BCtr,1) ) ) //RECENT
ANCHOR POINT IS A TROUGH
{ sine = sin( (Cum(1)-trOffset+Periods*3/4)
] Re: Please Help
I wonder why messages that I sent 5 days ago are just appearing now? Where
the heck have they been hiding?
- Original Message -
From: "cstrader" <[EMAIL PROTECTED]>
To:
Sent: Friday, September 14, 2007 1:15 PM
Subject: Re: [amibroker]
Our great partner Yahoo can perform miracle ... and goofs
- Original Message -
From: "cstrader" <[EMAIL PROTECTED]>
To:
Sent: Wednesday, September 19, 2007 7:27 PM
Subject: Re: [amibroker] Re: Please Help
>I wonder why messages that I sent 5 days ago are just ap
I wonder why messages that I sent 5 days ago are just appearing now? Where
the heck have they been hiding?
- Original Message -
From: "cstrader" <[EMAIL PROTECTED]>
To:
Sent: Friday, September 14, 2007 1:15 PM
Subject: Re: [amibroker] Re: Please Help
> Make it
Make it easier on yourself -- do it this way!
ColorTouse = IIf( TBuy, EntryColor, DownColor );
Plot(Close, "", ColorToUse, styleBar );
- Original Message -
From: "Mohammed" <[EMAIL PROTECTED]>
To:
Sent: Friday, September 14, 2007 12:52 PM
Subject: [amibrok
color in plot().
Plot(c, "", barcolor, stylebar).
Bill
- Original Message -
From: "Mohammed" <[EMAIL PROTECTED]>
To:
Sent: Friday, September 14, 2007 12:48 PM
Subject: [amibroker] Re: Please Help
>
> Hi Bill;
>
> Thank you for your reply,
>
&
Hi cstrader;
Thank you very much, But this plot Price in line style, I need it to
be in bar style.
Regards
--- In amibroker@yahoogroups.com, "cstrader" <[EMAIL PROTECTED]> wrote:
>
> Try this:
> Plot( Close, "", IIf( LongSetup, IIf( TBuy, EntryColor,
DownColor ) , styleBar | ParamStyle ("Styl
Hi Bill;
Thank you for your reply,
I did it in the graphic way.
Graph0 = Close;
Graph0Style = 128;
barcolor = IIf( LongSetup, 29, IIf( SellSetup, 32, IIf(
TBuy,5,0 )));
Graph0BarColor = ValueWhen( barcolor != 0, barcolor );
I would like to do it in the plot way,
Plot( Close, "", IIf(Lo
GP,
For me buy means ema10 goes above ema200 and vice versa.
eventB=Hold(Cross(EMA(C,10),EMA(C,200)),13);
eventS=Hold(Cross(EMA(C,200),EMA(C,10)),13);
Since, I may miss the exact bar when cross happens, I wanted to check
for the last 13 bars.
I would like to know when this cross has happend, i
What is "sell mode"?
And by "buy cross", do you mean the actual cross bar or any of the 13
held bars?
GP
--- In amibroker@yahoogroups.com, "K. Karunakaran" <[EMAIL PROTECTED]> wrote:
>
> Number of bars it was in sell mode just before the buy cross and vice
> versa.
>
> --- In amibroker@yahoog
Number of bars it was in sell mode just before the buy cross and vice
versa.
--- In amibroker@yahoogroups.com, "gp_sydney" <[EMAIL PROTECTED]>
wrote:
>
> > number Of bars it was down, just before the buy cross
>
> What does this mean? What's "it", and what do you mean by "down"?
>
> Regards,
>
> number Of bars it was down, just before the buy cross
What does this mean? What's "it", and what do you mean by "down"?
Regards,
GP
--- In amibroker@yahoogroups.com, "K. Karunakaran" <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> eventB=Hold(Cross(EMA(C,10),EMA(C,200)),13);
> eventS=Hold(Cross(EMA(C
to answer 1st question, yes I will send the order as soon as my setup
is triggered.
and I didn't quite get your 2nd question.
Eric
--- In amibroker@yahoogroups.com, veysel serbes <[EMAIL PROTECTED]> wrote:
>
>
> during the autotrade with IB I use moneymonagment
> stoploss and profittarget orders
hi wongloktim,
try this now..
_SECTION_BEGIN( "Z Trailing Stop");
SetChartOptions( 0,chartShowArrows|chartShowDates );
_N(Title = FullName()+StrFormat(" {{NAME}} - {{INTERVAL}} {{DATE}}
Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C,
SelectedValue( ROC( C, 1 ) ) ));
Plot( C,"Pri
It Return nothing
SECTION_BEGIN("Z Trailing Stop");
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = FullName()+StrFormat(" {{NAME}} - {{INTERVAL}} {{DATE}}
Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C,
SelectedValue( ROC( C, 1 ) ) ));
Plot( C,"Price",colorBlack
Thank you very much for all help
Use EXREM() function.
--- In amibroker@yahoogroups.com, "Mohammed" <[EMAIL PROTECTED]> wrote:
>
>
> Hi All,
>
> Buy = MDI(14) > 30 AND MDI(14) > PDI(14) AND ADX(14) < Ref( ADX(14), -1
> );
> Sell = 0;
>
> PlotShapes( Buy * shapeUpArrow + Sell * shapeDownArrow, IIf( Buy,
> colorGreen, colorRed
I used it as an AFL
Filter =1;
AB = CreateObject("Broker.Application");
st = AB.Stocks(Name());
st.DataSource = 0;
Buy = 0;
--- In amibroker@yahoogroups.com, Graham <[EMAIL PROTECTED]> wrote:
>
> How did you get it to work?
>
>
>
> On 28/12/06, gunovanengel <[EMAIL PROTECTED]> wrote:
> >
> >
How did you get it to work?
On 28/12/06, gunovanengel <[EMAIL PROTECTED]> wrote:
problem solved
--- In amibroker@yahoogroups.com, "gunovanengel" <[EMAIL PROTECTED]>
wrote:
>
>
> Hi Tomasz,
>
> I still get an error
>
> AB = new ActiveXObject("Broker.Application");
> sts = AB.Stocks();
> Qty =
problem solved
--- In amibroker@yahoogroups.com, "gunovanengel" <[EMAIL PROTECTED]>
wrote:
>
>
> Hi Tomasz,
>
> I still get an error
>
> AB = new ActiveXObject("Broker.Application");
> sts = AB.Stocks();
> Qty = sts.Count;
> for( i = Qty - 1; i >= 0; i = i - 1 )
> {
> sts.DataSource = 0;
>
Hi Tomasz,
I still get an error
AB = new ActiveXObject("Broker.Application");
sts = AB.Stocks();
Qty = sts.Count;
for( i = Qty - 1; i >= 0; i = i - 1 )
{
sts.DataSource = 0;
}
--- In amibroker@yahoogroups.com, "Tomasz Janeczko" <[EMAIL PROTECTED]>
wrote:
>
> In external JS file use "new A
Terry,
Thanks very much for that comprehensive suggestion.
I will experiment with you ideas.
Will advise
Gosu283
Gary
--- In amibroker@yahoogroups.com, "Terry" <[EMAIL PROTECTED]> wrote:
>
> Gosub283,
>
> Amibroker is an array processing system. This means the ENTIRE ARRAY is
> determi
Subject: [amibroker] Re: Please help with
ApplyStop() function (TJ)<-- TJ
ref: HoldMinBarsTJ,I upgraded to 4.79 BETA
and tried your code snippet.The system still allows sell signals before
the HoldMinBars value isreached.Below is a symple system I tested with
the new funct
ref: HoldMinBars
TJ,
I upgraded to 4.79 BETA and tried your code snippet.
The system still allows sell signals before the HoldMinBars value is
reached.
Below is a symple system I tested with the new function.
"HoldMinBars" does not prevent SELL signals from occuring
within the specified HoldPerio
4.79 is a Beta issue and available from members area on AB website
if you wait short while I believe 4.80 will be released soon from what
TJ has said recently
--
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://e-wire.net.au/~eb_kavan/ab_
TJ,
Thanks for the new function
However when I tried it, I get the following syntax error:
Error 37: Unsupported field in SetOptions
I am using AB version 4.70.0
I can not find version 4.79.0 that you refer to
in your response below. (Looked in download section of AB website)
Is this bein
groups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Graham
Sent: Thursday, April 06, 2006 16:31
To: amibroker@yahoogroups.com
Subject: Re: [amibroker] Re: Please help with ApplyStop() function (TJ)
you can try using exrempsan to stop additional buy signals after the
first.
I thought there was also a new f
you can try using exrempsan to stop additional buy signals after the first.
I thought there was also a new function in the betas, but that is another story
--
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://e-wire.net.au/~eb_kavan/ab_wri
Terry,
Thanks for your suggestion.
You are right,the multiple BUY conditions that my system
generates are what's messing up my sell signals.
Normally, I us ExRem(Sell,Buy) and Equity() to make sure the signals
display properly.
I can't change the multiple buy signals, therefore
can you elabo
Hello,
See message 94145.
a=z
PS It could be because IB data feed gives volumes in 100s so look
carefully at your charts for magnitude discrepancies. Someday perhaps
the IB plugin will allow one to sync volume data with other sources
such as eSignal, IQFeed, etc. (hint, hint)
-
72 matches
Mail list logo