Amibroker Newbie

#1
Dear All ,

I would like to introduce myself as a new member to this forum.
I am trading in Nifty Futures and Options only and I need some help from the seniors here.

I use Pivot Points ; Both Daily and Weekly and I want to Back-Test a system whereby I can see the performance of Weekly Pivots on Intra-day Charts.

Is there any way of Incorporating the Same?

Let's Say I use Camrilla Pivots on a weekly basis.
Is it possible for me to Draw the Camrilla Pivot Lines on an Intraday ( Hourly / Minute ) Chart?

Looking forward to a positive reply! :)

Have a good weekend everybody..
 

preethnfo

Active Member
#2
one small query yet another for clarification.

in amibroker when I change parameters in one stock chart effect all other stock panel charts parameters beside it. How to keep each chart with differed parameters separately without affecting other charts (without making changes in edit formula).
 

mcxinvest

Well-Known Member
#3
Try this


_SECTION_BEGIN("Price");
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", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
_SECTION_END();

_SECTION_BEGIN("camarilla levels");
//---- pivot points
WeekH = TimeFrameGetPrice("H", inWeekly, -1);
WeekL = TimeFrameGetPrice("L", inWeekly, -1);
WeekC = TimeFrameGetPrice("C", inWeekly, -1);
WeekO = TimeFrameGetPrice("O", inWeekly);

// camarilla pivots
if ( True )
{
R = weekH - weekL; // range
PP = (weekH + weekL + weekO + weekO) / 4 ;
R4 = (R * 1.1/2)+weekC;
R3 = (R * 1.1/4)+weekC;
S3 = weekC-(R * 1.1/4);
S4 = weekC- (R * 1.1/2);
}

Plot(R4, "",colorGreen,styleDots+styleNoLine);
Plot(S4, "",colorDarkBlue,styleDots+styleNoLine);
Plot(R3, "R3",colorRed,styleDots+styleNoLine);
Plot(S3, "S3",colorDarkBlue,styleDots+styleNoLine);
Plot(PP, "",colorYellow,styleLine);






//----
Title = Name()+" Camarilla"+Date()+ EncodeColor(colorRed)+ " R3 "+WriteVal(R3,1.2)+EncodeColor(colorGreen)+ " S3 "+ WriteVal(S3,1.2)+"\n"+EncodeColor(colorGreen)+" Long Breakout above "+WriteVal(R4,1.2)+"\n"+EncodeColor(colorRed)+" Short breakout below "+WriteVal(S4,1.2)
+"\n"+EncodeColor(colorGreen)+" If Rangebound buy close to "+ WriteVal(S3,1.2)+
"\n"+EncodeColor(colorRed)+" If Rangebound short close to "+ WriteVal(R3,1.2);


Filter=1;
AddColumn(C,"cmp",1.2);
AddColumn(R3,"R3",1.2);
AddColumn(R4,"R4",1.2);
AddColumn(S3,"S3",1.2);
AddColumn(S4,"S4",1.2);
_SECTION_END();
 

mcxinvest

Well-Known Member
#4
one small query yet another for clarification.

in amibroker when I change parameters in one stock chart effect all other stock panel charts parameters beside it. How to keep each chart with differed parameters separately without affecting other charts (without making changes in edit formula).
It wont be possible to have different parameters in one sheet for different stocks.

Best way is to create sheets and make diffreent charts in different sheets.
If your sheets are occupied with the indicators than
open a new tab and make new charts.

Also you can insert the Price in the same sheet, it would split the sheet in to two and than use the same system with different parameters.
 

preethnfo

Active Member
#5
mcxinvest ji, thanks for your explanation. it is some misunderstanding in it, please do let me clear, I want two stocks in two default charts with two parameters in those two with same indicator, not in one sheet or chart.

for example , I open two default charts (from file/new/..) and in those two charts place two different stock charts and also place one indicator like 14 SMA in these two charts. If in one stock it changed to 15 SMA then all the other stock charts are changed their parameter and show 15 SMA.

there are 9 sheets primarily we can view each just like excel sheets. sheets are not important here.

what I want to view is in one stock chart 14 SMA and another stock chart 15 SMA like that. How can it be got by making changes anywhere.
 
Last edited:

mcxinvest

Well-Known Member
#6
mcxinvest ji, thanks for your explanation. it is some misunderstanding in it, please do let me clear, I want two stocks in two default charts with two parameters in those two with same indicator, not in one sheet or chart.

for example , I open two default charts (from file/new/..) and in those two charts place two different stock charts and also place one indicator like 14 SMA in these two charts. If in one stock it changed to 15 SMA then all the other stock charts are changed their parameter and show 15 SMA.

there are 9 sheets primarily we can view each just like excel sheets. sheets are not important here.

what I want to view is in one stock chart 14 SMA and another stock chart 15 SMA like that. How can it be got by making changes anywhere.
If you open a two default charts, that means you got two tabs in amibroker..?
so if you change any indicator in 1st tab it should not change in 2nd tab.

Let say you opened 2 default charts, you got 2 tabs in amibroker (each tab consist of 9 sheets).
you put one stock in 1st tab and put an SMA of 14
and you put other stock in 2nd tab put a sma of 15

now if you change any stocks in 1st tab SMA 14 would be constant, or if you change sma 14 to say sma 20 it would change only in 1st tab only.
in your 2nd tab it will be sma 15 only.
 

Similar threads