Notes![what is notes.io? What is notes.io?](/theme/images/whatisnotesio.png)
![]() ![]() Notes - notes.io |
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) Vol " +WriteVal( V, 1.0 ) +" {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 )) ));
Plot( C, "Close", ParamColor("Color", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
_SECTION_END();
//MAIN CAMARILLA SECTION START
_SECTION_BEGIN( "Primary Camrilla Pivots" );
tmfrm = VarGet(ParamList("Pivot TimeFrame","inHourly|inDaily|inWeekly|inMonthly|inQuarterly"));
// Previous Days High Low Close
DayH = TimeFrameGetPrice( "H",tmfrm,-1 );
DayL = TimeFrameGetPrice( "L",tmfrm,-1 );
Dayc = TimeFrameGetPrice( "C",tmfrm,-1 );
dtDayStartComp = TimeFrameCompress( DateTime(), tmfrm, compressOpen );
dtDayStartExp = TimeFrameExpand( dtDayStartComp, tmfrm, expandFirst );
dtDayEndComp = TimeFrameCompress( DateTime(), tmfrm, compressLast );
dtDayEndExp = TimeFrameExpand( dtDayEndComp, tmfrm, expandFirst );
DayCond = DateTime() >= dtDayStartExp AND DateTime() < dtDayEndExp;
Num_of_pivots = 4; // Configure as you need
SumofPivots = Cum( dtDayStartExp != Ref( dtDayStartExp, -1) );
IsVisible = (LastValue( SumofPivots ) - Num_of_pivots ) < SumofPivots;
{
// Camarilla Pivot Calculation
H5 = ( DayH / DayL ) * DayC;
H4 = ( ( DayH - DayL ) * ( 1.1 / 2 ) ) + DayC;
H3 = ( ( DayH - DayL ) * ( 1.1 / 4 ) ) + DayC;
R2 = ( ( DayH - DayL ) * ( 1.1 / 6 ) ) + DayC;
R1 = ( ( DayH - DayL ) * ( 1.1 / 12 ) ) + DayC;
S1 = DayC - ( ( DayH - DayL ) * ( 1.1 / 12 ) );
S2 = DayC - ( ( DayH - DayL ) * ( 1.1 / 6 ) ) ;
L3 = DayC - ( ( DayH - DayL ) * ( 1.1 / 4 ) ) ;
L4 = DayC - ( ( DayH - DayL ) * ( 1.1 / 2 ) ) ;
L5 = DayC - ( H5 - DayC );
CW=H3-L3;
}
//Hide and Show Camrilla Pivots
MainCamarilla=ParamToggle("MainCamarilla","No|Yes",1);
InnerCamarilla=ParamToggle("InnerCamarilla","No|Yes",1);
TargetCamrilla=ParamToggle("TargetCamrilla","No|Yes",1);
//Color Chose for your pivots
Maincolor = ParamColor("MainCamrilla", colorOrange);
InnerColor = ParamColor("Inner Color", colorBrightGreen);
Targetcolor=ParamColor("Target Color", colorBrightGreen);
MainCamrillaStyle =ParamStyle("Style",styleLine,maskPrice);
//InnerCamrillaStyle
//TargetCamrillaStyle
if(MainCamarilla)
{
Plot( IIf( DayCond, H4, Null ), "H4", Maincolor, MainCamrillaStyle, Null, Null, 0 );
//Plot( IIf( DayCond, H4, Null ), "H4", Maincolor, styleStaircase, Null, Null, 2 );
Plot( IIf( DayCond, H3, Null), "H3", Maincolor, MainCamrillaStyle, Null, Null,0 );
//Plot( IIf( DayCond, H3, Null), "H3", Maincolor, MainCamrillaStyle, Null, Null, 2 );
Plot( IIf( DayCond, L3, Null), "L3", Maincolor, MainCamrillaStyle, Null, Null, 0 );
//Plot( IIf( DayCond, L3, Null), "L3", Maincolor, MainCamrillaStyle, Null, Null, 2 );
Plot( IIf( DayCond, L4, Null), "L4", Maincolor, MainCamrillaStyle, Null, Null, 0 );
//Plot( IIf( DayCond, L4, Null), "L4", Maincolor, MainCamrillaStyle, Null, Null, 2 );
//PlotText("hello,
}
if(InnerCamarilla)
{
Plot( IIf( DayCond, R2, Null), "R2", InnerColor, styleLine, Null, Null, 0 );
//Plot( IIf( DayCond, R1, Null), "R1", InnerColor, styleLine, Null, Null, 2 );
Plot( IIf( DayCond, R1, Null), "R2", InnerColor, styleLine, Null, Null, 0 );
//Plot( IIf( DayCond, R1, Null), "R1", InnerColor, styleLine, Null, Null, 2 );
Plot( IIf( DayCond, S1, Null), "S1", InnerColor, styleLine, Null, Null, 0 );
//Plot( IIf( DayCond, S1, Null), "S1", InnerColor, styleLine, Null, Null, 2 );
Plot( IIf( DayCond, S2, Null), "S2", InnerColor, styleLine, Null, Null, 0 );
//Plot( IIf( DayCond, S2, Null), "S2", InnerColor, styleLine, Null, Null, 2 );
}
if(TargetCamrilla)
{
Plot( IIf( DayCond, L5, Null), "L5", Targetcolor, styleLine, Null, Null, 0 );
//Plot( IIf( DayCond, L5, Null), "L5", Targetcolor, styleLine, Null, Null, 2 );
Plot( IIf( DayCond, H5, Null), "H5", Targetcolor, styleLine, Null, Null, 2 );
//Plot( IIf( DayCond, H5, Null), "H5", Targetcolor, styleLine, Null, Null, 2 );
Plot( IIf( DayCond AND IsVisible, H4, Null ), "H4", Maincolor, MainCamrillaStyle, Null, Null, 0 );
}
_SECTION_END();
//MAIN CAMARILLA SECTION END
//DEVELOPING CAMARILLA START
{
_SECTION_BEGIN("Developing Camarilla Pivots" );
Shownextday=ParamToggle("NextDay","No|Yes",1);
Showinner=ParamToggle("Inner Camarilla","No|Yes",1);
MainColor2=ParamColor("devMainColor", colorBrightGreen);
InnerColor = ParamColor("devInnerColor", colorBrightGreen);
// Present Days High Low Close
// These levels will be dynamic as day progresses and would ahow up in the no bar region after the last visible Bar for shifted number of bars (i.e. 10 in this case)
// Do use "Bar Replay" to figure out what I mean
shift = 15; //Number of Bars to be shifted, could use a Param if needed
bi = BarIndex();
lvbi = LastValue( bi );
LAx0 = lvbi - shift + 1;
LAx1 = lvbi;
nxttmfrm = VarGet(ParamList("Next Day TimeFrame","inDaily|inWeekly|inMonthly|inQuarterly"));
DayH = TimeFrameGetPrice( "H", nxttmfrm, 0 );
DayL = TimeFrameGetPrice( "L", nxttmfrm, 0 );
DayC = TimeFrameGetPrice( "C", nxttmfrm, 0 );
//Central Pivots shifted for Next Day
H5 = ( DayH / DayL ) * DayC;
H4 = ( ( DayH - DayL ) * ( 1.1 / 2 ) ) + DayC;
H3 = ( ( DayH - DayL ) * ( 1.1 / 4 ) ) + DayC;
R2 = ( ( DayH - DayL ) * ( 1.1 / 6 ) ) + DayC;
R1 = ( ( DayH - DayL ) * ( 1.1 / 12 ) ) + DayC;
S1 = DayC - ( ( DayH - DayL ) * ( 1.1 / 12 ) );
S2 = DayC - ( ( DayH - DayL ) * ( 1.1 / 6 ) ) ;
L3 = DayC - ( ( DayH - DayL ) * ( 1.1 / 4 ) ) ;
L4 = DayC - ( ( DayH - DayL ) * ( 1.1 / 2 ) ) ;
L5 = DayC - ( H5 - DayC );
y = LastValue( H4 );
la = LineArray( LAx0, y, LAx1, y );
if(Shownextday)
Plot( la, "H4", MainColor2, styleLine, Null, Null, shift );
y = LastValue( H3 );
la = LineArray( LAx0, y, LAx1, y );
if(Shownextday)
Plot( la, "H3", MainColor2, styleLine, Null, Null, shift );
y = LastValue( R1 );
la = LineArray( LAx0, y, LAx1, y );
if(Shownextday AND Showinner)
Plot( la, "R1", InnerColor, styleLine, Null, Null, shift );
y = LastValue( R2 );
la = LineArray( LAx0, y, LAx1, y );
if(Shownextday AND Showinner)
Plot( la, "R2", InnerColor, styleLine, Null, Null, shift );
y = LastValue(S1);
la = LineArray( LAx0, y, LAx1, y );
if(Shownextday AND Showinner)
Plot( la, "L3", InnerColor, styleLine, Null, Null, shift );
y = LastValue(S2);
la = LineArray( LAx0, y, LAx1, y );
if(Shownextday AND Showinner)
Plot( la, "L3", InnerColor, styleLine, Null, Null, shift );
y = LastValue(L3);
la = LineArray( LAx0, y, LAx1, y );
if(Shownextday)
Plot( la, "L3", MainColor2, styleLine, Null, Null, shift );
y = LastValue( L4 );
la = LineArray( LAx0, y, LAx1, y );
if(Shownextday)
Plot( la, "l4", MainColor2, styleLine, Null, Null, shift );
}
//DEVELOPING CAMARILLA END
// Secondary Camarilla START
{
_SECTION_BEGIN( "Secondary Camrilla Pivots" );
tmfrm = VarGet(ParamList("Pivot TimeFrame","inHourly|inDaily|inWeekly|inMonthly|inQuarterly"));
// Previous Days High Low Close
DayH = TimeFrameGetPrice( "H",tmfrm,-1 );
DayL = TimeFrameGetPrice( "L",tmfrm,-1 );
Dayc = TimeFrameGetPrice( "C",tmfrm,-1 );
dtDayStartComp = TimeFrameCompress( DateTime(), tmfrm, compressOpen );
dtDayStartExp = TimeFrameExpand( dtDayStartComp, tmfrm, expandFirst );
dtDayEndComp = TimeFrameCompress( DateTime(), tmfrm, compressLast );
dtDayEndExp = TimeFrameExpand( dtDayEndComp, tmfrm, expandFirst );
DayCond = DateTime() >= dtDayStartExp AND DateTime() < dtDayEndExp;
{
// Camarilla Pivot Calculation
H5 = ( DayH / DayL ) * DayC;
H4 = ( ( DayH - DayL ) * ( 1.1 / 2 ) ) + DayC;
H3 = ( ( DayH - DayL ) * ( 1.1 / 4 ) ) + DayC;
R2 = ( ( DayH - DayL ) * ( 1.1 / 6 ) ) + DayC;
R1 = ( ( DayH - DayL ) * ( 1.1 / 12 ) ) + DayC;
S1 = DayC - ( ( DayH - DayL ) * ( 1.1 / 12 ) );
S2 = DayC - ( ( DayH - DayL ) * ( 1.1 / 6 ) ) ;
L3 = DayC - ( ( DayH - DayL ) * ( 1.1 / 4 ) ) ;
L4 = DayC - ( ( DayH - DayL ) * ( 1.1 / 2 ) ) ;
L5 = DayC - ( H5 - DayC );
CW=H3-L3;
}
//Hide and Show Camrilla Pivots
MainCamarilla=ParamToggle("MainCamarilla","No|Yes",1);
InnerCamarilla=ParamToggle("InnerCamarilla","No|Yes",1);
TargetCamrilla=ParamToggle("TargetCamrilla","No|Yes",1);
//Color Chose for your pivots
Maincolor = ParamColor("MainCamrilla", colorOrange);
InnerColor = ParamColor("Inner Color", colorBrightGreen);
Targetcolor=ParamColor("Target Color", colorBrightGreen);
MainCamrillaStyle =ParamStyle("Style",styleLine,maskPrice);
//InnerCamrillaStyle
//TargetCamrillaStyle
if(MainCamarilla)
{
Plot( IIf( DayCond, H4, Null ), "H4", Maincolor, MainCamrillaStyle, Null, Null, 0 );
//Plot( IIf( DayCond, H4, Null ), "H4", Maincolor, styleStaircase, Null, Null, 2 );
Plot( IIf( DayCond, H3, Null), "H3", Maincolor, MainCamrillaStyle, Null, Null,0 );
//Plot( IIf( DayCond, H3, Null), "H3", Maincolor, MainCamrillaStyle, Null, Null, 2 );
Plot( IIf( DayCond, L3, Null), "L3", Maincolor, MainCamrillaStyle, Null, Null, 0 );
//Plot( IIf( DayCond, L3, Null), "L3", Maincolor, MainCamrillaStyle, Null, Null, 2 );
Plot( IIf( DayCond, L4, Null), "L4", Maincolor, MainCamrillaStyle, Null, Null, 0 );
//Plot( IIf( DayCond, L4, Null), "L4", Maincolor, MainCamrillaStyle, Null, Null, 2 );
//PlotText("hello,
}
if(InnerCamarilla)
{
Plot( IIf( DayCond, R2, Null), "R2", InnerColor, styleLine, Null, Null, 0 );
//Plot( IIf( DayCond, R1, Null), "R1", InnerColor, styleLine, Null, Null, 2 );
Plot( IIf( DayCond, R1, Null), "R2", InnerColor, styleLine, Null, Null, 0 );
//Plot( IIf( DayCond, R1, Null), "R1", InnerColor, styleLine, Null, Null, 2 );
Plot( IIf( DayCond, S1, Null), "S1", InnerColor, styleLine, Null, Null, 0 );
//Plot( IIf( DayCond, S1, Null), "S1", InnerColor, styleLine, Null, Null, 2 );
Plot( IIf( DayCond, S2, Null), "S2", InnerColor, styleLine, Null, Null, 0 );
//Plot( IIf( DayCond, S2, Null), "S2", InnerColor, styleLine, Null, Null, 2 );
}
if(TargetCamrilla)
{
Plot( IIf( DayCond, L5, Null), "L5", Targetcolor, styleLine, Null, Null, 0 );
//Plot( IIf( DayCond, L5, Null), "L5", Targetcolor, styleLine, Null, Null, 2 );
Plot( IIf( DayCond, H5, Null), "H5", Targetcolor, styleLine, Null, Null, 2 );
//Plot( IIf( DayCond, H5, Null), "H5", Targetcolor, styleLine, Null, Null, 2 );
}
_SECTION_END();
}
// Tertiary Camarilla END
{
_SECTION_BEGIN( "Tertiary Camrilla Pivots" );
tmfrm = VarGet(ParamList("Pivot TimeFrame","inHourly|inDaily|inWeekly|inMonthly|inQuarterly"));
// Previous Days High Low Close
DayH = TimeFrameGetPrice( "H",tmfrm,-1 );
DayL = TimeFrameGetPrice( "L",tmfrm,-1 );
Dayc = TimeFrameGetPrice( "C",tmfrm,-1 );
dtDayStartComp = TimeFrameCompress( DateTime(), tmfrm, compressOpen );
dtDayStartExp = TimeFrameExpand( dtDayStartComp, tmfrm, expandFirst );
dtDayEndComp = TimeFrameCompress( DateTime(), tmfrm, compressLast );
dtDayEndExp = TimeFrameExpand( dtDayEndComp, tmfrm, expandFirst );
DayCond = DateTime() >= dtDayStartExp AND DateTime() < dtDayEndExp;
{
// Camarilla Pivot Calculation
H5 = ( DayH / DayL ) * DayC;
H4 = ( ( DayH - DayL ) * ( 1.1 / 2 ) ) + DayC;
H3 = ( ( DayH - DayL ) * ( 1.1 / 4 ) ) + DayC;
R2 = ( ( DayH - DayL ) * ( 1.1 / 6 ) ) + DayC;
R1 = ( ( DayH - DayL ) * ( 1.1 / 12 ) ) + DayC;
S1 = DayC - ( ( DayH - DayL ) * ( 1.1 / 12 ) );
S2 = DayC - ( ( DayH - DayL ) * ( 1.1 / 6 ) ) ;
L3 = DayC - ( ( DayH - DayL ) * ( 1.1 / 4 ) ) ;
L4 = DayC - ( ( DayH - DayL ) * ( 1.1 / 2 ) ) ;
L5 = DayC - ( H5 - DayC );
CW=H3-L3;
}
//Hide and Show Camrilla Pivots
MainCamarilla=ParamToggle("MainCamarilla","No|Yes",1);
InnerCamarilla=ParamToggle("InnerCamarilla","No|Yes",1);
TargetCamrilla=ParamToggle("TargetCamrilla","No|Yes",1);
//Color Chose for your pivots
Maincolor = ParamColor("MainCamrilla", colorOrange);
InnerColor = ParamColor("Inner Color", colorBrightGreen);
Targetcolor=ParamColor("Target Color", colorBrightGreen);
MainCamrillaStyle =ParamStyle("Style",styleLine,maskPrice);
//InnerCamrillaStyle
//TargetCamrillaStyle
if(MainCamarilla)
{
Plot( IIf( DayCond, H4, Null ), "H4", Maincolor, MainCamrillaStyle, Null, Null, 0 );
//Plot( IIf( DayCond, H4, Null ), "H4", Maincolor, styleStaircase, Null, Null, 2 );
Plot( IIf( DayCond, H3, Null), "H3", Maincolor, MainCamrillaStyle, Null, Null,0 );
//Plot( IIf( DayCond, H3, Null), "H3", Maincolor, MainCamrillaStyle, Null, Null, 2 );
Plot( IIf( DayCond, L3, Null), "L3", Maincolor, MainCamrillaStyle, Null, Null, 0 );
//Plot( IIf( DayCond, L3, Null), "L3", Maincolor, MainCamrillaStyle, Null, Null, 2 );
Plot( IIf( DayCond, L4, Null), "L4", Maincolor, MainCamrillaStyle, Null, Null, 0 );
//Plot( IIf( DayCond, L4, Null), "L4", Maincolor, MainCamrillaStyle, Null, Null, 2 );
//PlotText("hello,
}
if(InnerCamarilla)
{
Plot( IIf( DayCond, R2, Null), "R2", InnerColor, styleLine, Null, Null, 0 );
//Plot( IIf( DayCond, R1, Null), "R1", InnerColor, styleLine, Null, Null, 2 );
Plot( IIf( DayCond, R1, Null), "R2", InnerColor, styleLine, Null, Null, 0 );
//Plot( IIf( DayCond, R1, Null), "R1", InnerColor, styleLine, Null, Null, 2 );
Plot( IIf( DayCond, S1, Null), "S1", InnerColor, styleLine, Null, Null, 0 );
//Plot( IIf( DayCond, S1, Null), "S1", InnerColor, styleLine, Null, Null, 2 );
Plot( IIf( DayCond, S2, Null), "S2", InnerColor, styleLine, Null, Null, 0 );
//Plot( IIf( DayCond, S2, Null), "S2", InnerColor, styleLine, Null, Null, 2 );
}
if(TargetCamrilla)
{
Plot( IIf( DayCond, L5, Null), "L5", Targetcolor, styleLine, Null, Null, 0 );
//Plot( IIf( DayCond, L5, Null), "L5", Targetcolor, styleLine, Null, Null, 2 );
Plot( IIf( DayCond, H5, Null), "H5", Targetcolor, styleLine, Null, Null, 2 );
//Plot( IIf( DayCond, H5, Null), "H5", Targetcolor, styleLine, Null, Null, 2 );
}
_SECTION_END();
}
_SECTION_BEGIN("High Low Plotter");
//Plot Yesterday' Low & High
tmfrm=VarGet(ParamList("TimeFrame","inHourly|inDaily|inWeekly|inMonthly|inQuarterly"));
YlowPlot=ParamToggle("Yesterday Low","No|Yes",1);
YHighPlot=ParamToggle("Yesterday High","No|Yes",1);
ylow=TimeFrameGetPrice( "L",tmfrm,-1 );
yHigh=TimeFrameGetPrice( "H",tmfrm,-1 );
if(YlowPlot)
{
PlotOHLC(ylow,ylow,ylow,ylow,"Yesterday Low",styleDots,1);
}
if(YHighPlot)
{
PlotOHLC(yHigh,yHigh,yHigh,yHigh,"Yesterday Low",styleDots,1);
}
_SECTION_END();
Write a note in this area. It's really easy to share with others. Click here ...
![]() |
Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 12 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team