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

Steve

Active Member
Fixed trading frames per sheet

Would appreciate help in AmiBroker Sheets.
I want Afl for fixed trading frames per sheet.
eg: Nifty pane or any other scrip
sheet 1 to have 5 m TF Nifty
sheet 2 to have 15 m TF Nifty
sheet 3 to have 1 Hr TF Nifty
sheet 4 to have 2 Hr TF Nifty

Thanks and appreciation
 
For support and resistance.
Here is one
But whether it is good or not, it is you to decide
Cheers mate , only issue is that for all charts it starts plotting from price point 0. say for nifty at 7000 3/4th of the lower screen is blank and lines in 1/4th of the screen looks clustered. can we fix it somehow . I use 6 months data from a vendor and hence most part of the screen on the lower part is blank and hence making full use of the lines drawn becomes quite unuseful.
 
Last edited:
I request all traderji experts
Pls help me simple system

Iam using ema based buy sell. My system is below

Buy=buy abv 30ema high
Sell=sell below 30ema low

I need add exploration

Highest high value for every buy signal
 
I request all traderji experts
Pls help me simple system

Iam using ema based buy sell. My system is below

Buy=buy abv 30ema high
Sell=sell below 30ema low

I need add exploration

Highest high value for every buy signal

Lowest low value of every sell signal.
 
I request all traderji experts
Pls help me simple system

Iam using ema based buy sell. My system is below

Buy=buy abv 30ema high
Sell=sell below 30ema low

I need add exploration

Highest high value for every buy signal

Lowest low value of every sell signal.
Code:
_SECTION_BEGIN("EMAVaibhav");
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
Plot( C, "Close", ParamColor("Color", colorBlue ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() ); 

C1 = EMA(H,30) ;
C2 = EMA(L,30) ;

C3 = C > C1 ;
C4 = C < C2 ;

Buy = ExRem(C3, C4) ;
Short = ExRem(C4, C3) ;

PlotShapes(shapeUpArrow*Buy,colorBlue,0,L,-12);
PlotShapes(shapeDownArrow*Short,colorRed,0,H,-12);

Filter = C > 0 ; 
AddColumn(IIf(Buy == 1 , 1 , (IIf(Short == 1,-1,0))),"Signal",1,colorBlack,colorWhite);
AddColumn(IIf(Buy == 1 , HHV(H,5) ,0),"BuyH",1,colorBlack,colorWhite);
AddColumn(IIf(Short == 1 , LLV(L,5) ,0),"ShortL",1,colorBlack,colorWhite);

_SECTION_END();
 

amitrandive

Well-Known Member
Fixed trading frames per sheet

Would appreciate help in AmiBroker Sheets.
I want Afl for fixed trading frames per sheet.
eg: Nifty pane or any other scrip
sheet 1 to have 5 m TF Nifty
sheet 2 to have 15 m TF Nifty
sheet 3 to have 1 Hr TF Nifty
sheet 4 to have 2 Hr TF Nifty

Thanks and appreciation
Use this

Code:
SetChartBkGradientFill(ParamColor("Color Top", colorWhite),ParamColor("Color Bottom", colorLightGrey),ParamColor("Color Title", colorWhite));
Period= ParamList("Base","Monthly|Weekly|Daily|2 Hrly|Hourly|15Minute|5Minute|1Minute",0);
Plotvol = ParamToggle("Plot Volume", "No|Yes");
style = styleCandle;
ColorOutline = ParamColor("Color outline", colorDarkGrey);
ColorVol = ParamColor("Color Volume", colorWhite);


if(Period=="Monthly"){
 TimeFrameSet(inMonthly);
 PlotOHLC(Open, High, Low, Close, "Monthly Price Chart", ColorOutline, style);
 if(Plotvol == 1)
  Plot(V,"Volume",ColorVol, styleHistogram|styleOwnScale);
}
if(Period=="Weekly"){
 TimeFrameSet(inWeekly);
 PlotOHLC(Open, High, Low, Close, "Weekly Price Chart", ColorOutline, style );
 if(Plotvol == 1)
  Plot(V,"Volume",ColorVol, styleHistogram|styleOwnScale);
}
if(Period=="Daily"){
 TimeFrameSet(inDaily);
 PlotOHLC(Open, High, Low, Close, "Daily Price Chart", ColorOutline, style );
 if(Plotvol == 1)
  Plot(V,"Volume",ColorVol, styleHistogram|styleOwnScale);
}
if(Period=="2 Hrly"){
 TimeFrameSet(60*120);
 PlotOHLC(Open, High, Low, Close, "2 Hrly Price Chart", ColorOutline, style);
 if(Plotvol == 1)
  Plot(V,"Volume",ColorVol, styleHistogram|styleOwnScale);
}
if(Period=="Hourly"){
 TimeFrameSet(inHourly);
 PlotOHLC(Open, High, Low, Close, "Hourly Price Chart", ColorOutline, style );
 if(Plotvol == 1)
  Plot(V,"Volume",ColorVol, styleHistogram|styleOwnScale);
}
if(Period=="15Minute"){
 TimeFrameSet(in15Minute);
 PlotOHLC(Open, High, Low, Close, "15Minute Price Chart", ColorOutline, style );
 if(Plotvol == 1)
  Plot(V,"Volume",ColorVol, styleHistogram|styleOwnScale);
}
if(Period=="5Minute"){
 TimeFrameSet(in5Minute);
 PlotOHLC(Open, High, Low, Close, "5Minute Price Chart", ColorOutline, style);
 if(Plotvol == 1)
  Plot(V,"Volume",ColorVol, styleHistogram|styleOwnScale);
}
if(Period=="1Minute"){
 TimeFrameSet(in1Minute);
 PlotOHLC(Open, High, Low, Close, "1Minute Price Chart", ColorOutline, style);
 if(Plotvol == 1)
  Plot(V,"Volume",ColorVol, styleHistogram|styleOwnScale);}
 

Steve

Active Member
Use this

Code:
SetChartBkGradientFill(ParamColor("Color Top", colorWhite),ParamColor("Color Bottom", colorLightGrey),ParamColor("Color Title", colorWhite));
Period= ParamList("Base","Monthly|Weekly|Daily|2 Hrly|Hourly|15Minute|5Minute|1Minute",0);
Plotvol = ParamToggle("Plot Volume", "No|Yes");
style = styleCandle;
ColorOutline = ParamColor("Color outline", colorDarkGrey);
ColorVol = ParamColor("Color Volume", colorWhite);


if(Period=="Monthly"){
 TimeFrameSet(inMonthly);
 PlotOHLC(Open, High, Low, Close, "Monthly Price Chart", ColorOutline, style);
 if(Plotvol == 1)
  Plot(V,"Volume",ColorVol, styleHistogram|styleOwnScale);
}
if(Period=="Weekly"){
 TimeFrameSet(inWeekly);
 PlotOHLC(Open, High, Low, Close, "Weekly Price Chart", ColorOutline, style );
 if(Plotvol == 1)
  Plot(V,"Volume",ColorVol, styleHistogram|styleOwnScale);
}
if(Period=="Daily"){
 TimeFrameSet(inDaily);
 PlotOHLC(Open, High, Low, Close, "Daily Price Chart", ColorOutline, style );
 if(Plotvol == 1)
  Plot(V,"Volume",ColorVol, styleHistogram|styleOwnScale);
}
if(Period=="2 Hrly"){
 TimeFrameSet(60*120);
 PlotOHLC(Open, High, Low, Close, "2 Hrly Price Chart", ColorOutline, style);
 if(Plotvol == 1)
  Plot(V,"Volume",ColorVol, styleHistogram|styleOwnScale);
}
if(Period=="Hourly"){
 TimeFrameSet(inHourly);
 PlotOHLC(Open, High, Low, Close, "Hourly Price Chart", ColorOutline, style );
 if(Plotvol == 1)
  Plot(V,"Volume",ColorVol, styleHistogram|styleOwnScale);
}
if(Period=="15Minute"){
 TimeFrameSet(in15Minute);
 PlotOHLC(Open, High, Low, Close, "15Minute Price Chart", ColorOutline, style );
 if(Plotvol == 1)
  Plot(V,"Volume",ColorVol, styleHistogram|styleOwnScale);
}
if(Period=="5Minute"){
 TimeFrameSet(in5Minute);
 PlotOHLC(Open, High, Low, Close, "5Minute Price Chart", ColorOutline, style);
 if(Plotvol == 1)
  Plot(V,"Volume",ColorVol, styleHistogram|styleOwnScale);
}
if(Period=="1Minute"){
 TimeFrameSet(in1Minute);
 PlotOHLC(Open, High, Low, Close, "1Minute Price Chart", ColorOutline, style);
 if(Plotvol == 1)
  Plot(V,"Volume",ColorVol, styleHistogram|styleOwnScale);}
Hi Amitrandive,

Thanks for this AFL

Couldn't get this to work, getting to many errors,
or maybe I'm missing something

Steve
 
Respected Amit Randive Sir,

How can we choose breakout stock for intraday ?
i want to choose stocks like you & Explorer, Khushi, cubt..........

i donwload the cubt's excell sheet, can u pls help me sir.......

Thanks

Warm Regards
Chinmay
 

Similar threads