Re: [amibroker] Slow of the close of ^DJI

2010-05-03 Thread Inquisitive Voyager
NumToStr(ROC(*Close*,1,1.1)); On Mon, May 3, 2010 at 7:54 PM, WaldemarRooijer wrote: > > > Dear members, > > I am learning the AFL language for a few weeks and one issue I still could > not figure out yet is how can I get the 2 day slope (ore maybe just %change) > of ^DJI close. > > Any help is

Re: [amibroker] Importing additional data in Ami

2010-05-04 Thread Inquisitive Voyager
(1)First do u need that column? If no skip that column else read on- (2)u did not mention whether it is cash or future data? if cash data u can get the aforesaid in open interest column provided your exchange does not give something like total deliverable shares or allied in this head. On Tue, Ma

Re: [amibroker] To display last open signal

2010-05-05 Thread Inquisitive Voyager
Select the option- "n last quotations" and enter the value of n as 1. On Tue, May 4, 2010 at 8:30 PM, kgirish_in wrote: > > > Hi all, > > This is my first post on this forum. I'm relatively newbie to Amibroker. > However, I have managed to code a few AFL's successfully and use them > for my tradi

Re: [amibroker] Re: Importing additional data in Ami

2010-05-05 Thread Inquisitive Voyager
average that and name that as my close > price and make an ema based moving average of that value dataAny help > regarding the way to use the value data? > > Regrads, > > --- In amibroker@yahoogroups.com , > Inquisitive Voyager wrote: > > > > (1)First do u

Re: [amibroker] How to average the last 20 days Ranges

2010-05-16 Thread Inquisitive Voyager
_SECTION_BEGIN("avg_range"); bi=BarIndex(); Avgrange=Sum((*H*-*L*),20); Avgrange/=20; Plot( IIf(bi wrote: > > > Hi > I want to create an average of the last 20 bars Hi-Lo ranges - could some > kind soul please help? > Thanks > > >

Re: [amibroker] Re: How to average the last 20 days Ranges

2010-05-17 Thread Inquisitive Voyager
replace a line as: IIf(bi wrote: > > > What you're describing is simply a 20 period moving average of the array > resulting from the calculation: High - Low. > > http://www.amibroker.com/guide/afl/afl_view.php?id=94 > > Mike > > > --- In amibroker@yahoogroups.com , > "possum51au" wrote: > > > >

[amibroker] restricted view of the chart

2010-05-17 Thread Inquisitive Voyager
Shall it be possible, that a AFL Accepts 2 dates as parameter,and plots the chart with these dates as first bar and last bar respectively. ie chart should show only bars of dates between these 2 dates(including parameter dates). regards

Re: [amibroker] restricted view of the chart

2010-05-17 Thread Inquisitive Voyager
Janeczko > amibroker.com > > > On 2010-05-17 17:09, Inquisitive Voyager wrote: > > Shall it be possible, that a AFL Accepts 2 dates as parameter,and plots the > chart with these dates as first bar and last bar respectively. > > ie chart should show only bars of dates between these 2 dates(including > parameter dates). > > regards > > > >

Re: [amibroker] 64-bit IQFeed / Interactive Brokers plugins

2010-05-20 Thread Inquisitive Voyager
adding my bit- Even if physical ram is 4 gb, vista 32 bit version can use only 3.1 -3.2 GB of RAM only. System shall show 4 GB but but only 3.2 GB of RAM shall be utilized. On Fri, May 21, 2010 at 3:42 AM, Tomasz Janeczko wrote: > > > Hello, > > I would like to learn how many of you are already u

Re: [amibroker] Request help simple back testing

2010-05-20 Thread Inquisitive Voyager
There is nothing wrong with the code. filter generates less signals. select the range as all quotations it shall give u more signals. click on report to see the same. On Thu, May 20, 2010 at 10:54 PM, ford7k wrote: > > > Hi afl experts > > Please help me get to my goal. > I want to back test a s

[amibroker] is there any refined way?

2010-05-22 Thread Inquisitive Voyager
For EOD data, I want to calculate average of pivots(H+L+C)/3 or range (H-L)per year for each ticker. SO for I used raw coding- foe ex. a=0;//07-08 b=0;//08-09 * for*(i=0;i<249;i++) {a+=(*H*[i]-*L*[i]); } a/=248; * for*(j=249;j<494;j++) { b+=*H*[j]-*L*[j]; } b/=245; but this fails,f

Re: [amibroker] Digest Number 9285

2010-05-24 Thread Inquisitive Voyager
does this complywith your logic? _SECTION_BEGIN("hlp_pablo"); z1=MA(*H*,6); z2=MA(*L*,6); * Buy*=Cross(*C*,Ref(z1,-1)); * Sell*=Cross(Ref(z2,-1),*C*); PlotShapes(*Buy***shapeUpArrow*+*Sell***shapeDownArrow*,IIf(*Buy*,* colorGreen*,IIf(*Sell*,*colorRed*,*Null*))); _SECTION_END(); On Mon, M

Re: [amibroker] Indicator design (no dots)

2010-05-25 Thread Inquisitive Voyager
parameter->axes & grid->show middle lines (make it no). On Tue, May 25, 2010 at 6:13 PM, engineering_returns < trade2live4e...@googlemail.com> wrote: > > > Hello AB Community, > > i want to create my own indicator (design). > > Is there a way of getting rid of the horizontal dots at all and/or sp

Re: [amibroker] two symbols two panes at once

2010-05-26 Thread Inquisitive Voyager
(1)file->new->default chart (2)choose the different symbol (3)window->tile horizontally On Wed, May 26, 2010 at 5:53 PM, MarkK wrote: > > > *I need some help- sure this is easy to do however never did it and > cannot find where in the manual it is* > > * * > > *Want to put up two panes at the s

[amibroker] how to create variables automatically as required

2010-05-31 Thread Inquisitive Voyager
(1)requirement: I want to create dynamic variables for each tickers according to data it possess. (2)details:suppose there is EOD data from 2000 to 2010.I have to calculate suppose average pivot(H+L+C)/3 etc per year. Every ticker doesn't have same data bars.some were listed in 2000,some in 2004,

Re: [amibroker] Re: how to create variables automatically as required

2010-05-31 Thread Inquisitive Voyager
Not clear on what you want to do. > > > --- In amibroker@yahoogroups.com , > Inquisitive Voyager wrote: > > > > (1)requirement: I want to create dynamic variables for each tickers > > according to data it possess. > > > > (2)details:suppose there is EOD da

Re: [amibroker] Re: how to create variables automatically as required

2010-05-31 Thread Inquisitive Voyager
3 for each year for different stocks? > Maybe just use TimeFrameSet(inYearly) . Not clear on what you want to do. > > > --- In amibroker@yahoogroups.com , > Inquisitive Voyager wrote: > > > > (1)requirement: I want to create dynamic variables for each tickers > > acco

Re: [amibroker] Re: how to create variables automatically as required

2010-05-31 Thread Inquisitive Voyager
Thanks mike, any solution for 5.1 users except upgrade? On Tue, Jun 1, 2010 at 10:17 AM, Mike wrote: > > > As of 5.20 it does. > http://www.amibroker.com/guide/afl/afl_view.php?id=242 > > Mike > > > --- In amibroker@yahoogroups.com , > Inquisitive Voyager wrote:

Re: [amibroker] Re: how to create variables automatically as required

2010-06-01 Thread Inquisitive Voyager
purpose. On Tue, Jun 1, 2010 at 11:02 AM, Mike wrote: > > > The same link suggests that you can use multiples of the existing > constants, e.g 12 * inMonthly. Give that a try. > > > Mike > > --- In amibroker@yahoogroups.com , > Inquisitive Voyager wrote: > > &

Re: [amibroker] Loop for MA calculation

2010-06-01 Thread Inquisitive Voyager
_Sum=0; LEN =10; mm=0; * for* (i= LEN; i<*BarCount*; i++) { //_Sum = 0; * for* (j = i-LEN; J==i-1; J++) { _Sum= _Sum+*C*[j]; } mm[i] = _Sum/LEN; } ps:(1)Just removed the errors. (2)express your logic distinctly so that it can be formulated. On Tue, Jun 1, 2010 at 10:45 PM, ang_60 wrote

Re: [amibroker] How to sell at +5 or -5

2010-06-11 Thread Inquisitive Voyager
Sell=(*Buy*+5) *OR* (*Buy*-5); ps: it is better touse % than points. On Fri, Jun 11, 2010 at 11:58 AM, Prabu wrote: > > > Hi, > > I'm new to amibroker. > Please help me with this.. > > I'm testing it with a simple Ema crossover system. It buy on ema-crossover > and Sell if price goes above or be

Re: [amibroker] How to sell at +5 or -5

2010-06-11 Thread Inquisitive Voyager
(C, 14); > e2 = EMA(C, 5); > > Buy = Cross(e2, e1); > > > But it is buying and selling on the same bar.. > > > Prabu > > > On Fri, Jun 11, 2010 at 12:36 PM, Inquisitive Voyager < > hedonist2...@gmail.com> wrote: > >> >> >> Sell=( &

Re: [amibroker] How to sell at +5 or -5

2010-06-11 Thread Inquisitive Voyager
n tried Sell = (Buy+30) OR (Buy-30); no use; > > > On Fri, Jun 11, 2010 at 1:11 PM, Inquisitive Voyager < > hedonist2...@gmail.com> wrote: > >> >> >> (1) as 5 is small factor. This happens- >> replace it with- >> Sell = (Buy*1.1) OR (Buy*.9); >&g

Re: [amibroker] Investigation Individual months

2010-06-20 Thread Inquisitive Voyager
try this in commentary- a=LastValue(Month())-2; b=Month()!=Ref(Month(),-1); bi=BarIndex(); d=LastValue(ValueWhen(Month()==a *AND* b,bi,1)); d=*BarCount*-d; e=LastValue(HHV(*C*,d)); WriteVal(e); On Mon, Jun 21, 2010 at 4:49 AM, Steve_Almond wrote: > > > I want to find the highest closing p

Re: [amibroker] Investigation Individual months

2010-06-21 Thread Inquisitive Voyager
or overlay this on price chart- a=LastValue(Month())-2; b=Month()!=Ref(Month(),-1); bi=BarIndex(); d=LastValue(ValueWhen(Month()==a *AND* b,bi,1)); e=*BarCount*-d; f=LastValue(HHV(*H*,e)); PlotText("2 month high"+f,d,f,*colorRed*); On Mon, Jun 21, 2010 at 12:08 PM, Inquisiti

Re: [amibroker] Re: Investigation Individual months

2010-06-21 Thread Inquisitive Voyager
lf properly. I wasn't looking for the "2 > month high", I was looking for the monthly high for each of the past two > months! > > In other words, I want to do an exploration for a stock and find its > highest value in June, its highest value in May etc. > > Can you h

Re: [amibroker] Re: Investigation Individual months

2010-06-21 Thread Inquisitive Voyager
=*BarCount*-f; i=LastValue(HHV(*H*,e)) ; j= LastValue(HHV(*H*,g)); * Filter*=i *OR* j; AddColumn(*C*,"close",1.2); AddColumn(i,"1 month high",1.1); AddColumn(j,"2 month high",1.1); On Mon, Jun 21, 2010 at 10:03 PM, Inquisitive Voyager < hedonist2...

Re: [amibroker] Add labels without study!

2010-06-30 Thread Inquisitive Voyager
_SECTION_BEGIN("Price"); SetChartOptions(0,*chartShowArrows*|*chartShowDates*); _N(*Title* = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", *O*, *H*, *L*, *C*, SelectedValue( ROC( * C*, 1 ) ) )); Plot( *C*, "Close", ParamColor("Color", *colorBla

Re: [amibroker] making ticker=current ticker

2010-07-06 Thread Inquisitive Voyager
_xyz=Foreign("xyz","C",1); Plot(_xyz,"xyz",*colorGreen*,*styleLine*); overlay the above code on ABC price chart. u shall get both ticker in the same pane. On Tue, Jul 6, 2010 at 10:33 PM, jim fenster wrote: > > > Hi, > > I am trying to run a pairs trading system that starts with: > > ticker1="

Re: [amibroker] plot multiple lines [1 Attachment]

2010-07-10 Thread Inquisitive Voyager
enter the lookback month's in the parameter and the AFL plots a single horizontal line. cheers On Fri, Jul 9, 2010 at 3:17 PM, mrugenmetha MEHTA wrote: > > > hi, > > how can i plot multiple horizontal like 3months high,1year high,2years > high..help needed > > thx in advance > > --- On *Fri

Re: [amibroker] Req Help me get afl code line for % change in price

2010-07-14 Thread Inquisitive Voyager
AddColumn((Ref(*C*,-1)-*C*)*100/Ref(*C*,-1),"% change close"); On Wed, Jul 14, 2010 at 1:46 PM, ford7k wrote: > > > Hi afl experts > > I run my scan or exploration. > I get c,close price. > I cant get % change > % change = previous close price -current close price > > in a daily change i need p

Re: [amibroker] Req Help me get afl code line for % change in price

2010-07-14 Thread Inquisitive Voyager
it was just a suggestion not a complete code. any way,add Filter=1; and use explore- i.e. Filter=1; AddColumn((Ref(*C*,-1)-*C*)*100/Ref(*C*,-1),"% change close"); On Wed, Jul 14, 2010 at 5:50 PM, ram vel wrote: > > > hi Inquisitive Voyager > > I tried your co

Re: [amibroker] paramDate [1 Attachment]

2010-07-23 Thread Inquisitive Voyager
Go thru the enclosed AFL. is that what u sought? On Fri, Jul 23, 2010 at 4:43 PM, mikk12345 wrote: > > > I would like to calculate the days between the selected date and today; > > My code is:- > > FutureDate=ParamDate( "Select Date in Future", Now()); > > Today=Now(); > > Daycount=FutureDat

Re: [amibroker] LLV and dynamic period

2010-07-23 Thread Inquisitive Voyager
a=LastValue(ATR(14)); myvalue=LLV(MA(*C*,10),a); On Wed, Jul 21, 2010 at 12:16 AM, them1060 wrote: > > > Can I use a dynamic period in LLV? > > Ie myvalue = LLV(MA(C, 10), ATR(14)) > > so that periods will be dynamic as the atr moves? > > Thanks! > > >

Re: [amibroker] Re: paramDate [1 Attachment]

2010-07-24 Thread Inquisitive Voyager
> --- In amibroker@yahoogroups.com , > Inquisitive Voyager wrote: > > > > Go thru the enclosed AFL. > > is that what u sought? > > > > > > > > > > > > On Fri, Jul 23, 2010 at 4:43 PM, mikk12345 wrote: > > > > > > > > > &g

Re: [amibroker] Re: paramDate [1 Attachment]

2010-07-24 Thread Inquisitive Voyager
. Pl, reply. > > Note--- Your previos afl. > > Thanks > > --- In amibroker@yahoogroups.com , > Inquisitive Voyager wrote: > > > > check this out. > > > > On Sat, Jul 24, 2010 at 11:14 AM, prasantaroy36 ...>wrote: > > > > > > > > &g

Re: [amibroker] Shortcut keys

2010-07-25 Thread Inquisitive Voyager
try using combinations including modifier keys- instead of b use ctrl+shift+ b as short cut. On Sun, Jul 25, 2010 at 11:41 AM, Vishvesh wrote: > > > Hello Group, > > I have customized entire keyboard for different-different command. Now the > problem occurs when i try to put text on chart (Ellio

Re: [amibroker] Re: paramDate

2010-07-26 Thread Inquisitive Voyager
set the timeframe as Daily while using the same. On Sat, Jul 24, 2010 at 3:28 PM, mikk12345 wrote: > > > Thanks, But i want the exact day count not barcount. > > --- In amibroker@yahoogroups.com , > Inquisitive Voyager wrote: > > > > check this out. > >

Re: [amibroker] Re: paramDate [1 Attachment]

2010-07-26 Thread Inquisitive Voyager
check this out- ps: this shall work in all TF's. On Mon, Jul 26, 2010 at 8:18 PM, Inquisitive Voyager wrote: > set the timeframe as Daily while using the same. > > On Sat, Jul 24, 2010 at 3:28 PM, mikk12345 wrote: > >> >> >> Thanks, But i want the exact day

Re: [amibroker] Req help coding problems bars since crossover and exploration-same stock [1 Attachment]

2010-07-28 Thread Inquisitive Voyager
(1) try the attachment. (2) for second problem: adjust range parameters in AA . On Tue, Jul 27, 2010 at 9:44 PM, ford7k wrote: > > > > Hi Afl experts > > Please help with minor problem -coding lines needed > > First thing > > In the exploration I like to get buy=upcrossover(say 50M over 200MA) >

Re: [amibroker] plottext

2010-07-28 Thread Inquisitive Voyager
what is that condition? On Thu, Jul 29, 2010 at 7:46 AM, Anthony Faragasso wrote: > > > I would like to stick a date on the chart tied to a specific condition and > not > have the date change when moving through the chart...any help appreciated. > > Thank you > Anthony > > >

Re: [amibroker] ATR Based Entry and Exit [1 Attachment]

2010-07-29 Thread Inquisitive Voyager
find the attachment. On Thu, Jul 29, 2010 at 12:51 PM, mr.viir wrote: > > > Hi > > I am looking for an ATR based formula which shows : > 1) Entry Signal when price closes more than an ATR above the most recent > close > and > 2) Exit Signal when price closes more than one ATR below the most rece

Re: [amibroker] additionnal centered underscore PlotShape [1 Attachment]

2010-07-31 Thread Inquisitive Voyager
see it it helps! find the attachment On Sun, Aug 1, 2010 at 8:17 AM, ram vel wrote: > > > Hi reinsley > On an intraday chart 15min tf, can we plot previous days close? > can your code line be modified to show > previous days close, and todays latest close as lines on chart,please > thanks > r

Re: [amibroker] Re: paramDate [1 Attachment]

2010-08-02 Thread Inquisitive Voyager
> between selected 2 date ( between 2 backdates) by clicking mouse . So, pl, > help. > > Thanks > > --- In amibroker@yahoogroups.com , > Inquisitive Voyager wrote: > > > > check this out- > > > > ps: this shall work in all TF's. > > > >

Re: [amibroker] Percentage calculation Amibroker [1 Attachment]

2010-08-04 Thread Inquisitive Voyager
find the attachment. On Tue, Aug 3, 2010 at 7:34 AM, afzal hossain wrote: > > > Hello All > > > Can anybody tell me how can i see in the amibroker % (percentage) change in > price and volume for last 3 days, last 7 days , last 15 days, last 21days > and last 3 month. % can be positive or ne

Re: [amibroker] Multiple Higher Highs in Amibroker? [1 Attachment]

2010-08-06 Thread Inquisitive Voyager
(1) find the attachment (2) this code works in commentary window only. (3)copy paste the code.dont overlay. On Thu, Aug 5, 2010 at 7:29 PM, n7wyw wrote: > > > I want to find out the three highest highs for the past 100 periods. > Highest give only the top value, how can I get the next highest va

Re: [amibroker] Multiple Higher Highs in Amibroker?

2010-08-06 Thread Inquisitive Voyager
There was no attachment. > > Please send me the correct website address for this missing attachment. > > > > *From:* amibroker@yahoogroups.com [mailto:amibro...@yahoogroups.com] *On > Behalf Of *Inquisitive Voyager > *Sent:* Friday, August 06, 2010 9:54 AM > *To:* amibroker@ya

Re: [amibroker] req code afl for condition stochastics goes below 20 and comes above 20 [1 Attachment]

2010-08-08 Thread Inquisitive Voyager
as far as buy signals are concerned , check the attached AFL. wanted to accomodate sell condition too(altogether different code using flip),but sell arrows were not properly appearing. On Fri, Aug 6, 2010 at 11:26 PM, rvlv wrote: > > > Hi Inquisitive voyager and afl expert reinsle

Re: [amibroker] Assigning value to variable based on year

2010-08-09 Thread Inquisitive Voyager
replace assignment operator "=" with equality "==" operator. *if* (YearCal == 2000) StochDays = 21; On Mon, Aug 9, 2010 at 7:14 AM, TA wrote: > > > I want to assign different values to a variable based on the year for > plotting and back testing. The following is an example, where I want to >

Re: [amibroker] Re: Help request : Plot vertical line [1 Attachment]

2010-08-12 Thread inquisitive voyager
try this. change the date. make sure it's not a trade holiday. On Thu, Aug 12, 2010 at 11:33 AM, pacific5_au wrote: > > > Ara, That is one of the variations I've tried, but it doesn't work. For me > at least. > > Thanks anyway. > > Any other suggestions ?? > > > --- In amibroker@yahoogroups.com

Re: [amibroker] Req Exploration code for finding stocks with price crossed today above 20ema and

2010-08-20 Thread inquisitive voyager
(1)In case u dont use EOD data,use the following code- (1)AA->setting->periodicity->daily (2)AA->range->n last days- set n=1 On Fri, Aug 20, 2010 at 9:59 PM, ford7k wrote: > > > Hi experts > > I run my update of eod and try to locate only those stocks that made a > price cross above 13Ema

Re: [amibroker] 52 week high [1 Attachment]

2010-08-30 Thread inquisitive voyager
Is this u wanted? On Sun, Aug 29, 2010 at 11:45 PM, prasantaroy36 wrote: > > > Hi, > > i want to plot as text 52 week high date. So, what will be the afl logic ? > > Pl,help. > > Thanks > > >

Re: [amibroker] Re: 52 week high

2010-08-30 Thread inquisitive voyager
0 day period for 52 week high but > chart shown lifetime high date. Pl, help me. > > Thanks > > > --- In amibroker@yahoogroups.com , > inquisitive voyager wrote: > > > > Is this u wanted? > > > > On Sun, Aug 29, 2010 at 11:45 PM, prasantaroy36 wrote: >

Re: [amibroker] Re: 52 week high

2010-08-31 Thread inquisitive voyager
strange! its working fine on my end. On Wed, Sep 1, 2010 at 3:59 AM, prasantaroy36 wrote: > > > > > HI VOYEGER, > > Sorry to inform you problem is same as said earlier. > > > Thanks > > --- In amibroker@yahoogroups.com , > inquisitive voyager wrote: &g

Re: [amibroker] coding

2010-08-31 Thread inquisitive voyager
it was not clear what u exactly mean by "biggest volume Down Day "- else Filter=*C*>1.01**O* *AND* *V*>Ref(HHV(*V*,10),-1); On Sun, Aug 29, 2010 at 7:22 PM, rpedicelli wrote: > > > i need a lil help with coding. Trying to to develop an indicator that > satisfies these conditions: > > 1. toda

Re: [amibroker] Moving Average

2010-09-01 Thread inquisitive voyager
(1)this code looks in the future. (2)what do u mean by- "The average is shifted back 9-bars"? (3)To look back 9 bars back,u should use - x= Ref(MA(mp,18),-9); On Wed, Sep 1, 2010 at 12:07 PM, Dennis Lipter wrote: > > > The code below is for a centered moving average. > > The average is shift

Re: [amibroker] Formula Call Feature?

2010-09-04 Thread inquisitive voyager
what u can do is, make a function, and save it in 'Include' folder. You can call functions from 'Include' folder in any AFL u want. On Sat, Sep 4, 2010 at 10:55 PM, Dennis Lipter wrote: > > > Is there a "formula call" feature that references a previously written > custom formula in a new formula

Re: [amibroker] Data Window?

2010-09-04 Thread inquisitive voyager
Refer Tooltip feature of AB. On Sun, Sep 5, 2010 at 1:06 AM, blackcat54 wrote: > > > Is there some kind of data window feature that will display indicator and > price values when you mouse over them? > > Thanks > > >

Re: [amibroker] Help with Code for MA Cross Over - Ribbon Indictor [1 Attachment]

2010-09-08 Thread inquisitive voyager
just fixed the AFL errors. no look into concept. On Wed, Sep 8, 2010 at 5:02 PM, Ken H wrote: > > > Hi > > Can anyone assist me in fixing this code? > > I am trying to create a ribbon indicator to show when a MA cross over > occurs. > > Many thanks > > Ken > > _SECTION_BEGIN("Price"); > SetCha

Re: [amibroker] Help with Code for MA Cross Over - Ribbon Indictor [1 Attachment]

2010-09-08 Thread inquisitive voyager
try this one- On Wed, Sep 8, 2010 at 7:49 PM, inquisitive voyager < inquisitive.voya...@gmail.com> wrote: > > > [Attachment(s)<https://mail.google.com/mail/?ui=2&view=js&name=main,tlist&ver=tMWDK4VVLkE.en.&am=!HnqNg-A4riyxhZ4C2vB2xDbd5G4Oj82iIj0cEiUTOD47RH