NSK New Text Document

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 3

_SECTION_BEGIN("best Camarilla Levels");

// Background color

SetChartBkGradientFill( ParamColor("BgTop", colorDarkGrey),


ParamColor("BgBottom", colorDarkGrey),ParamColor("titleblock",colorDarkGrey ));

EntrySignal = C > ( LLV( L, 20 ) + 2 * ATR( 10 ) );


ExitSignal = C < ( HHV( H, 20 ) - 2 * ATR( 10 ) );
Color = IIf( EntrySignal, colorGreen, IIf( ExitSignal, colorRed, colorGrey50));
Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle |
ParamStyle("Style") | GetPriceStyle() );
//---- Camarilla pivot points

DayH = TimeFrameGetPrice("H", inDaily, -1);// yesterdays high


DayL = TimeFrameGetPrice("L", inDaily, -1);//low
DayC = TimeFrameGetPrice("C", inDaily, -1);//close
DayO = TimeFrameGetPrice("O", inDaily);// current day open
HiDay = TimeFrameGetPrice("H", inDaily);
LoDay = TimeFrameGetPrice("L", inDaily);

TimeFrameSet( inDaily );

R6 = (DayH / DayL) * DayC * 1.002;


H5 = (DayH / DayL) * DayC;
H4 = (((DayH / DayL) + 0.83) / 1.83) * DayC;
H3 = ( ( (DayH / DayL) + 2.66) / 3.66) * DayC;
H2 = ( ( (DayH / DayL) + 4.5) / 5.5) * DayC;
H1 = ( ( (DayH / DayL) + 10) / 11) * DayC;

L1 = (2- ( ( (DayH / DayL) + 10) / 11)) * DayC;


L2 = (2-( (DayH / DayL) + 4.5) / 5.5) * DayC;
L3 = (2-(( DayH / DayL) + 2.66) / 3.66) * DayC;
L4 = (2-( (DayH / DayL) + 0.83) / 1.83) * DayC;
L5 = (2-( DayH / DayL)) * DayC;
S6 = (2-( DayH / DayL)) * DayC * 0.998;

ShowH5 = ParamToggle("H5", "No|Yes");


H5Color=ParamColor( "H5Color", colorGold );
ShowH4 = ParamToggle("H4", "yes|no");
H4Color=ParamColor( "H4Color", colorDarkRed );
ShowH3 = ParamToggle("H3", "yes|no");
H3Color=ParamColor( "H3Color", colorRed );
ShowH2 = ParamToggle("H2", "No|Yes");
H2Color=ParamColor( "H2Color", colorOrange );
ShowH1 = ParamToggle("H1", "No|Yes");
H1Color=ParamColor( "H1Color", colorOrange );

ShowL1 = ParamToggle("L1", "No|Yes");


L1Color=ParamColor( "L1Color", colorOrange );
ShowL2 = ParamToggle("L2", "No|Yes");
L2Color=ParamColor( "L2Color", colorOrange );
ShowL3 = ParamToggle("L3", "yes|no");
L3Color=ParamColor( "L3Color", colorGreen );
ShowL4 = ParamToggle("L4", "yes|no");
L4Color=ParamColor( "L4Color", colorDarkGreen );
ShowL5 = ParamToggle("L5", "No|Yes");
L5Color=ParamColor( "L5Color", colorGold );

//Shadowcolor = ParamColor("Shadow",ColorRGB(40,30,20));
//ShadowcoloH1 = ParamColor("Shadow1",ColorRGB(20,30,20));
//ShadowcoloH2 = ParamColor("Shadow2",ColorRGB(30,40,0));

//style = styleDots | styleThick + styleNoRescale ;


style = styleLine + styleNoRescale ;

if(ShowH5 == True)
Plot(H5, "H5",H5Color,style);
if(ShowH4 == False)
Plot(H4, "H4",H4Color,Style);
if(ShowH3 == False)
Plot(H3, "H3",H3Color,styleDots,styleThick,1);
if(ShowH2 == True)
Plot(H2, "H2",H2Color,styleLine);
if(ShowH1 == True)
Plot(H1, "H1",H1Color,styleLine);

if(ShowL1 == True)
Plot(L1, "L1",L1Color,styleLine);
if(ShowL2 == True)
Plot(L2, "L2",L2Color,styleLine);
if(ShowL3 == False)
Plot(L3, "L3",L3Color,styleDots,styleThick,1);
if(ShowL4 == False)
Plot(L4, "L4",L4Color,style);
if(ShowL5 == True)
Plot(L5, "L5",L5Color,style);

ToolTip=StrFormat("Open: %g\nHigh: %g\nLow: %g\nClose: %g (%.1f%%)\nVolume:


"+NumToStr( V, 1 ), O, H, L, C, SelectedValue( ROC( C, 1)));
TimeFrameRestore();

Title = EncodeColor(colorWhite)+ "best CAMARILLA LEVELS" + " - " + Name() + " - "
+ EncodeColor(colorWhite)+ Interval(2) + EncodeColor(colorWhite) +
" - " + Date() +" - "
//+ WriteIf(Col_action==colorGreen, EncodeColor(colorGreen)+"stay LONG","")+
WriteIf(Col_action==colorRed, EncodeColor(colorRed)+"stay SHORT","")+
WriteIf(Col_action==colorBlack, EncodeColor(colorYellow)+"No Trend","")+"\n"
+ "Vol= "+ WriteVal(V) +WriteIf ( V > MA(V,26) ,EncodeColor(colorWhite)+" UP "+
(V/MA(V,26))*100 + " %", EncodeColor(colorWhite)+" DOWN "+ (V/MA(V,26))*100 + "
%")
+ EncodeColor(colorWhite)+ "\n H5 (LONG BREAKOUT TARGET): "+
EncodeColor(colorWhite)+H5
+ EncodeColor(colorWhite)+ "\n H4 (SHORT SL & LONG BREAKOUT): "+
EncodeColor(colorWhite)+H4
+ EncodeColor(colorWhite)+ "\n H3 (SHORT): "+ EncodeColor(colorWhite)+H3
+ EncodeColor(colorWhite)+ "\n H2: "+ EncodeColor(colorWhite)+H2
+ EncodeColor(colorWhite)+ "\n H1: "+ EncodeColor(colorWhite)+H1
+ EncodeColor(colorWhite)+ "\n L1: "+ EncodeColor(colorWhite)+L1
+ EncodeColor(colorWhite)+ "\n L2: "+ EncodeColor(colorWhite)+L2
+ EncodeColor(colorWhite)+ "\n L3 (LONG): "+ EncodeColor(colorWhite)+L3
+ EncodeColor(colorWhite)+ "\n L4 (LONG SL & SHORT BREAKOUT): "+
EncodeColor(colorWhite)+L4
+ EncodeColor(colorWhite)+ "\n L5 (SHORT BREAKOUT TARGET): "+
EncodeColor(colorWhite)+L5;
_SECTION_END();
_SECTION_BEGIN("Magfied Market Price");

//Magfied Market Price


FS=Param("Font Size",30,11,100,1);
GfxSelectFont("Times New Roman", FS, 700, True );
GfxSetBkMode( colorWhite );
GfxSetTextColor( ParamColor("Color",colorBlack) );
Hor=Param("Horizontal Position",800,1,1200,1);
Ver=Param("Vertical Position",12,1,830,1);
GfxTextOut(Date() +"="+C, Hor , Ver );
YC=TimeFrameGetPrice("C",inDaily,-1);
DD=Prec(C-YC,2);
xx=Prec((DD/YC)*100,2);
GfxSelectFont("Times New Roman", 11, 700, True );
GfxSetBkMode( colorBlack );
GfxSetTextColor(ParamColor("Color",colorBlack) );
GfxSelectFont("Tahoma", Status("pxheight")/40 );
_SECTION_END();

You might also like