Simple Coding Help - No Promise.

Happy_Singh,
I have a question, currently I have js script which takes the screen shot of current active chart window. But if I have 3 charts window open, I want to take screen shot of all 3 charts from amibroker. How do we do that?
Cubt

You have to repeat the steps for second and third chart.

Which line to repeat? The line that invokes ExportImage function ...

I can pin point only when I can see your js code...
 
Last edited:
dell said:
what is correct way of maintaning database ?
earlier i make two seperate database for eod and ieod .
and seperately for ncdex , mcx and fno ........

is it is right way ?

or i have to make a database in which eod and ieod data will merge and make three different watchlist named mcx , ncdex and fno ?
Maintaining a Separate database is the right way.
Most respectfully, I disagree.

Given that Open and Close of a scrip are outside of 9:15 to 3:30 window for NSE, most efficient (and accurate) setup would be to store EOD and Intraday in same database....

@dell, Do you trade all 5 exchanges or just collect lot more data than what you trade? Dividing by exchanges is useful in efficiency point of view but advantages of maintaining single DB also exist.
 

pratapvb

Well-Known Member
Bumping again.

The condition would be to buy all greem bars highs plus a filter and short all red bar lows with a filter
I am not every sure of simulation thing....and FYI Happy was travelling till today.

Personally I think that every 5min bars will give many whips and lots of trades......but that is only my view
 

dell

Well-Known Member
Most respectfully, I disagree.

Given that Open and Close of a scrip are outside of 9:15 to 3:30 window for NSE, most efficient (and accurate) setup would be to store EOD and Intraday in same database....

@dell, Do you trade all 5 exchanges or just collect lot more data than what you trade? Dividing by exchanges is useful in efficiency point of view but advantages of maintaining single DB also exist.
actually , i trade soyabean and channa from ncdex , copper and crude from mcx and nifty and bnf from fno , so how to manage database ? as i don't know right way , that's why i ask here ...................
actually currently i have six database for three exchange , for rt and eod ........switching again and again is creating hassel so ,,,,,,,,i asked here for expert's view , about how they r maintaning ...........
 
SetChartOptions(0,chartShowArrows|chartShowDates);
Color = SM_TrendBars(ColorRGB(0,191,255), colorRed,colorGrey50);
Plot( C, "Price", Color, styleCandle | styleThick );
j=SM_WP();
SL = SM_NW(j,1,2);

P1 = Param("Conversion Period", 9, 2, 200, 1, 0);
C1 = ParamColor("Conversion Color", colorBlue);
CL = (HHV(H,P1)+LLV(L,P1))/2;

P2 = Param("Base Period", 26, 2, 200, 1, 0);
C2 = ParamColor("Base Color", colorRed);
BL = (HHV(H,P2)+LLV(L,P2))/2;

C3 = ParamColor("Leading A Color", colorBrightGreen);
LSA = (CL+BL)/2;

P4 = Param("Leading B Span", 52, 2, 200, 1, 0);
C4 = ParamColor("Leading B Color", colorPink);
LSB = (HHV(H,P4)+LLV(L,P4))/2;

P3 = Param("Leading Span Displacement", 26, 2, 200, 1, 0);

P5 = Param("Lagging Displacement", -26, 2, 200, 1, 0);
C5 = ParamColor("Lagging Color", colorGreen);

Plot(CL,"Tenkan-sen (Conversion Line)", C1, styleLine);
Plot(BL, "Kijun-sen (Base Line)", C2, styleLine);
Plot(LSA, "Senkou Span A (Leading Span A)", C3, styleLine, 0, 0, P3);
Plot(LSB, "Senkou Span B (Leading Span B)", C4, styleLine, 0, 0, P3);
Plot(C, "Chikou Span (Lagging Span)", C5, styleLine, 0, 0, P5);
PlotOHLC (LSA,LSA,LSB,LSB,"Cloud",IIf(LSA>LSB,ColorBlend(C3, colorWhite, 0.6),
ColorBlend(C4,colorWhite, 0.4)),styleCloud, 0, 0, P3);




happy or pratap can u pls put buy & sell condition as under:-
1buy if price is above cloud &
2cl(tankensen) crosses bl(kijun sen) & pointing upwards
vice versa for sell
will be of immense help.
nobody here to help it out!!!!:annoyed:
 
----------------------------------------------------------
 
Last edited:
actually , i trade soyabean and channa from ncdex , copper and crude from mcx and nifty and bnf from fno , so how to manage database ? as i don't know right way , that's why i ask here ...................
actually currently i have six database for three exchange , for rt and eod ........switching again and again is creating hassel so ,,,,,,,,i asked here for expert's view , about how they r maintaning ...........
As long as you get data for all 3 from the same source, you can merge all EODs and all Real times so you only have two databases; If your sources are different, you need to do it more ground work.

Then using command line of Amibroker, create two shortcuts. Change the exec path to specify name of database and command line. Bolded word is important.

Code:
"C:\AmiBroker\Broker.exe" /[B]database [/B]" C:\AmiBroker\eod"
 

manojborle

Well-Known Member


Uploaded with ImageShack.us

Can somebody help me in writing a scan ?
As shown in the chart, the area marked with rectangle, almost all the EMA's which can be seen in title are very much near.
In this case, 20 EMA = 5961.28
15 min 20 EMA = 5959.14
30 min 20 EMA = 5961.11
Hourly 20 EMA = 5958.77

So I want to scan stocks in my watch list meeting the above condition and want to run this scan every 5 minutes.

Thanks for the help in advance.

Manoj
Please help out with this scan also
 

Similar threads