Stock Portfolio Organizer
The ultimate porfolio management solution.
WiseTrader Toolbox
#1 Selling Amibroker Plugin featuring:
Cumulative Value for Amibroker (AFL)
This system is for long trades. Signals are generated by calculating a cumulative value of the close.
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 | function cccc( Buy , Sell ) { CumCst = Null ; for (i = 1; i < BarCount ; i++) { if ( Buy [i]) { CumCst[i]=0.10; for (j = i + 1; j < BarCount ; j++) { if ( Sell [ j ] ) { i = j - 1; break ; } else if ( C [j] > C [j-1]) { CumCst[j] = Min (CumCst[j-1] + 0.003,0.13); } else if ( C [j] <= C [j-1]) { CumCst[j] = CumCst[j-1]; } else if (j == BarCount - 1) { i = BarCount ; break ; } } } else if ( Sell [i]) { CumCst[i]=0.10; for (j = i + 1; j < BarCount ; j++) { if ( Sell [ j ] ) { i = j - 1; break ; } else if ( C [j] < C [j-1]) { CumCst[j] = Min (CumCst[j-1] + 0.003,0.13); } else if ( C [j] >= C [j-1]) { CumCst[j] = CumCst[j-1]; } else if (j == BarCount - 1) { i = BarCount ; break ; } } } } return CumCst; } Buy = Cross ( C , EMA ( C ,19)); Sell = Cross ( EMA ( C ,19), C ) ; CumCst = cccc( Buy , Sell ); per=19; Smth = 2/(per+1)+CumCst; MovAvg = AMA ( C ,Smth); Plot (movavg, "" , colorBlue ,1); Plot ( C , "" ,1,64); PlotShapes ( Buy * shapeUpArrow , colorGreen ,0, L ,-20); PlotShapes ( Sell * shapeDownArrow , colorRed ,0, H ,-20); Title= "cumulative value = " + WriteVal (Cumcst,1.3); |
1 comments
Leave Comment
Please login here to leave a comment.
Back
very nice system