Stock Portfolio Organizer
The ultimate porfolio management solution.
Shares, Margin, CFD's, Futures and Forex
EOD and Realtime
Dividends and Trust Distributions
And Much More ....
WiseTrader Toolbox
#1 Selling Amibroker Plugin featuring:
Advanced Adaptive Indicators
Advanced Pattern Exploration
Neural Networks
And Much More ....
Nikar with Sup N Res Level for Amibroker (AFL)
Copy & Paste Friendly
Back
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 | _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" , colorDefault ), styleNoTitle | ParamStyle ( "Style" ) | GetPriceStyle () ); _SECTION_END (); _SECTION_BEGIN ( "MA1" ); P = ParamField ( "Price field" ,-1); Periods = Param ( "Periods" , 10, 2, 300, 1, 10 ); Plot ( MA ( P, Periods ), _DEFAULT_NAME (), ParamColor ( "Color" , colorBlue ), ParamStyle ( "Style" ) ); _SECTION_END (); _SECTION_BEGIN ( "Arrow Detection tm" ); Buy = Cross ( MACD (05,30), Signal (05,30,10)); Sell = Cross ( Signal (05,30,10), MACD (05,30) ); PlotShapes ( IIf ( Buy , shapeHollowUpArrow , shapeNone ) , colorWhite ,0, Low , Offset=-25) ; PlotShapes ( IIf ( Sell , shapeHollowDownArrow, shapeNone ), colorWhite ,0, High , Offset=-25) ; _SECTION_END (); _SECTION_BEGIN ( "MACD Exploration" ); r1 = Param ( "Fast avg" , 12, 2, 200, 1 ); r2 = Param ( "Slow avg" , 26, 2, 200, 1 ); r3 = Param ( "Signal avg" , 9, 2, 200, 1 ); Z= Param ( "zig" ,1,0,10,0.1); Cond1 = Cross ( MACD (r1,r2), Signal (r1,r2,r3)); Cond3 = Zig ( C ,z)> Ref ( Zig ( C ,z),-4); Buy = Cond1 AND Cond3; Cond4 = Cross ( Signal (r1,r2,r3), MACD (r1,r2)); Cond6 = Zig ( C ,z)< Ref ( Zig ( C ,z),-4); Sell = Cond4 AND Cond6; Trigger = WriteIf ( Buy , "Buy" , "" ) + WriteIf ( Sell , "Sell" , "" ); _SECTION_BEGIN ( "ZIG-ZAG" ); P = ParamField ( "Price field" ); change = Param ( "% change" ,5,0.1,25,0.1); _SECTION_END (); _SECTION_BEGIN ( "EMA" ); P = ParamField ( "Price field" ,-1); Periods = Param ( "Periods" , 15, 2, 300, 1, 10 ); _SECTION_END (); _SECTION_BEGIN ( "MACD Exploration" ); r1 = Param ( "Fast avg" , 12, 2, 200, 1 ); r2 = Param ( "Slow avg" , 26, 2, 200, 1 ); r3 = Param ( "Signal avg" , 9, 2, 200, 1 ); Z= Param ( "zig" ,1,0,10,0.1); Cond1 = Cross ( MACD (r1,r2), Signal (r1,r2,r3)); Cond3 = Zig ( C ,z)> Ref ( Zig ( C ,z),-4); Buy = Cond1 AND Cond3; Cond4 = Cross ( Signal (r1,r2,r3), MACD (r1,r2)); Cond6 = Zig ( C ,z)< Ref ( Zig ( C ,z),-4); Sell = Cond4 AND Cond6; Trigger = WriteIf ( Buy , "Buy" , "" ) + WriteIf ( Sell , "Sell" , "" ); _N (Title = StrFormat ( "{{NAME}} {{DATE}} {{INTERVAL}}: O=%1.2f, H=%1.2f, L=%1.2f, C=%1.2f, V=%1.0f\n{{VALUES}}" , O , H , L , C , V )); BG = IIf ( Buy , colorPaleGreen , IIf ( Sell , colorRose , colorDefault )); FG = IIf ( Buy , colorDarkGreen , IIf ( Sell , colorDarkRed , colorDefault )); if ( Status ( "action" ) == actionIndicator) { Plot ( C , "" , colorGrey50 , styleBar ); PlotShapes ( IIf ( Buy , shapeCircle , shapeNone ), colorGreen , 0, L , Offset=-40); PlotShapes ( IIf ( Sell , shapeCircle , shapeNone ), colorRed , 0, H , Offset=40); PlotShapes (shapeHollowDownArrow* Sell , colorYellow ,0, SellPrice ,-05); PlotShapes ( shapeHollowUpArrow * Buy , colorYellow ,0, BuyPrice ,-05); } _SECTION_BEGIN ( "Arrow Detection" ); Buy = Cross ( MACD (12,26), Signal (12,26,9)); Sell = Cross ( Signal (12, 26, 9), MACD (12,26) ); PlotShapes ( IIf ( Buy , shapeUpArrow , shapeNone ) , colorGreen ,0, Low , Offset=-10) ; PlotShapes ( IIf ( Sell , shapeDownArrow , shapeNone ), colorRed ,0, High , Offset=-10) ; _SECTION_END (); _SECTION_BEGIN ( "Live Market Price" ); FS= Param ( "Font Size" ,30,11,100,1); GfxSelectFont ( "Times New Roman" , FS, 700, True ); GfxSetBkMode ( colorWhite ); GfxSetTextColor ( ParamColor ( "Color" , colorLightBlue ) ); Hor= Param ( "Horizontal Position" ,373,1,1200,1); Ver= Param ( "Vertical Position" ,45,1,830,1); GfxTextOut ( "" + 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 ( colorWhite ); GfxSetTextColor ( ParamColor ( "Color" , colorBlack ) ); GfxTextOut ( "" +DD+ " (" +xx+ "%)" , Hor , Ver+45 ); _SECTION_END (); _SECTION_BEGIN ( "Name" ); GfxSetOverlayMode (1); GfxSelectFont ( "Tahoma" , Status ( "pxheight" )/8 ); GfxSetTextAlign ( 6 ); // center alignment GfxSetTextColor ( ColorHSB ( 42, 42, 42 ) ); GfxSetBkMode (0); // transparent GfxTextOut ( Name (), Status ( "pxwidth" )/2, Status ( "pxheight" )/12 ); GfxSelectFont ( "Tahoma" , Status ( "pxheight" )/18 ); GfxTextOut ( IndustryID (1), Status ( "pxwidth" )/2, Status ( "pxheight" )/4 ); GfxSelectFont ( "Tahoma" , Status ( "pxheight" )/18 ); GfxSelectFont ( "Tahoma" , Status ( "pxheight" )/36 ); GfxTextOut ( "SOHEL HAQUE" , Status ( "pxwidth" )/2, Status ( "pxheight" )/3 ); _SECTION_END (); SetBarFillColor ( IIf ( O > C , colorDarkRed , colorBrightGreen ) ); Plot ( C , "Price" , IIf ( O > C , colorRed , colorGreen ), styleCandle ); HaClose = EMA (( O + H + L + C )/4,3); HaOpen = AMA ( Ref ( HaClose, -1 ), 0.5 ); HaHigh = Max ( H , Max ( HaClose, HaOpen ) ); HaLow = Min ( L , Min ( HaClose, HaOpen ) ); _SECTION_BEGIN ( "Resistance" ); supres= ParamToggle ( "Sup_Res" , "No|Yes" ,1); if (supres) { Prd1= Param ( "Res_Period1" ,2,0,200,1); test = TEMA ( High , Prd1 ) ; PK = test > Ref (test,-1) AND Ref (test,1) < High ; //Peak PKV0 = ValueWhen (PK,haHigh,0); //PeakValue0 PKV1 = ValueWhen (PK,haHigh,1); //PeakValue1 PKV2 = ValueWhen (PK,haHigh,2); //PeakValue2 MPK = PKV2 < PKV1 AND PKV1 > PKV0 ; //MajorPeak MPKV = ValueWhen ( Ref (MPK,-1) == 0 AND MPK == 1, PKV1,1); //MajorPeakValue MPKD = ValueWhen ( Ref (MPK,-1) == 0 AND MPK == 1, DateNum (),1); //MajorPeakDate SD = IIf ( DateNum () < LastValue (MPKD,lastmode = True ), Null , LastValue (MPKV,Lastmode = True )); //SelectedDate Plot (SD, "Resist1" , colorBrown , ParamStyle ( "ResStyle1" , styleLine | styleNoTitle , maskAll )); MPKV2 = ValueWhen ( Ref (MPK,-1) == 0 AND MPK == 1, PKV1,2); //MajorPeakValue MPKD2 = ValueWhen ( Ref (MPK,-1) == 0 AND MPK == 1, DateNum (),2); //MajorPeakDate SD2 = IIf ( DateNum () < LastValue (MPKD2,lastmode = True ), Null , LastValue (MPKV2,Lastmode = True )); //SelectedDate Plot (SD2, "Resist2" , colorBrown , ParamStyle ( "ResStyle2" , styleLine | styleNoTitle , maskAll )); MPKV3 = ValueWhen ( Ref (MPK,-1) == 0 AND MPK == 1, PKV1,3); //MajorPeakValue MPKD3 = ValueWhen ( Ref (MPK,-1) == 0 AND MPK == 1, DateNum (),3); //MajorPeakDate SD3 = IIf ( DateNum () < LastValue (MPKD3,lastmode = True ), Null , LastValue (MPKV3,Lastmode = True )); //SelectedDate Plot (SD3, "Resist3" , colorBrown , ParamStyle ( "ResStyle3" , styleLine | styleNoTitle , maskAll )); MPKV4 = ValueWhen ( Ref (MPK,-1) == 0 AND MPK == 1, PKV1,4); //MajorPeakValue MPKD4 = ValueWhen ( Ref (MPK,-1) == 0 AND MPK == 1, DateNum (),4); //MajorPeakDate SD4 = IIf ( DateNum () < LastValue (MPKD4,lastmode = True ), Null , LastValue (MPKV4,Lastmode = True )); //SelectedDate Plot (SD4, "Resist4" , colorBrown , ParamStyle ( "ResStyle4" , styleLine | styleNoTitle , maskAll )); MPKV5 = ValueWhen ( Ref (MPK,-1) == 0 AND MPK == 1, PKV1,5); //MajorPeakValue MPKD5 = ValueWhen ( Ref (MPK,-1) == 0 AND MPK == 1, DateNum (),5); //MajorPeakDate SD5 = IIf ( DateNum () < LastValue (MPKD5,lastmode = True ), Null , LastValue (MPKV5,Lastmode = True )); //SelectedDate Plot (SD5, "Resist5" , colorBrown , ParamStyle ( "ResStyle5" , styleLine | styleNoTitle , maskAll )); MPKV6 = ValueWhen ( Ref (MPK,-1) == 0 AND MPK == 1, PKV1,6); //MajorPeakValue MPKD6 = ValueWhen ( Ref (MPK,-1) == 0 AND MPK == 1, DateNum (),6); //MajorPeakDate SD6 = IIf ( DateNum () < LastValue (MPKD6,lastmode = True ), Null , LastValue (MPKV6,Lastmode = True )); //SelectedDate Plot (SD6, "Resist6" , colorBrown , ParamStyle ( "ResStyle6" , styleLine | styleNoTitle , maskAll )); _SECTION_END (); _SECTION_BEGIN ( "Support" ); //SP=L > Ref(L,-1) AND Ref(L,1) < L;//Peak Prd2= Param ( "Sup_Period1" ,2,0,200,1); test2 = TEMA ( Low , Prd2 ) ; SP = Ref (test2,1) > Low AND test2 < Ref (test2,-1); //Peak SPV0 = ValueWhen (SP,haLow,0); //PeakValue0 SPV1 = ValueWhen (SP,haLow,1); //PeakValue1 SPV2 = ValueWhen (SP,haLow,2); //PeakValue2 //PKV5 = ValueWhen(PK,haHigh,5);//PeakValue5 //PKV6 = ValueWhen(PK,haHigh,6);//PeakValue6 MSP = SPV2 > SPV1 AND SPV1 < SPV0 ; //MajorPeak MSPV = ValueWhen ( Ref (MSP,-1) == 0 AND MSP == 1, SPV1,1); MSPD = ValueWhen ( Ref (MSP,-1) == 0 AND MSP == 1, DateNum (),1); SD = IIf ( DateNum () < LastValue (MSPD,lastmode = True ), Null , LastValue (MSPV,Lastmode = True )); Plot (SD, "Support1" , colorGreen , ParamStyle ( "SupportLine1" , styleLine | styleNoTitle , maskAll )); MSPV2 = ValueWhen ( Ref (MSP,-1) == 0 AND MSP == 1, SPV1,2); MSPD2 = ValueWhen ( Ref (MSP,-1) == 0 AND MSP == 1, DateNum (),2); SD2 = IIf ( DateNum () < LastValue (MSPD2,lastmode = True ), Null , LastValue (MSPV2,Lastmode = True )); Plot (SD2, "Support2" , colorGreen , ParamStyle ( "SupportLine2" , styleLine | styleNoTitle , maskAll )); MSPV3 = ValueWhen ( Ref (MSP,-1) == 0 AND MSP == 1, SPV1,3); MSPD3 = ValueWhen ( Ref (MSP,-1) == 0 AND MSP == 1, DateNum (),3); SD3 = IIf ( DateNum () < LastValue (MSPD3,lastmode = True ), Null , LastValue (MSPV3,Lastmode = True )); Plot (SD3, "Support3" , colorGreen , ParamStyle ( "SupportLine3" , styleLine | styleNoTitle , maskAll )); MSPV4 = ValueWhen ( Ref (MSP,-1) == 0 AND MSP == 1, SPV1,4); MSPD4 = ValueWhen ( Ref (MSP,-1) == 0 AND MSP == 1, DateNum (),4); SD4 = IIf ( DateNum () < LastValue (MSPD4,lastmode = True ), Null , LastValue (MSPV4,Lastmode = True )); Plot (SD4, "Support4" , colorGreen , ParamStyle ( "SupportLine4" , styleLine | styleNoTitle , maskAll )); MSPV5 = ValueWhen ( Ref (MSP,-1) == 0 AND MSP == 1, SPV1,5); MSPD5 = ValueWhen ( Ref (MSP,-1) == 0 AND MSP == 1, DateNum (),5); SD5 = IIf ( DateNum () < LastValue (MSPD5,lastmode = True ), Null , LastValue (MSPV5,Lastmode = True )); Plot (SD5, "Support5" , colorGreen , ParamStyle ( "SupportLine5" , styleLine | styleNoTitle , maskAll )); MSPV6 = ValueWhen ( Ref (MSP,-1) == 0 AND MSP == 1, SPV1,6); MSPD6 = ValueWhen ( Ref (MSP,-1) == 0 AND MSP == 1, DateNum (),6); SD6 = IIf ( DateNum () < LastValue (MSPD6,lastmode = True ), Null , LastValue (MSPV6,Lastmode = True )); Plot (SD6, "Support6" , colorGreen , ParamStyle ( "SupportLine6" , styleLine | stylehidden | styleNoTitle , maskAll )); } _SECTION_END (); |