Hi Rv Thanks for meeting my request and post some info on gravity bars and colored charts. Thanks once again for posting the tradestation ELD code in txt format. The code has 2 parts one for HA and another for coloured bars. surely this helps the experts here to present code in afl. Now I am confident some helpful expert here will soon present the same code as afl and will take the code foraward from the present level. I thank Mike for kindly giving relevant info on Heikin Ashi afl etc. take care cheers ford
--- In [email protected], ram vel <r...@...> wrote: > > Hi mike > Rv here. > thanks for the info. > I have found the txt code for HA and coloured charts in ts. > While HA is already existing, I would like to know if the other part can be > coded in afl. > REWGARDS > RV > ---------------------------------------------------TS code is asfollows. > Â > [LegacyColorValue = true]; > > inputs: Price(Close), Length(10), BarsBack(3), UpColor(blue), > DownColor(red),Displace( 0 ) ; > var: AvgExp( 0 ); > > AvgExp = XAverage( Price, Length ) ; > > if AvgExp > AvgExp[BarsBack] then setplotcolor(1,UpColor); > if AvgExp < AvgExp[BarsBack] then setplotcolor(1,DownColor); > > > Plot1[Displace]( AvgExp, "AvgExp" ) ; > ======================================= > Â > inputs: Price(Close), Length(10), BarsBack(3), UpColor(blue), > DownColor(red),Displace( 0 ) ; > var: AvgExp( 0 ); > > AvgExp = XAverage( Price, Length ) ; > > if AvgExp > AvgExp[BarsBack] then setplotcolor(1,UpColor); > if AvgExp < AvgExp[BarsBack] then setplotcolor(1,DownColor); > > > Plot1[Displace]( AvgExp, "AvgExp" ) ; > > Â > Â > Â > Â > ================================= > Â > > > > > > > Input: period(8); > > Condition1 = close > value1 ; > Condition2 = close < value1 ; > > { OPTIONAL STEP: Replace HIGH and LOW with your own formulas for the high and > low > prices of the PaintBar. Note that Value1 and Value2 are numeric variables, > temporary > holding places for the results of the numeric formulas. } > > Value1 = average(close,8)[3] ; > Value2 = 10925 ; > > { Leave the following as is. The plot is not named because there is only one > PaintBar > plot - with two sub-plots - and the default names Plot1, Plot2 will be > adequate. The > alert does not include a description because the alerting criteria and the > plotting > criteria are the same, and the description will be redundant. } > > if Condition1 then > begin > PlotPaintBar( high, low, open, close, "range", Blue, default, 3 ) ; > end ; > if condition2 then > begin > PlotPaintBar( high, low, open, close, "range", Red, default, 3 > ) ; > Alert ; > > end ; > > > > plot5(value1,"TTWHA"); > > > > vbrep_register("1243382") > Â > > > > --- On Mon, 9/6/10, Mike <sfclimb...@...> wrote: > > > From: Mike <sfclimb...@...> > Subject: [amibroker] Re: Req Can we have afl showing gravity bars with color? > please help > To: [email protected] > Date: Monday, September 6, 2010, 11:30 PM > > > Â > > > > Your friend is mistaken. > > 1. Any indicator can be programmed in AFL. You just have to know the rules > before you can code them. > > 2. If the "Trade2Win" forum can be believed, the color gravity chart is > nothing more than a Heiken Ashi indicator combined with a moving average: > http://www.trade2win.com/boards/first-steps/51318-colour-charts.html > > 3. Tomasz published the Heiken Ashi in AFL here: > http://finance.groups.yahoo.com/group/amibroker/message/112930 > > The article referenced in that thread can also be found here: > http://www.earnforex.com/forex-e-books/trading-strategy/Using_The_Heikin_Ashi_Technique_D_Valcu.pdf > > I have not used this indicator, so do your own research. But, yes, it > certainly can be done. > > Mike > > --- In [email protected], "ford7k" <ford7k@> wrote: > > > > > > Hi afl experts with exposure along multiple platforms, > > A friend of mine uses tradestation,multicharts etc which I have no idea of. > > After I asked him,what are these colored bars on your chart,he > > said,buddy-these are not very advanced and not for Amibroker users. > > I had a heated arguement with him when he said said. > > He said these are gravity bars-ever heard of these? > > I admitted-ok i never heard of these. > > he said > > you too can use Gravity Colour Charts,but you need to forget amibroker. > > > > I had no answer. > > I googled and found this thing and some charts etc. > > > > Can someone here please tell me what this gravity or antigravity stuff is > > all about? > > > > Gravity ,I understand is price falling down or going south due to heavy > > supply in market. > > > > The link for general info is > > http://www.ukshareinvestor.com/ > > ============================================================== > > some info > > > > My students often asked me if I could devise an easily recognised signal > > showing just where to enter and exit trades. So I got to work with my > > programmer telling him exactly what I wanted and how it was to look and he > > came up with the Gravity Colour Charts. You may have seen me on the BBC > > Money Programme recently when they featured me training using the Gravity > > Colour Charts. > > > > > > > > I have used the Gravity Colour Charts trading the US Markets and my student > > just love the way they provide a very visual buy and sell signal (I will > > show you exactly how to use them of course). My programmer has now made > > them available for the UK stock market and they work together with eSignal > > or ShareScope PLus charts. > > =============================================================== > > THe chart uses two indicators called > > GravityLinePBv3u and GravityLinev3u > > > > Is there anything close to gravity colorbars in amibroker? > > If a senior like Howard or Mike or Herman etc says -yes this is beyond > > Amibroker-then I accept my friends remarks. > > However,I would like to know about these gravity bars. > > > > thanks > > best regards. > > ford > > >
