Re: [amibroker] Re=Days since DMI crossover

2009-11-22 Thread cas soni
Hello alan, Everything is good at my end...i checked / confirmed with charts bar per bar basis..in both scan and exploration mode * add this for exploration   BuyPrice=ValueWhen(Buy,C); SellPrice=ValueWhen(Sell,C); Filter=Buy OR Sell ; AddColumn(IIf(Buy,BuyPrice,Null),"Buy Price", 6.2,1,colorGre

Re: [amibroker] Need help for price oscillator

2009-12-26 Thread cas soni
Hello kamal, you want something like this ? r1 = Param( "Fast avg", 5, 2, 200, 1 ); r2 = Param( "Slow avg", 35, 2, 200, 1 ); Plot(OscP( r1,r2), _DEFAULT_NAME( ),IIf(OscP( r1,r2)>0,5,4) , styleNoTitle | ParamStyle(" Histogram style", styleHistogram | styleNoLabel, maskHistogram)); Plot(MA(OscP(r1,

Re: [amibroker] SCREEN SHOTs - AFLS request

2010-02-14 Thread cas soni
Hello kalpana, first image [ forumla name = the foundation] , and its posted on traderji.com , rest 2 i dont know . Thank you --- On Sat, 13/2/10, Kalpana Samudrala wrote: From: Kalpana Samudrala Subject: [amibroker] SCREEN SHOTs - AFLS request [3 Attachments] To: "Amibroker" Date: Saturday,

Re: [amibroker] Re: Multitime frame AFL What is the mistake

2009-04-07 Thread cas soni
Hello, Please try this . i didnt check in amibroker but i think this will work.     TimeFrameSet( in5Minute*9) ; StochK45=StochK( 14,3); StochD45=StochD( 14,3,3); TimeFrameRestore(); D45= TimeFrameExpand( StochD45, in5Minute*9); k45=TimeFrameExpand( StochK45,in5Minute*9); TimeFrameSet( in5Minute)

Re: [amibroker] STO MA Slope - Code Problem

2009-05-07 Thread cas soni
Hello, use this...it plots arrow on 50 level..i have checked ... PlotShapes( shapeUpArrow * Buy, colorGreen, 0,50,0 ); PlotShapes( shapeDownArrow * Sell, colorRed, 0, 50,0 ); thank you --- On Thu, 7/5/09, Anthony Faragasso wrote: From: Anthony Faragasso Subject: Re: [amibroker] STO MA Slope -

Re: [amibroker] Re: Actual trade bar

2009-07-23 Thread cas soni
Hello everyone, Below discussion is  very interesting , i would request  mike,broman1003 to please give/put full afl..as this is very confusing to me i cant get all this stuff in my little brain [ i am new to all this]* Thank you //-

Re: [amibroker] Re:Inverted (upside-down) chart display

2009-09-24 Thread cas soni
please try this.. //- DF = -0.0003; TC = C; IC = 1 / ( C - DF ); IO = 1 / ( O - DF ); IL = 1 / ( H - DF ); IH = 1 / ( L - DF ); C = IC; O = IO; H = IH; L = IL; Plot( C, " ", colorGrey40, styleCandle ); Title = Name() + ": " + "Last

Re: [amibroker] Re: pl. code this

2010-07-18 Thread cas soni
Hello ,I had given you BBsqueeze .afl  indicator long time ago...use that..i think it is same as per mt4 indicator..* i dont have that afl have a nice time. . --- On Sun, 18/7/10, bharat wrote: From: bharat Subject: [amibroker] Re: pl. code this To: amibroker@yahoogroups.com Date: Sunday, 18

[amibroker] RE - 5.30.3 [1 Attachment]

2010-07-21 Thread cas soni
sir, i have installed new version 5.30.3.5106 .and i found that when ever i start amibroker , chart gets plotted from the begining [ first data ] please check this image. Kindly guide me if i am doing anything wrong Thank you

Re: [amibroker] brain trend afl

2010-07-24 Thread cas soni
Hello santhosh, Check ,   tatechnics.in ..  i think. Kbrain is almost / equal to brain trend . Thank you --- On Thu, 22/7/10, santhosh wrote: From: santhosh Subject: [amibroker] brain trend afl To: amibroker@yahoogroups.com Date: Thursday, 22 July, 2010, 3:01 PM   hello friends, ihave b

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

2010-07-28 Thread cas soni
Hello  Inquisitive Voyager, I think you need to add this lines ,   Filter=Buy OR Sell or f or g ; AddColumn(d,"barssince",1.2); AddColumn(f,"barssince up",1); AddColumn(g,"barssince dw",1);   Thank you --- On Wed, 28/7/10, Inquisitive Voyager wrote: From: Inquisitive Voyager Subject: Re: [ami

Re: [amibroker] Using BuyStop and SellStop orders - How does it work?

2010-07-29 Thread cas soni
Hello pcmoxon,you didn't use PLOT..add this lines  SetChartOptions(0, chartShowDates); Plot(C,"Close",colorWhite,64); PlotShapes(IIf(Buy , shapeSmallUpTriangle, shapeNone) ,colorGreen, 0,L,-20); PlotShapes(IIf(Sell  , shapeSmallDownTriangle, shapeNone) ,colorRed, 0,H,-20); Plot(MA1,"\nDynP

Re: [amibroker] Re: Multiple indicators combined to generate a Buy Sell signal - In one code

2010-08-10 Thread cas soni
Hello bobby,i think this is what you need to do price=c;buy=  (Price >EMA(Price,14)) AND (Price > MA(Price,20)) AND (Accdist() > MA(Accdist(),20)) AND (Accdist > EMA(Accdist(),14)) vice versa for sell ..thank you--- On Wed, 11/8/10, A wrote: From: A Subject: [amibroker] Re: Multiple indicato

Re: [amibroker] Formula Help Needed

2010-08-28 Thread cas soni
Hello Jeff , First let me say i am not an afl expert , so please try this ATRx = Optimize("ATR Multiplier", 3, 1, 5, 1); // ATR Multiplier WATR = (Ref(ATR(8),-2)*8 + (ATR(1)*1.125) + (Ref(ATR(1)*1.125,-1)))/10; //Weighted ATR (last 20% has a 12.5% weighting factor) twentydayupper = Ref(HH

Re: [amibroker] Re: Formula Help Needed

2010-08-28 Thread cas soni
  Jeff,   I agree with cas soni that plotting the problem makes it easier to solve.   You can use the valuewhen() function but the problem is that before a sell is found new buy signals emerge. That is why I would solve such a problem using an exit loop. See

Re: [amibroker] Moving Average

2010-09-01 Thread cas soni
Hello denis , The average is shifted back 9-bars. it should be x= Ref(MA(mp,18) , -9 ); --- On Wed, 1/9/10, Dennis Lipter wrote: From: Dennis Lipter Subject: [amibroker] Moving Average To: amibroker@yahoogroups.com Date: Wednesday, 1 September, 2010, 12:07 PM   The code below is for a

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

2010-09-09 Thread cas soni
Hello Ken, check  this   P = ParamField("Price field",-1); Periods = Param("Periods", 15, 2, 300, 1 ); Width = Param("Width%", 2, 0, 10, 0.05 ); Color = ParamColor("Color", colorCycle ); Style = ParamStyle("Style"); CenterLine = MA( P, Periods ); Plot( (1 + Width * 0.01) * CenterLine, "%EnvTop" + _