PureBytes Links
Trading Reference Links
|
Jack, Thank you. Got it.
Larry
Larry, it is called "CandleRibbons" in the Files section for
this group. It is the 1st listing for the C's .. That is where I
would recommend you get it.
Posting it here but the line wrapping
leaves alot of work to do (because of long winded comments..) Also I copied
another link in case it works this time..
Seems every time I go get
the link to that file it has a different URL. I don't understand it all
myself ?? <G>
http://f2.grp.yahoofs.com/v1/8OQUQ4MWevi_rDK8gkLZ7z78Wz3BGYJXOg9I1olziQOgFirULhp_GW4JwFvO4FBFmqbNZNZVV9N_xPbJ9Ib4Mw1WsJeMy93JUw/CandleRibbons
Hope
it helps, Jack Kinsey
/* This code Draws a RIBBON
made of Candle Bodies between 2 MAs. As the MAs Cross the colors alternate
with the Colors defined in Preferances - Colors - Up/Down Candlestick. The
code can easily be modified to draw a Ribbon between any 2 lines
(indicator/oscillators) as noted below. Jack Kinsey
8-3-05 */
GraphXSpace = 5;
P1 =
Param("P1", 20, 5, 200, 1);
// Parameters for moving Avgs P2 = Param("P2",
50, 5, 200, 1);
Plot( C, "", colorWhite,
styleCandle); // Plot "ACTUAL" Price
Candles theROC = ROC(C , 1); theROC =
round(theroc*100)/100;
/***************************
START CODE THAT CREATES & PLOTS
RIBBON ******/ rC = MA(C, P1);
// Change Temporary Price
arrays
rO = EMA(C,
P2);
// to Moving
averages.
/* Modify the above 2 lines to PLOT
Ribbon between any other 2 Lines/Oscillators.
*/ /* EXAMPLE:
Replace "rC = MA(C, P1);" with
"rC = YourLine1;" */
/* AND
Replace "rO = EMA(C, P2);" with "rO =
YourLine2;" */
/* The rest you shouldn't need to change except maybe
colors
*/
rH = IIf(C >= O, rC,
rO); // Remove HI/LO
Shadows
rL = IIf(C <= O, rC,
rO);
C=rc; O=ro; H=rh; L=rl;
// Temp Adjust Actual PRICE
Arrays
Plot( C, "",
colorGrey40, styleLine);
Plot( O, "", colorGrey40,
styleLine);
Plot( C, "",
colorDarkGrey, styleCandle); // Plot spread
between MAs as Candles RestorePriceArrays
();
// Restore Price
Arrays
/************************** END
CREATE & PLOT RIBBON CODE
*************************/
Title = Name() + " " +
FullName() + " " + Date()
+ // Build Title "\nOpen " + O +
" Close " + C + "
ROC " + theROC + " %" + "\nHigh " + H + "
Low " + L
;
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For other support material please check also:
http://www.amibroker.com/support.html
SPONSORED LINKS
YAHOO! GROUPS LINKS
|