Stock Portfolio Organizer
The ultimate porfolio management solution.
WiseTrader Toolbox
#1 Selling Amibroker Plugin featuring:
KP SystemV.2 (final) for Amibroker (AFL)
I’ve putted in the Standard Error Bands and NewUpDown.
Some modification.
Added some more visuals.
For extra information look at V.1
Hope you like it, enjoy!
Similar Indicators / Formulas
Indicator / Formula
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 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 | _SECTION_BEGIN ( "Price" ); SetChartOptions (0, chartShowArrows | chartShowDates ); SetChartBkColor ( ParamColor ( "Panel Color" , colorLightGrey )); SetChartBkGradientFill ( ParamColor ( "Upper Chart" , colorLightGrey ), ParamColor ( "Lower Chart" , colorLightGrey )); dec=( Param ( "Decimals" ,2,0,7,1)/10)+1; GraphXSpace = Param ( "GraphXSpace" ,20,-10,25,1); BarTime1= LastValue ( TimeNum () - Now (4)); DataError= IIf ( Now (4) > TimeNum (), True , False ); TimeBase= IIf ( Interval (1)>0,1,0); _N (StrBarTime= NumToStr (BarTime1,1.0, False )); BT_Length= StrLen (StrBarTime); _N (TimeLeft_= WriteIf (BT_Length==1, "0:0" +StrBarTime, WriteIf (BT_Length==2, "0:" +StrBarTime, WriteIf (BT_Length==3, StrLeft (StrBarTime,1)+ ":" + StrRight (StrBarTime,2), StrLeft (StrBarTime,2)+ ":" + StrRight (StrBarTime,2))))); TimeLeft= WriteIf (TimeBase==1,TimeLeft_, "N/A" ); Title= EncodeColor (16)+ " High = " + EncodeColor (27) + WriteVal ( H ,dec) + EncodeColor (16)+ " Low = " + EncodeColor (32)+ WriteVal ( L ,dec) + EncodeColor (16) + " TimeLeft = " + EncodeColor (29) +TimeLeft + EncodeColor (16)+ " Volume = " + EncodeColor (18)+ WriteVal ( V ,1); _SECTION_END (); _SECTION_BEGIN ( "TSKPScoreCardColors" ); Ctmpl= E_TSKPCOLORTMPL( Open , High , Low , Close , Volume ); total=0; total=total+ IIf (tskp_colortmplcnd0 > 0, 1,-1); total=total+ IIf (tskp_colortmplcnd1 > 0, 1,-1); total=total+ IIf (tskp_colortmplcnd2 > 0, 1,-1); total=total+ IIf (tskp_colortmplcnd3 > 0, 1,-1); total=total+ IIf (tskp_colortmplcnd4 > 0, 1,-1); total=total+ IIf (tskp_colortmplcnd5 > 0, 1,-1); total=total+ IIf (tskp_colortmplcnd6 > 0, 1,-1); total=total+ IIf (tskp_colortmplcnd7 > 0, 1,-1); total=total+ IIf (tskp_colortmplcnd8 > 0, 1,-1); for (i=0; i < BarCount ; i++ ) { if ( total[i] >= 5 ) Color[i]= colorBlue ; else if (total[i] <= -5 ) Color[i]= colorRed ; else Color[i]= colorYellow ; } CO = Open ; CH = High ; CL = Low ; CC = Close ; PlotOHLC ( CO,CH,CL,CC, "Price" , color, styleCandle ); //Plot Selected Ticker _SECTION_END (); _SECTION_BEGIN ( "KP DynSupRes" ); sw = E_TSKPSWINGLINE( High , Low , Close ); //tskp_sw, tskp_swmean,tskp_swupper,tskp_swlower Plot (tskp_swmean, "Mean" , ParamColor ( "MeanColor" , colorBlack ), ParamStyle ( "MeanStyle" , styleThick ) ); Plot (tskp_swupper, "Resistance" , ParamColor ( "ResistanceColor" , colorDarkRed ), ParamStyle ( "ResistanceStyle" , styleThick ) ); Plot (tskp_swlower, "Support" , ParamColor ( "SupportColor" , colorDarkGreen ), ParamStyle ( "SupportStyle" , styleThick ) ); _SECTION_END (); _SECTION_BEGIN ( "KP MeanSwingLine" ); sw = E_TSKPSWINGLINE( High , Low , Close ); Plot (tskp_swmean, "Fat MeanSwing" , ParamColor ( "FatColor" , colorLightYellow ), ParamStyle ( "FatStyle" , styleLine ),0,0,0,0,4); _SECTION_END (); _SECTION_BEGIN ( "KP TrendBias" ); /* TSKPTrendBias with TSKPSEB */ Disp1= ParamToggle ( "Trend Bias" , "Show|Hide" ,1); parmTBStyle = ParamStyle ( "Trend Bias Style" , styleLine | styleThick , maskAll ); parmTBColor = ParamColor ( "Trend Bias Color" , colorRed ); parmTBSlowStyle = ParamStyle ( "Trend Bias Slow Style" , styleLine | styleThick , maskAll ); parmTBSlowColor = ParamColor ( "Trend Bias Slow Color" , colorBlue ); dummy = E_TSKPTRENDBIAS( High , Low , Close ); KPTB = tskp_sb; KPTBSlow = tskp_tbxavg; if (Disp1){ Plot (KPTB, "TB" , parmTBColor, parmTBStyle); Plot (KPTBSlow, "TBSlow" , parmTBSlowColor, parmTBSlowStyle); } _SECTION_END (); _SECTION_BEGIN ( "KPAutoStop-KPA900 Trend" ); Disp2= ParamToggle ( "KPAutoStop-KPA900 Trend" , "Show|Hide" ,0); parmASStyle = ParamStyle ( "AutopStop Style" , styleLine | styleThick , maskAll ); parmASColor = ParamColor ( "AutoStop Color" , colorYellow ); parmPA900Style = ParamStyle ( "KP A900 Style" , styleLine | styleThick , maskAll ); parmPA900Color = ParamColor ( "KP A900 Color" , colorWhite ); if (Disp2){ Plot ( E_TSKPAUTOSTOP( High , Low , Close ) , "KP AutoStop" ,parmASColor, parmASStyle); Plot ( E_TSKPA900( Close ) , "KP A900" , parmPA900Color, parmPA900Style);} _SECTION_END (); _SECTION_BEGIN ( "KPStopLine-KPTriggerLine" ); Disp3= ParamToggle ( "KPStopLine-KPTriggerLine" , "Show|Hide" ,0); parmSLStyle = ParamStyle ( "KPStopLine Style" , styleLine | styleThick , maskAll ); parmSLColor = ParamColor ( "KPStopLine Color" , colorRed ); parmTLStyle = ParamStyle ( "KPTriggerLine Style" , styleLine | styleThick , maskAll ); parmTLColor = ParamColor ( "KPTriggerLine Color" , colorBlue ); sw = E_TSKPUPSELL( Open , High , Low , Close , Volume ); if (Disp3){ Plot ( E_TSKPSTOPLINE( High , Low , Close ) , "KPStopLine" , parmSLColor,parmSLStyle ); Plot ( tskp_triggerline, "KPTriggerLine" , parmTLColor,parmTLStyle ); } _SECTION_END (); _SECTION_BEGIN ( "KP Pivots" ); Disp4= ParamToggle ( "KP Pivots" , "Show|Hide" ,1); parmKPPivotHighColor = ParamColor ( "KP Pivot High" , colorBlack ); parmKPPivotLowColor = ParamColor ( "KP Pivot Low" , colorBlack ); CHiPr=0; CLoPr=9999999; blsLong=0; PrevCOBar=0; NumBars=0; PrePP=0; PrevLowVal=9999999; BuySig=0; blsShort=0; PrevHiVal=0; blsNewCO=0; BarDif=0; KPA900Val = E_TSKPA900( Close ); KPAutoStopVal = E_TSKPAUTOSTOP( High , Low , Close ); // -- Create 0-initialized arrays the size of barcount aHPivs= H - H ; aLPivs= L - L ; aHiVal= H - H ; aLoVal= L - L ; Ctmpl= E_TSKPCOLORTMPL( Open , High , Low , Close , Volume ); sctotal= 0; sctotal= sctotal+ IIf (tskp_colortmplcnd0 > 0, 1, -1); sctotal= sctotal+ IIf (tskp_colortmplcnd1 > 0, 1, -1); sctotal= sctotal+ IIf (tskp_colortmplcnd2 > 0, 1, -1); sctotal= sctotal+ IIf (tskp_colortmplcnd3 > 0, 1, -1); sctotal= sctotal+ IIf (tskp_colortmplcnd4 > 0, 1, -1); sctotal= sctotal+ IIf (tskp_colortmplcnd5 > 0, 1, -1); sctotal= sctotal+ IIf (tskp_colortmplcnd6 > 0, 1, -1); sctotal= sctotal+ IIf (tskp_colortmplcnd7 > 0, 1, -1); sctotal= sctotal+ IIf (tskp_colortmplcnd8 > 0, 1, -1); for (curBar=0; curBar < BarCount -1; curBar++) { if ( curBar == 0 ) { CHiPr= High [curBar]; CHiBar=curBar; CLoPr= Low [curBar]; CLoBar=curBar; blsLong=0; blsShort=0; blsNewCO=0; PrePP=0; PrevCOBar=0; PrevHiVal= High [curBar]; PrevLowVal= Low [curBar]; BuySig=0; SellSig=0; blsLL=0; } if ( High [CurBar] >= CHiPr) { CHiPr = High [CurBar]; ChiBar = CurBar; } if ( Low [CurBar] <= CLoPr) { CLoPr = Low [CurBar]; CLoBar = CurBar; } if ( (KPA900Val[curBar] >= KPAutoStopVal[curbar]) AND (PrePP != -1) AND (blsLong != 1) ){ BarDif = CurBar - PrevCOBar; if (BarDif >= NumBars) { blsLong=1; blsShort=0; blsNewCO=1; PrevCOBar = CurBar;} } if ( (KPA900Val[curBar] <= KPAutoStopVal[curbar]) AND (PrePP != 1) AND (blsShort != 1) ){ BarDif = CurBar - PrevCOBar; if (BarDif >= NumBars) { blsLong=0; blsShort=1; blsNewCO=1; PrevCOBar=CurBar;} } if ( (blsNewCO == 1) AND (sctotal[CurBar] >= 5) AND (blsLong == 1) ) { LVal = CurBar - CLoBar; for (j= CLoBar-1; j <= CLoBar+1; j++) { if (j >=0) { aLPivs[j] = 1; aLoVal[j] = CLoPr;} } PrePP=-1; blsNewCO=0; CHiPr= High [CurBar]; CHiBar=CurBar; CLoPr= Low [Curbar]; CLoBar=CurBar; } else if ((blsNewCO == 1) AND (sctotal[CurBar] <= -5) AND (blsShort == 1) ) { HVal = CurBar - CHiBar; for (j= CHiBar-1; j <= CHiBar+1; j++) { if (j >=0) { aHPivs[j] = 1; aHiVal[j] = CHiPr;} } PrePP=1; blsNewCO=0; CHiPr= High [CurBar]; CHiBar=CurBar; CLoPr= Low [Curbar]; CLoBar=CurBar;} } if (Disp4){ PlotShapes ( IIf (aHPivs == 1, shapeSmallCircle , shapeNone ),parmKPPivotHighColor,0,aHiVal+0.05,Offset=10); PlotShapes ( IIf (aLPivs == 1, shapeSmallCircle , shapeNone ),parmKPPivotLowColor,0,aLoVal-0.05,Offset=-10);} _SECTION_END (); _SECTION_BEGIN ( "KP PivotPops" ); Disp5= ParamToggle ( "KP PivotPops" , "Show|Hide" ,0); parmKPPivPopBuyColor = ParamColor ( "KP PivotPop Buy" , colorDarkBlue ); parmKPPivPopSellColor = ParamColor ( "KP PivotPop Sell" , colorDarkRed ); BarCancl= Param ( "BarCancel" ,4,1,20,1); frMeanSwing= Param ( "MeanSwing Filter" ,1,0,1,1); // 1- Use MeanSwing Filter, 0-Donot use MeanSwing Filter KPA900Val = E_TSKPA900( Close ); KPAutoStopVal = E_TSKPAUTOSTOP( High , Low , Close ); //KPFast3Val = IIf((E_TSKPFAST3(Open,High,Low,Close,Volume)> 0),1, -1); dummy = E_TSKPFAST2( Open , High , Low , Close , Volume ); KPFast2Val = IIf ((tskp_fast2val1 > 0),1,-1); UpperBand = BBandTop ( Close ,20,1); LowerBand = BBandBot ( Close ,20,1); swVal = E_TSKPSWINGLINE( High , Low , Close ); MeanSwingLnVal = tskp_swmean; // -- Create 0-initialized arrays the size of barcount aHPivs= H - H ; aLPivs= L - L ; aHiVal= H - H ; aLoVal= L - L ; Ctmpl = E_TSKPCOLORTMPL( Open , High , Low , Close , Volume ); sctotal = 0; sctotal = sctotal + IIf (tskp_colortmplcnd0 > 0, 1, -1); sctotal = sctotal + IIf (tskp_colortmplcnd1 > 0, 1, -1); sctotal = sctotal + IIf (tskp_colortmplcnd2 > 0, 1, -1); sctotal = sctotal + IIf (tskp_colortmplcnd3 > 0, 1, -1); sctotal = sctotal + IIf (tskp_colortmplcnd4 > 0, 1, -1); sctotal = sctotal + IIf (tskp_colortmplcnd5 > 0, 1, -1); sctotal = sctotal + IIf (tskp_colortmplcnd6 > 0, 1, -1); sctotal = sctotal + IIf (tskp_colortmplcnd7 > 0, 1, -1); sctotal = sctotal + IIf (tskp_colortmplcnd8 > 0, 1, -1); for (CurBar=1; CurBar < BarCount -1; CurBar++) { if ( CurBar == 1 ) { CHiPr = High [CurBar]; CHiBar = CurBar; CLoPr = Low [CurBar]; CLoBar = CurBar; blsLong = 0; blsShort = 0; blsNewCO = 0; PrePP = 0; PrevCOBar = 0; PrevHiVal = High [CurBar]; PrevLowVal = Low [CurBar]; BuySig = 0; SellSig = 0; CanclBar = 0; } if ( High [CurBar] >= CHiPr) { CHiPr = High [CurBar]; ChiBar = CurBar; } if ( Low [CurBar] <= CLoPr) { CLoPr = Low [CurBar]; CLoBar = CurBar; } if ( (KPA900Val[CurBar] > KPAutoStopVal[Curbar]) ){ if ( (blsLong!= 1) ){ blsNewCO = 1; SellSig = 0; blsLong = 1; blsShort = 0; BarDif = CurBar - PrevCOBar; if ( (BarDif >= NumBars) AND (PrePP != -1) AND (CLoPr >= PrevLowVal)){ PrevCOBar = CurBar; CanclBar = CurBar + BarCancl; BuySig = 1;}} } else { if ((blsShort != 1)) { blsNewCO = 1; BuySig = 0; blsLong = 0; blsShort = 1; BarDif = CurBar - PrevCOBar; if ((BarDif >= NumBars) AND (PrePP != 1) AND (CHiPr <= PrevHiVal) ){ PrevCOBar = CurBar; CanclBar = CurBar + BarCancl; SellSig = 1;}} } if ( (BuySig ==1) AND (CurBar <= CanclBar) AND (KPA900Val[curBar] >= KPAutoStopVal[curbar]) ){ if ( (KPFast2Val[CurBar] == 1) AND (sctotal[CurBar] >= 5) AND (blsLong == 1) AND (((frMeanSwing ==1 ) AND ( Close [Curbar] > MeanSwingLnVal[Curbar])) OR (frMeanSwing==0)) AND ( Close [Curbar] > UpperBand[CurBar]) AND ( Close [Curbar] > Open [Curbar]) ){ aLPivs[Curbar] = 1; aLoVal[Curbar] = Low [Curbar]; BuySig = 0; } else { if ( (BuySig == 1) AND ((CurBar > CanclBar) OR (KPA900Val[CurBar] < KPAutoStopVal[Curbar]) ) ){ BuySig = 0;}} } else BuySig = 0; if ( (SellSig ==1) AND (CurBar <= CanclBar) AND (KPA900Val[CurBar] <= KPAutoStopVal[Curbar]) ){ if ( (KPFast2Val[CurBar] == -1) AND (sctotal[CurBar] <= -5) AND (blsShort == 1) AND (((frMeanSwing ==1 ) AND ( Close [Curbar] < MeanSwingLnVal[Curbar])) OR (frMeanSwing==0)) AND ( Close [Curbar] < LowerBand[CurBar]) AND ( Close [Curbar] < Open [Curbar]) ){ aHPivs[Curbar] = 1; aHiVal[Curbar] = High [Curbar]; SellSig = 0; } else { if ( (SellSig == 1) AND ((CurBar > CanclBar) OR (KPA900Val[CurBar] > KPAutoStopVal[Curbar]) ) ){ SellSig = 0;}} } else SellSig = 0; if ( (blsNewCO == 1) ) { if ((sctotal[CurBar] >= 5) AND (blsLong == 1) AND (PrePP != -1) ) { blsNewCO = 0; PrePP = -1; PrevLowVal = CLoPr; CHiPr = High [CurBar]; CHiBar = CurBar; CLoPr = Low [Curbar]; CLoBar = CurBar; } else if ( (sctotal[CurBar] <= -5) AND (blsShort == 1) AND (PrePP != 1) ) { blsNewCO = 0; PrePP = 1; PrevHiVal = CHiPr; CHiPr = High [CurBar]; CHiBar = CurBar; CLoPr = Low [CurBar]; CLoBar = CurBar;} } } if (Disp5){ PlotShapes ( IIf (aHPivs == 1, shapeDownArrow , shapeNone ), parmKPPivPopSellColor ,0, aHiVal+0.00, Offset = -20); PlotShapes ( IIf (aLPivs == 1, shapeUpArrow , shapeNone ), parmKPPivPopBuyColor,0, aLoVal-0.00, Offset = -20);} _SECTION_END (); _SECTION_BEGIN ( "KP MoMo's" ); /********************************************************************************************************** This is a Price Study that displays a DOT based on the folowing: For a long signal: ScoreCardColor is Blue KPMedium > Moving Average of KPMedium KPFast2 > 0 KPFast3 > 0 KPTriggerLine > KPStopLine For a short signal: ScoreCardColor is Red KPMedium < Moving Average of KPMedium KPFast2 < 0 KPFast3 < 0 KPTriggerLine < KPStopLine This signal will reassert itself i.e., display again if one of more of the conditions that trigger go away and then return to the trigger state. Note: This indicator is calculated at the completion of a price bar. This is different than some indicators where the values are calculated/updated upon the arrival of every tick. ************************************************************************************************************/ Disp6= ParamToggle ( "KP MoMo's" , "Show|Hide" ,0); parmMoUpColor = ParamColor ( "MoUpColor" , colorAqua ); parmMoDnColor = ParamColor ( "MoDnColor" , colorRed ); blsLong = 0; KPStopLine = E_TSKPSTOPLINE( High , Low , Close ); // tskp_upsell, tskp_triggerline, tskp_triggerlinevma sw = E_TSKPUPSELL( Open , High , Low , Close , Volume ); KPTriggerLine = tskp_triggerline; KPFast3Val = IIf ((E_TSKPFAST3( Open , High , Low , Close , Volume )> 0),1, -1); //tskp_fast2val1, tskp_fast2val2 dummy = E_TSKPFAST2( Open , High , Low , Close , Volume ); KPFast2Val = IIf ((tskp_fast2val1 > 0),1,-1); // tskp_mediumma,tskp_mediumup,tskp_mediumdown dummy = E_TSKPMEDIUM( Close ); KPMediumUP = tskp_mediumup; KPMediumDwn = tskp_mediumdown; KPMediumMA = tskp_mediumma; for (curBar=5; curBar < BarCount -1; curBar++) { if ( (blsLong == -1) OR (blsLong == 0)) { if ((sctotal[CurBar] >= 5) AND (KPMediumUP[CurBar] > KPMediumMA[CurBar] ) AND (KPFast3Val[CurBar] == 1) AND (KPFast2Val[CurBar] == 1) AND (KPTriggerLine[CurBar] >= KPStopLine[CurBar] )) { blsLong = 1; aLPivs[CurBar] = 1; aLoVal[CurBar] = Low [CurBar];} } if ( (blsLong == 1) OR (blsLong == 0)) { if ((sctotal[CurBar] <= -5) AND (KPMediumDwn[CurBar] < KPMediumMA[CurBar] ) AND (KPFast3Val[CurBar] == -1) AND (KPFast2Val[CurBar] == -1) AND (KPTriggerLine[CurBar] <= KPStopLine[CurBar] )) { blsLong = -1; aHPivs[Curbar] = 1; aHiVal[Curbar] = High [Curbar];} } if ((blsLong == 1) AND ((sctotal[CurBar] < 5) OR (KPMediumUP[CurBar] < KPMediumMA[CurBar] ) OR (KPFast2Val[CurBar] < 1) OR (KPFast3Val[CurBar] < 1) OR (KPTriggerLine[CurBar] < KPStopLine[CurBar] )) ) { blsLong= 0; } if ((blsLong == -1) AND ((sctotal[CurBar] > -5) OR (KPMediumDwn[CurBar] > KPMediumMA[CurBar] ) OR (KPFast2Val[CurBar] > -1) OR (KPFast3Val[CurBar] > -1) OR (KPTriggerLine[CurBar] > KPStopLine[CurBar] )) ) { blsLong = 0;}} if (Disp6){ PlotShapes ( IIf (aHPivs == 1, shapeDownArrow , shapeNone ),parmMoDnColor,0,aHiVal+0.00,Offset=-30); PlotShapes ( IIf (aLPivs == 1, shapeUpArrow , shapeNone ),parmMoUpColor,0,aLoVal-0.00,Offset=-30);} _SECTION_END (); _SECTION_BEGIN ( "KP PushDots" ); Disp7= ParamToggle ( "KP PushDots" , "Show|Hide" ,0); parmPDBuyColor = ParamColor ( "PDBuyColor" , colorWhite ); parmPDSellColor = ParamColor ( "PDSellColor" , colorDarkRed ); Combo = E_TSKPCOMBO( Open , High , Low , Close , Volume ); NewUpDown = E_TSKPNEWUPDOWN( Open , High , Low , Close , Volume ); UpDown7 = 0.5*( High + Low ) - E_TSKPSTOPLINE( High , Low , Close ); if (Disp7){ PlotShapes ( IIf ( ((Combo>0) AND (NewUpDown > 0) AND (UpDown7 > 0)), shapeSmallCircle , shapeNone ), parmPDBuyColor,0, Low , -10); PlotShapes ( IIf ( ((Combo<0) AND (NewUpDown < 0) AND (UpDown7 < 0)), shapeSmallCircle , shapeNone ), parmPDSellColor,0, High , 10);} _SECTION_END (); _SECTION_BEGIN ( "KP PowerPops" ); Disp8= ParamToggle ( "KP PowerPops" , "Show|Hide" ,0); parmPPHighColor = ParamColor ( "PPHighColor" , colorYellow ); parmPPLowColor = ParamColor ( "PPLowColor" , colorYellow ); blsLong = 0; KP115Val = E_TSKP115SPLIT( High , Low , Close ); KP104Val = E_TSKP104( High , Low , Close ); dummy = E_TSKPMEDIUM( Close ); KPMediumUpVal = tskp_mediumup; KPMediumDnVal = tskp_mediumdown; UpperBand = BBandTop ( Close ,20,1); LowerBand = BBandBot ( Close ,20,1); swVal = E_TSKPSWINGLINE( High , Low , Close ); MeanSwingLnVal = tskp_swmean; for (curBar=5; curBar < BarCount -1; curBar++) { if (blsLong != 1) { if ( (sctotal[curBar] >= 5) AND (KPMediumUpVal[curBar] > 1.75) AND ( Close [curBar] > UpperBand[curBar]) AND ( Close [curBar] > KP115Val[curBar]) AND ( Close [curBar] > KP104Val[curBar]) AND ( High [curBar] > High [curBar-3]) AND ( Close [curBar] > Close [curBar-3]) AND ( Close [CurBar] > MeanSwingLnVal[CurBar] ) ){ blsLong = 1; aLPivs[curBar] =1; aLoVal[curBar] = Low [curBar];} } else if (blsLong != -1) { if ( (sctotal[curBar] <= -5) AND (KPMediumDnVal[curBar] < -1.75) AND ( Close [curBar] < LowerBand[curBar]) AND ( Close [curBar] < KP115Val[curBar]) AND ( Close [curBar] < KP104Val[curBar]) AND ( Low [curBar] < Low [curBar-3]) AND ( Close [curBar] < Close [curBar-3]) AND ( Close [curBar] < MeanSwingLnVal[curBar] ) ){ blsLong = -1; aHPivs[curBar] =1; aHiVal[curBar] = High [curBar];}}} if (Disp8){ PlotShapes ( IIf (aHPivs == 1, shapeDownArrow , shapeNone ),parmPPHighColor,0,aHiVal+0.00, Offset = -35); PlotShapes ( IIf (aLPivs == 1, shapeUpArrow , shapeNone ),parmPPLowColor,0,aLoVal-0.00, Offset = -35);} _SECTION_END (); _SECTION_BEGIN ( "KP Combo" ); Disp9= ParamToggle ( "KP Combo" , "Show|Hide" ,0); Combo = E_TSKPCOMBO( Open , High , Low , Close , Volume ); if (Disp9){ PlotShapes ( IIf ( Combo>0, shapeUpArrow , IIf (combo<0, shapeDownArrow , shapeNone )), IIf (combo>0, colorBlue , colorRed ),0, IIf ( Combo>0, Low , High ) ); } _SECTION_END (); _SECTION_BEGIN ( "KP New UpDown" ); Disp10= ParamToggle ( "KP NewUpDown" , "Show|Hide" ,1); NewUpDown = E_TSKPNEWUPDOWN( Open , High , Low , Close , Volume ); if (Disp10){ PlotShapes ( IIf ( NewUpDown >0, shapeSmallCircle , IIf (NewUpDown <0, shapeSmallCircle +shapePositionAbove, shapeNone )), IIf (NewUpDown >0, colorBlue , colorRed ),0, IIf ( NewUpDown >0, Low , High ) ); } _SECTION_END (); _SECTION_BEGIN ( "KP UpDown" ); Disp11= ParamToggle ( "KP UpDown" , "Show|Hide" ,0); updown7 = 0.5*( High + Low ) - E_TSKPSTOPLINE( High , Low , Close ); if (Disp11){ PlotShapes ( IIf ( updown7 >0, shapeUpArrow , IIf (updown7 <0, shapeDownArrow , shapeNone )), IIf (updown7 >0, colorBlue , colorRed ),0, IIf ( updown7 >0, Low , High ) ); } _SECTION_END (); _SECTION_BEGIN ( "KP Standard Error Bands" ); Disp12= ParamToggle ( "KP Standard Error Bands" , "Show|Hide" ,1); Periods= Param ( "Standard Error" ,30,3,200,1); Smooth= Param ( "Smooth" ,20,2,100,1); LRCurve= LinearReg ( C , periods ); MALRCurve= MA (LRCurve, Smooth); SEValue= StdErr ( C , periods ); SErrorAvg= MA (SEValue, Smooth); LowerBand= MALRCurve - SErrorAvg ; UpperBand= MALRCurve + SErrorAvg ; if (Disp12){ Plot (MALRCurve, "MidBand" , ParamColor ( "ColorMB" , colorViolet ), ParamStyle ( "StyleMB" , styleLine | styleThick )); Plot (UpperBand, "UpperBand" , ParamColor ( "ColorUp" , colorViolet ), ParamStyle ( "StyleUp" , styleDashed ,maskDefault)); Plot (LowerBand, "LowerBand" , ParamColor ( "ColorLo" , colorViolet ), ParamStyle ( "StyleLow" , styleDashed ,maskDefault)); PlotOHLC ( UpperBand,UpperBand,LowerBand,LowerBand, "Band" , ColorRGB (238,207,161), styleCloud | styleNoLabel );} _SECTION_END (); _SECTION_BEGIN ( "KP M Range" ); mp=0.5*( High + Low ); tightstop=E_TSKPTIGHTSTOP( High , Low , Close ); stopline=E_TSKPSTOPLINE( High , Low , Close ); Color= colorWhite ; for ( i = 0; i < BarCount ; i++ ) { if ( mp[i] > stopline[i] && mp[i] > tightstop[i] ) Color[i] = colorBlue ; else if ( mp[i] < stopline[i] && mp[i] < tightstop[i]) Color[i] = colorRed ; else Color[i] = colorWhite ; } Plot (0, "MRange0" ,Color, styleOwnScale | styleArea | styleNoLabel ,0, 90 ); Plot (1, "MRange1" ,Color, styleOwnScale | styleArea | styleNoLabel ,0, 90 ); _SECTION_END (); _SECTION_BEGIN ( "KP TrendBias BackGround" ); //Plot Tone parmToneColorUp= ParamColor ( "Tone Color Up" , colorLightBlue ); parmToneColorDn= ParamColor ( "Tone Color Dn" , colorTan ); RibbonSize= Param ( "Ribbon Size" ,10,0.5,10,0.5); Plot ( RibbonSize, "Tone" , IIf (KPTB > KPTBSlow,parmToneColorUp,parmToneColorDn), styleOwnScale | styleArea | styleNoLabel ,0,10); _SECTION_END (); |
14 comments
Leave Comment
Please login here to leave a comment.
Back
Why don’t you re-code it so it doesn’t need to use kpami.dll plug in instead.
Why should I? There are a lot of formulas here using kpami.dll. Like Southwind, etc…
Also I can’t crack the dll and I think the coding get’s longer.
With the dll it loads faster.
Regards an happy new year!
LN:63, COL: 115 ; ERROR 16. TOO MANY ARGUMENTS
WAT SHLD I SUPPOSE TO DO ?
THERE R FOUR ZEROS IN “KP MEAN SWING LINE” REMOVE ONE ZERO AND COMMA AND CLICK APPLY INDICATOR
The only useful is that KP System V1. The rest is useless and overdone. Thanks for posting.
Taking my words back. You’ve don a great job sharing this system with us. All it needs is to see a several instructional videos.
Thanks again
Go to :
http://www.kwikpop.com/
and watch Lone Wolf Pattern Video. Great stuff this indicator. Also make your candles in Amibroker as – Use distinct color for body outline only in your preferences-Colors.
Thanks for this indicator again.
Thanks a million for your excellent job ceurami. Could you please share KP SNAPBACK indicator? That is the only thing missing. Please…..
If anybody can create hollow candles in KwikPOP colors that would be great.
godisbogus- why don’t you use KP S906 and S907 instead of snapback? It works exactly the same.
Turn white oscillator sticks to a line and use it exactly as you would SNAPBACK. The same thing.
no body is having proper formula or if any body is having 100% accuracy formula or 80% accuracy plz ail me on my id choudhary.neeta123@gmail.com
Sir please post entry and exit rules
Hi ceurami,
Dynamic Support/Resistance lines adjust late to show HPL and LPH. It should adjust when the new Pivot is reached ,then when A900 Line crosses Autostop line and FIRST blue candle closes above(or RED candle below-depending on up/down condition) Autostop. In Your code it adjusts when THIRD blue candle closes above Autostop (or third red candle closes below Autostop) and that is too late for either HPL or LPH to show up and trade on it. This cannot be changed unless it is changed in KwikPOP kpami plugin or in original setting. It would be good if you have an access to original code to change number of blue candles that close above Autostop line to ONE instead of THREE.
Then Shapes could be added for LPH and HPL and proper color of the S/R Lines ( blue-white and red-white) so we could trade according to KwikPOP videos.
Also, in calculating Pivots you use scorecard colors calculation when you already have it before thus in one afl you calculate this twice and that is slowing the formula as especially this calculation takes a lot of time. You can reduce this to one calculation only and save the time. I personally don’t use these pivots rather I have shapes done in S/R lines to show the uptrend and downtrends (New Pivots High and Low) and shapes for LPH and HPL as it is used this way in KwikPOP videos.
Also blue-white and red-white lines.
LOTS OF ERRER SIR JI IAM USING AMI 5.70