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

a1b1trader

Well-Known Member
The Edit -> Delete Session is supposed to do this after selecting the start and end point. Unfortunately, it does not work for me.
Thanks yusi for your kind suggestion.
Delete Session is working, on clicking a pop up appears , which says
"Do you really want to delete currently selected quote from all symbols"
but no pop up appears for criteria for selection of date or time,
and so it is risky to press YES without any selection, I didnt try.

Yusi, I posted a thread on 20th "How to draw various shapes in Amibroker"

http://www.traderji.com/amibroker/78497-how-draw-various-shapes-amibroker.html

Please go through it and if you can help in any manner, please do help me.

Thanks
 
how can I backtest a strategy over several stocks ?
and
how can I backtest saveral strategy over a stock ?

can I make a button on toolbar of 15 minutes and 30 minutes.As I use it several times
 
Hi,

There is an option to delete the scrip one by one, but it is very difficult identify one by one which is not traded for a long time and that too if the list of scrips to be deleted is huge.
Is there any ways to delete the scrips in Amibroker which are delisted or not traded in the exchange?

Thanks,
Hari
 
Hi,

There is an option to delete the scrip one by one, but it is very difficult identify one by one which is not traded for a long time and that too if the list of scrips to be deleted is huge.
Is there any ways to delete the scrips in Amibroker which are delisted or not traded in the exchange?

Thanks,
Hari
Yes u can do it, go to Amibroker>tools>cleanup database option, it will tell one by one script which is not traded for a long time and ask you to delete. Check it out

Thanks
 

yusi

Well-Known Member
Yusi, I posted a thread on 20th "How to draw various shapes in Amibroker"

http://www.traderji.com/amibroker/78497-how-draw-various-shapes-amibroker.html

Please go through it and if you can help in any manner, please do help me.

Thanks
Your question in that thread is not really understood. You are already aware of the available Gfx functions and the primitives that they provide. Like in Basic or Logo, you write functions to generalize what you need to do. For example, you write a function DrawRegularPolygon( NumSides ) to draw an equilateral triangle / square / hexagon, etc of unit size. This is typically school geometry. You may want to write a matrix transform function so that you can rotate and scale these shapes in a general way (okay array sizes that exceeds bar count is problematic). A group of such functions becomes your library. I do not think that such a ready graphics library is available for AmiBroker. So perhaps you could be more specific. There are plenty of available AFLs that use the Gfx functions very well.



All major dimension in pixels (not inches) of value 100. Mapping to physical dimension would depend on knowing monitor/printer resolution.

Code:
function DrawGrid( CornerX, CornerY, Count, Length, Spacing ) {
	//Draw horizontal lines
	X = CornerX;
	Y = CornerY;
	for ( i = 0; i < Count; i++ ) {
		GfxMoveTo( X, Y );
		GfxLineTo( X + Length, Y);
		Y = Y + Spacing;
	}

	//Draw vertical lines
	X = CornerX;
	Y = CornerY;
	for ( i = 0; i < Count; i++ ) {
		GfxMoveTo( X, Y );
		GfxLineTo( X, Y + Length);
		X = X + Spacing;
	}
}	

//Plot above chart elements (default)
GfxSetOverlayMode( 0 );

//Red solid circle
GfxSelectPen( colorRed);
GfxSelectSolidBrush( colorRed ); 
GfxCircle( 100, 100, 50 );

//Rectange with overlayed circle
GfxSelectPen( colorGreen );
GfxSelectSolidBrush( colorGreen ); 
GfxRectangle( 50, 200, 150, 300 );
GfxSelectPen( colorWhite );
GfxSelectSolidBrush( colorWhite ); 
GfxCircle( 100, 250, 50 );

//Triangle as polygon; generalize with function if required
GfxSelectPen( colorGrey50);
GfxSelectSolidBrush( colorGrey50 ); 
GfxPolygon( 150, 50, 250, 50, 250, 150 );

//Grid. Preferably get screen dimensions with Status("pxheight") etc
GfxSelectPen( colorBlack, 2);
DrawGrid( 200, 200, 4, 120, 20);
 

a1b1trader

Well-Known Member
Your question in that thread is not really understood. You are already aware of the available Gfx functions and the primitives that they provide. Like in Basic or Logo, you write functions to generalize what you need to do. For example, you write a function DrawRegularPolygon( NumSides ) to draw an equilateral triangle / square / hexagon, etc of unit size. This is typically school geometry. You may want to write a matrix transform function so that you can rotate and scale these shapes in a general way (okay array sizes that exceeds bar count is problematic). A group of such functions becomes your library. I do not think that such a ready graphics library is available for AmiBroker. So perhaps you could be more specific. There are plenty of available AFLs that use the Gfx functions very well.
Yusi, many thanks to you
You really worked hard to help me.
Will experiment with the code in the weekend and will tell you about its working.
Thanks once more for your kind help.
 
Hi - I am new to Amibroker - had a quick question. Is there a way to automate importing txt files (ASCII files) into amibroker instead of using the Import ASCII command in Amibroker everytime one needs to update the quotes.

Thanks
 
how can I backtest a strategy over several stocks ?
and
how can I backtest saveral strategy over a stock ?

can I make a button on toolbar of 15 minutes and 30 minutes.As I use it several times
 

Similar threads