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 ....
DAILY WEEKLY MACD for Amibroker (AFL)
Rating:
5 / 5 (Votes 2)
Tags:
oscillator, amibroker, timeframe
A daily MACD with a weekly frame MACD
Screenshots
Similar Indicators / Formulas
DTOscillator 2TF 5M-15M
Submitted
by hemsvg about 14 years ago
ADX with multiple Timeframe
Submitted
by Alphaboyz almost 14 years ago
Color Price Bar - Impulse System
Submitted
by kaiji about 15 years ago
Weekly EMA on Daily Chart
Submitted
by rohann over 10 years ago
Indicator / Formula
Copy & Paste Friendly
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 | _SECTION_BEGIN ( "DW MASTER MACD" ); SetChartBkColor ( ParamColor ( "Chart Color" , colorBlack )); GraphXSpace = 10; _SECTION_BEGIN ( "BACKGROUD LTRS" ); SetChartOptions (0, chartShowArrows | chartShowDates ); GfxSetOverlayMode (1); GfxSetTextAlign ( 6 ); // center alignment GfxSetTextColor ( ParamColor ( "Text Color" , ColorHSB ( 42, 42, 42 ) )); GfxSetBkMode (0); // transparent GfxSelectFont ( "Tahoma" , Status ( "pxheight" )/9 ); GfxTextOut ( Name (), Status ( "pxwidth" )/2, Status ( "pxheight" )/4.1 ); _SECTION_END (); k = ( GetPerformanceCounter ()/100)%256; printf ( "GetPerformance Counter %g" ,k); GfxSelectFont ( "Arial Narrow" , 10,700 ); GfxSetBkMode (1); GfxSetTextColor ( colorYellow ); //GfxTextOut("Dedicated to the loving memory of MY FATHER",100+k ,26); RequestTimedRefresh (1); _SECTION_END (); CellHeight = 19; CellWidth =100; function PrintTrends( string, row, Col) { GfxSetOverlayMode (0); /* GfxRectangle( Col * CellWidth+100,ROW*CellHeight-55, (Col + 3 ) * CellWidth, (row +1 ) * CellHeight -54); */ GfxDrawText ( string, Col * CellWidth+180, row * CellHeight-54, (Col +3 ) * CellWidth, (row + 1 ) * CellHeight-54,0); } GfxSetTextColor ( ColorRGB (180,105,200)); TimeFrameSet ( inWeekly ); StartBar= SelectedValue ( BarIndex ()); FinishBar = EndValue ( BarIndex () ); i = Startbar; HISTWEEK = MACD (12,26) - Signal (12,26,9); todayHISTWEEK = TimeFrameExpand (HISTWEEK , inWeekly ) ; onedaybackHISTWEEK = TimeFrameExpand ( Ref (HISTWEEK ,-1) , inWeekly ) ; twodaybackHISTWEEK = TimeFrameExpand ( Ref (HISTWEEK ,-2) , inWeekly ) ; WEEKNEWTRENDUP = (todayHISTWEEK [i] > onedaybackHISTWEEK [i]) AND (onedaybackHISTWEEK [i] <= twodaybackHISTWEEK [i]); WEEKNEWTRENDDN = (todayHISTWEEK [i] > onedaybackHISTWEEK [i]) AND (onedaybackHISTWEEK [i] >= twodaybackHISTWEEK [i]); if ( (todayHISTWEEK [i] > onedaybackHISTWEEK [i]) AND (onedaybackHISTWEEK [i] <= twodaybackHISTWEEK [i])) { GfxSetTextColor ( colorLime ); //PrintTrends("New Trend Up",3,3); GfxTextOut ( "WEEKLY > New Trend Up" ,400,1.5 ); } if ( (todayHISTWEEK [i] < onedaybackHISTWEEK [i]) AND (onedaybackHISTWEEK [i] >= twodaybackHISTWEEK [i]) ) { GfxSetTextColor ( colorOrange ); //PrintTrends("New Trend Down",3,3); GfxTextOut ( "WEEKLY > New Trend Down" ,400,1.5 ); } if ((todayHISTWEEK [i] > onedaybackHISTWEEK [i]) AND (onedaybackHISTWEEK [i] >= twodaybackHISTWEEK [i]) ) { GfxSetTextColor ( colorLime ); //PrintTrends("Trend Up",3,3); GfxTextOut ( "WEEKLY > Trend Up" ,400,1.5 ); } if ( (todayHISTWEEK [i]< onedaybackHISTWEEK [i]) AND (onedaybackHISTWEEK [i] <= twodaybackHISTWEEK [i]) ) { GfxSetTextColor ( colorOrange ); //PrintTrends("Trend Down",3,3); GfxTextOut ( "WEEKLY > Trend Down" ,400,1.5 ); } TimeFrameRestore (); Plot ( TimeFrameExpand (HISTWEEK , inWeekly ), "IFT_5m" , colorOrange , styleThick ); TimeFrameSet ( inDaily ); DMACD = MACD (12,26) - Signal (12,26,9); mycolor= IIf ( MACD (12,26)<0 AND MACD (12,26)> Signal (12,26,9), ColorRGB (48,170,255), IIf ( MACD (12,26)>0 AND MACD (12,26)> Signal (12,26,9), ColorRGB (181,222,251), IIf ( MACD (12,26)>0 AND MACD (12,26)< Signal (12,26,9), ColorRGB (255,201,123), ColorRGB (125,84,11)))); Plot (0, "" , colorRed , styleThick ); MACD0crossup = Cross ( MACD (12,26), Signal (12,26,9)); MACD0crossdw = Cross ( Signal (12,26,9), MACD (12,26)); PlotShapes ( shapeSmallCircle *MACD0crossup, colorLime ,0,0.25,0); PlotShapes ( shapeSmallCircle *MACD0crossdw, colorPink ,0,-0.25,0); Plot ( TimeFrameExpand (DMACD, inDaily ), "dAILY" , mycolor, styleHistogram ); TimeFrameRestore (); HISTDAILY = MACD (12,26) - Signal (12,26,9); todayHISTDAILY = HISTDAILY ; onedaybackHISTDAILY = Ref (HISTDAILY ,-1); twodaybackHISTDAILY = Ref (HISTDAILY ,-2); if ( (todayHISTDAILY [i] > onedaybackHISTDAILY [i]) AND (onedaybackHISTDAILY [i] <= twodaybackHISTDAILY [i])) { GfxSetTextColor ( colorLime ); //PrintTrends("New Trend Up",4,3); GfxTextOut ( "New Trend Up" ,400,15); } if ( (todayHISTDAILY [i] < onedaybackHISTDAILY [i]) AND (onedaybackHISTDAILY [i] >= twodaybackHISTDAILY [i]) ) { GfxSetTextColor ( colorOrange ); //PrintTrends("New Trend Down",4,3); GfxTextOut ( "New Trend Down" ,400,15); } if ((todayHISTDAILY [i] > onedaybackHISTDAILY [i]) AND (onedaybackHISTDAILY [i] >= twodaybackHISTDAILY [i]) ) { GfxSetTextColor ( colorLime ); //PrintTrends("Trend Up",4,3); GfxTextOut ( "Trend Up" ,400,15); } if ( (todayHISTDAILY [i]< onedaybackHISTDAILY [i]) AND (onedaybackHISTDAILY [i] <= twodaybackHISTDAILY [i]) ) { GfxSetTextColor ( colorOrange ); //PrintTrends("Trend Down",4,3); GfxTextOut ( "Trend Down" ,400,15); } /**************************************************** CHART TITLES ****************************************************/ GfxSetTextAlign ( TA_left = 0); GfxSelectFont ( "Tahoma" , 11, 700 ); GfxSetTextColor ( ColorRGB (230,100,200)); GfxTextOut ( "DAILY WEEKLY MACD" ,07, 0); GfxSetTextAlign ( TA_LEFT = 0 ); GfxSelectFont ( "Tahoma" , 11, 700 ); GfxSetTextColor ( ColorRGB (255,180,61)); GfxTextOut ( Name ()+ " " + Date (),07,18); Title = " " ; _SECTION_END (); |
4 comments
Leave Comment
Please login here to leave a comment.
Back
hi
Do you mind sharing your Holy Grail formula. its fantastic
thanks
Yes,
If possible could u mind sharing ur latest holygrail afl…
Daily weekly mACD is a great work
kindly share the afl for the main price screen
Its a great indicator, thanks a lot.