Amibroker For Dummies........a Beginner's Forum On How To Use Amibroker

will this thread serve its purpose?

  • yes

    Votes: 397 93.2%
  • no

    Votes: 29 6.8%

  • Total voters
    426

bapu4

Well-Known Member
You are wrong. AmiBroker is not American but a European software vendor! Tomasz Janeczko who is the developer is citizen of Poland.
It is called Ami ... Broker because it first started on Amiga PC/OS in the nineties of last century or so!

What is your data feed and what is the base time interval of that feed? Are you using a 3rd party plug-in? Who is the vendor?
Data feed is from yahoo finance/hemen kapadia Get Bhav copy !
Presently i do it on EOD basis,but i have heard that i can get intraday by using plug-in from PIB / tradetiger , but i am not aware how to do it !!

I have both terminals available PIB and TT and i want to use them as intraday data feeds !!

The updates of EOD is getting next day morning at 7:30 hrs when i login !
I dont know if it may be getting updated early morning at 4hrs !! But i would be happy if i get EOD update at 16 to 17 hrs same day !!

Also, every time i newly open Ami, there is no chart available !! Everytime i have to run the auto update then only i can see the chart !!

Secondly, i have ademo version of 5.6 (latest) ! How long will i be allowed to use this ? 'coz i didnt find any information regarding the usage tenure !

Thanks a lot !!
God Bless
 
Last edited:

trash

Well-Known Member
Also, every time i newly open Ami, there is no chart available !! Everytime i have to run the auto update then only i can see the chart !!

Secondly, i have ademo version of 5.6 (latest) ! How long will i be allowed to use this ? 'coz i didnt find any information regarding the usage tenure !
It does not save data after AmiBroker is closed because you are using demo version. It's one of a few other limitations of the demo version. In order to get data saved you need to buy AmiBroker. Trial period is 30 days.
 

toocool

Well-Known Member
on of the strangest problem i se today in amibroker is that i have java chart from same provider and in tha java charts of nifty weekly there is difference in 400 and 600 ema of amibroker(compared to java chart) , java chart looks to be perfect but with same data (i have checked) the ambroker showing values of 400 and 600 ema with a lot of infact huge differences as you can see in charts, more interesting thing is that both java and amibroker charts have same values in all other timeframe , namely 5 min,15 ,20 ,60 , daily timeframes are perfect matching ,and i am 100% sure amibroker weekly 400 and 600 ema are wrong and java chart is right , no doubt about it.

but why?



 

bapu4

Well-Known Member
It does not save data after AmiBroker is closed because you are using demo version. It's one of a few other limitations of the demo version. In order to get data saved you need to buy AmiBroker. Trial period is 30 days.
Thanks trash for ur prompt reply !!

Can u answer the remaining part of the query or else anybody who knows about it can answer !!
"Presently i do it on EOD basis,but i have heard that i can get intraday by using plug-in from PIB / tradetiger , but i am not aware how to do it !!

I have both terminals available PIB and TT and i want to use them as intraday data feeds !!

The updates of EOD is getting next day morning at 7:30 hrs when i login !
I dont know if it may be getting updated early morning at 4hrs !! But i would be happy if i get EOD update at 16 to 17 hrs same day !!
"

God Bless !!
 

trash

Well-Known Member
on of the strangest problem i se today in amibroker is that i have java chart from same provider and in tha java charts of nifty weekly there is difference in 400 and 600 ema of amibroker(compared to java chart) , java chart looks to be perfect but with same data (i have checked) the ambroker showing values of 400 and 600 ema with a lot of infact huge differences as you can see in charts, more interesting thing is that both java and amibroker charts have same values in all other timeframe , namely 5 min,15 ,20 ,60 , daily timeframes are perfect matching ,and i am 100% sure amibroker weekly 400 and 600 ema are wrong and java chart is right , no doubt about it.

but why?

There is nothing wrong at all!

It is because Amibroker's built-in EMA calculation uses a starting point like in this Excel calculation here http://stockcharts.com/school/doku.php?id=chart_school:technical_indicators:moving_averages

Scroll down till you see Click here to download this spreadsheet example.

Then if inserting same Nifty data and calculating 400 and 600 EMA then you get same end values






If you want to have same calculation as the Java chart then use this custom formula (assuming both use very same data)

Code:
function cEMA( array, period )
{
    r[0] = array[0];
    ep = 2 / ( period + 1 );

    for ( i = 1; i < BarCount; i++ )
    {
        r[i] = r[i-1] + ( array[i] - r[i-1] ) * ep;
    }

    return r;
}

SetBarsRequired( -2, -2 );

P = ParamField( "Price field", -1 );
Periods = Param( "Periods", 15, 2, 1000, 1, 10 );
Plot( cEMA( P, Periods ), "", ParamColor( "Color", colorCycle ), ParamStyle("Style") );
 
Last edited:

KelvinHand

Well-Known Member
on of the strangest problem i se today in amibroker is that i have java chart from same provider and in tha java charts of nifty weekly there is difference in 400 and 600 ema of amibroker(compared to java chart) , java chart looks to be perfect but with same data (i have checked) the ambroker showing values of 400 and 600 ema with a lot of infact huge differences as you can see in charts, more interesting thing is that both java and amibroker charts have same values in all other timeframe , namely 5 min,15 ,20 ,60 , daily timeframes are perfect matching ,and i am 100% sure amibroker weekly 400 and 600 ema are wrong and java chart is right , no doubt about it.

but why?



That not the right way to compare the chart.
if you can get the IFC data feed to Amibroker, then it is fair to comment in this way. Otherwise

You need to examine bar-by-bar and record down in detail on your weekly chart between 400 to 600 weeks ago of two platform, what happen to the bars different that cause the indicator error.
Not that you just browse a few points and come into this kind of conclusion.
And Expect Us to give you Why ?

Thing can happen in many ways. Nothing you see is for sure.



One of the example i can tell you that i always see is:
Amibroker usually use daily EOD as the based time, so weekly, monthly chart are derived from it. For intraday is using 1min as the time base.

However, when i import the MT4 1min data into Amibroker an use it as based, If i switch to certain timeframe based on this timebase, i compare it with MT4 same timeframe, the chart are different.

But i import the same timeframe data into amibroker and compare the chart, they are the same.

Why ?

Because MT4 supply separate data for different timeframe,
1min is 1min data, 5min is 5min data.... Monthly is monthly data.

What can happen ?
One of the most common issue, is server problem that the data was not updated for certain period of time. Then when the server is up, that data was left it blank or gap.



You need ask IFC, how they provide you the data.
Is you vendor do data adjustment for you.

Next is you also need to ask your Amibroker DataFeed supply you the data.


Basically, the formula for indicators are dead fixed and same for different platform.
 
Last edited:

trash

Well-Known Member
I repeat again. It's two different start calculation methods. So it depends on the length of data history and it depends on the used period of the two EMA calculation methods (that I have posted). If using short periods like 20 bars then it takes much less time until both calculation methods meet!

The longer the data history then you will see the point where both EMA methods will meet sooner or later (i.e. using periods like 400 or 600 or ...) and they will show same values at some point.

In the comparison of toocool there is weekly data used and since he doesn't have much weekly data history available both different calculation methods haven't meet yet. So he needs more years of weekly data to see the meeting point.

Or just change to daily like seen in chart below. At the left side they are still different because one method (red line) starts later but at the end both EMAs have meet at some point!

Just try the two EMA methods I have posted in my previous message with same date starting point!

If you still don't get it how it works then I can't help you any further.


 

guptak03

Well-Known Member
Hello friends,
In below code i need some condition's to be added so please help,
i have tried my self lil but could not succeed
what i need in this is -
1)if i get a Buy/cover signal it should be high of that candle +20 on high points for filtration and it should be valid ONLY if buy/cover conditions are met..
2)for sell/short it should be low of that candle-20 points on low for filtration and it should be valid ONLY if sell/short conditions met.
3)it should fallow the same rules for Total Profit/Loss for the Last Trade(i mean if its not valid buy/sell it should carry the past signal p/l only).

PHP:
//===============system================

Plot(NW, "", IIf(Trend == 1, 27, 4), 4);
Buy=Cover=Cross(j,nw);
Sell=Short=Cross(nw,j);
SellPrice=ValueWhen(Sell,L-20,1);
BuyPrice=ValueWhen(Buy,H+20,1);
Long=Flip(Buy,Sell);
Shrt=Flip(Sell,Buy );
_SECTION_END();
//=================TITLE============================ ================================================== ==================
_SECTION_BEGIN("Title");
if( Status("action") == actionIndicator )
(
Title = EncodeColor(colorBlack)+ Name() + " - " + EncodeColor(colorRed)+ Interval(2) + EncodeColor(colorBlack) +
" - " + Date() +" - "+"\n" +EncodeColor(colorBlack) +"Op-"+O+" "+"Hi-"+H+" "+"Lo-"+L+" "+
"Cl-"+C+" "+ "Vol= "+ WriteVal(V)+"\n"+
EncodeColor(colorLime)+
WriteIf (Buy , " GO LONG / Reverse Signal at "+H+" ","")+
WriteIf (Sell , " EXIT LONG / Reverse Signal at "+L+" ","")+"\n"+EncodeColor(colorBlack)+
WriteIf(Sell , "Total Profit/Loss for the Last Trade Rs."+(C-BuyPrice)+"","")+
WriteIf(Buy , "Total Profit/Loss for the Last trade Rs."+(SellPrice-C)+"","")+
WriteIf(Long AND NOT Buy, "Trade : Long - Entry price Rs."+(BuyPrice),"")+
WriteIf(shrt AND NOT Sell, "Trade : Short - Entry price Rs."+(SellPrice),"")+"\n"+
WriteIf(Long AND NOT Buy, "Current Profit/Loss Rs."+(C-BuyPrice)+"","")+
WriteIf(shrt AND NOT Sell, "Current Profit/Loss Rs."+(SellPrice-C)+"",""));
PlotShapes(IIf(Buy, shapeSquare, shapeNone),colorGreen, 0, L, Offset=-40);
PlotShapes(IIf(Buy, shapeSquare, shapeNone),colorLime, 0,L, Offset=-50);
PlotShapes(IIf(Buy, shapeUpArrow, shapeNone),colorWhite, 0,L, Offset=-45);
PlotShapes(IIf(Sell, shapeSquare, shapeNone),colorRed, 0, H, Offset=40);
PlotShapes(IIf(Sell, shapeSquare, shapeNone),colorOrange, 0,H, Offset=50);
PlotShapes(IIf(Sell, shapeDownArrow, shapeNone),colorWhite, 0,H, Offset=-45);
_SECTION_END();
 

toocool

Well-Known Member
I repeat again. It's two different start calculation methods. So it depends on the length of data history and it depends on the used period of the two EMA calculation methods (that I have posted). If using short periods like 20 bars then it takes much less time until both calculation methods meet!

The longer the data history then you will see the point where both EMA methods will meet sooner or later (i.e. using periods like 400 or 600 or ...) and they will show same values at some point.

In the comparison of toocool there is weekly data used and since he doesn't have much weekly data history available both different calculation methods haven't meet yet. So he needs more years of weekly data to see the meeting point.

Or just change to daily like seen in chart below. At the left side they are still different because one method (red line) starts later but at the end both EMAs have meet at some point!

Just try the two EMA methods I have posted in my previous message with same date starting point!

If you still don't get it how it works then I can't help you any further.


mate i have data since 1/1/2000 till today that makes more than 700 weeks anyway , so your theory of having less data is ruled out totally.

now regarding quality of my data ? i have java chart of same provider whose data is in amibroker and i have confirmed almost bar bay bar that neither the data is missing nor the data is wrong /different in both , so that too is ruled out completely.

now the possibility that eod data is used to chart weekly ema is there , now please tell me solution for this , because amibroker is a branded software , and i do not believe there is no cure for this issue in amibroker , inspite of eod data being converted in virtual weekly data , there must be some way to correct it :thumb:
 

toocool

Well-Known Member
That not the right way to compare the chart.
if you can get the IFC data feed to Amibroker, then it is fair to comment in this way. Otherwise

You need to examine bar-by-bar and record down in detail on your weekly chart between 400 to 600 weeks ago of two platform, what happen to the bars different that cause the indicator error.
Not that you just browse a few points and come into this kind of conclusion.
And Expect Us to give you Why ?

Thing can happen in many ways. Nothing you see is for sure.



One of the example i can tell you that i always see is:
Amibroker usually use daily EOD as the based time, so weekly, monthly chart are derived from it. For intraday is using 1min as the time base.

However, when i import the MT4 1min data into Amibroker an use it as based, If i switch to certain timeframe based on this timebase, i compare it with MT4 same timeframe, the chart are different.

But i import the same timeframe data into amibroker and compare the chart, they are the same.

Why ?

Because MT4 supply separate data for different timeframe,
1min is 1min data, 5min is 5min data.... Monthly is monthly data.

What can happen ?
One of the most common issue, is server problem that the data was not updated for certain period of time. Then when the server is up, that data was left it blank or gap.



You need ask IFC, how they provide you the data.
Is you vendor do data adjustment for you.

Next is you also need to ask your Amibroker DataFeed supply you the data.


Basically, the formula for indicators are dead fixed and same for different platform.
sorry bro do not understand what is IFC ?

my data provider is investbulls and i have both java chart and amibroker data from same this vendor , i have also confirmed in chart that no data is missing , neither its wrong .

yes i know that my data provider investbulls gives only eod data from which weekly chart are derived , but amibroker is such a branded software , there must be some cure , please help :thumb:

i am 99% sure that my intraday data base is 1 minute only ,and still on almost every time frame intraday chart ema values are derived basicall from 1minute chart are matching almost exactly(on 5,15 ,20 ,60 min) , even on 60 minute chart (for maximum 400 ema) its 5701.67 for 400 ema on both java and amibroker based charts , so only on weekly time frame the problem is happening
 
Last edited:

Similar threads