Traderji.com - Discussion forum for Stocks Commodities & Forex


covert into ribbon

Discuss covert into ribbon at the AmiBroker within the Traderji.com - Discussion forum for Stocks Commodities & Forex; Dear Friends, Anybody please convert this afl into Ribbon format. please help me friends _SECTION_BEGIN("Price"); ...


Go Back   Traderji.com - Discussion forum for Stocks Commodities & Forex > TOOLS & RESOURCES > Software > AmiBroker



Reply
 
Thread Tools
  #1  
Old 20th March 2013, 07:08 PM
Member
 
Join Date: Jul 2012
Posts: 63
Thanks: 20
Thanked 4 Times in 4 Posts
anand23983 is on a distinguished road
Default covert into ribbon

Dear Friends,

Anybody please convert this afl into Ribbon format. please help me friends

_SECTION_BEGIN("Price");
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) Vol " +WriteVal( V, 1.0 ) +" {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 )) ));

trendup = IIf(MACD(12,26) > 0 AND MACD(12,26) > Signal(12,26,9), colorGreen, colorWhite);
trendcolor = IIf(MACD(12,26) < 0 AND MACD(12,26) < Signal(12,26,9), colorRed, trendup);
Plot( C, "Close", trendcolor, styleBar | styleThick );

//RSIup = RSI(7) > 70;
//RSIdown = RSI(7) < 30;

sp = Param( "RSI Period", 14, 1, 100 );
r = RSI( sp );
RSIup = r > 70;
RSIdown = r < 30;

shape = RSIup * shapeNone + RSIdown * shapeNone;
PlotShapes(shape, IIf( RSIup, colorBrightGreen, colorRed ), 0, IIf( RSIup, Low, High ) );

_SECTION_END();

SetChartBkColor(ParamColor("Panel color ",colorBlack));

PlotOHLC( Open, High, Low, Close, "", colorLime, styleBar| styleThick );



Reply With Quote
Sponsored Links
  #2  
Old 28th March 2013, 10:55 PM
Banned
 
Join Date: Nov 2006
Posts: 778
Thanks: 222
Thanked 796 Times in 317 Posts
ford7k is a splendid one to beholdford7k is a splendid one to beholdford7k is a splendid one to beholdford7k is a splendid one to beholdford7k is a splendid one to beholdford7k is a splendid one to beholdford7k is a splendid one to behold
Default Re: covert into ribbon

hi
the code you posted is evolved from concept by markus,(Rockwell trading)a senior trader.
he uses RANGE BARS. Setting of rangebar i 10 to 12% of daily ADR over 5 days. ADR is avrage daiuly range ,daily range = high - low on that day.

He uses bollinger bands 12-2,Macd,Rsi(7).

THE BAR COLOR IS FROM MACD.
when macd>0 and macd>signal, bar gets green color
if macd<0 and macd<signal, bar gets red color

when RSI(7)>70,YOU GET BUY GREEN ARROWS UP
when RSI(7)<30,YOU GET SELL RED COLOR DOWN ARROWS
When upper bband(12,2) starts rising,it is uptrend.
when lower bband starts falling it is downtrend.

Bar color by MACD, ARROW COLOR BY RSI(7).
WHAT RIBBON YOU WANT FROM WHICH PART?
Reply With Quote
  #3  
Old 28th March 2013, 11:26 PM
Member
 
Join Date: Jul 2012
Posts: 63
Thanks: 20
Thanked 4 Times in 4 Posts
anand23983 is on a distinguished road
Default Re: covert into ribbon

Thanks Sir,

i got the modification from Johnny sir

_SECTION_BEGIN("Price");
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) Vol " +WriteVal( V, 1.0 ) +" {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 )) ));

trendup = IIf(MACD(12,26) > 0 AND MACD(12,26) > Signal(12,26,9), colorGreen, colorWhite);
trendcolor = IIf(MACD(12,26) < 0 AND MACD(12,26) < Signal(12,26,9), colorRed, trendup);
Plot( C, "Close", trendcolor, styleBar | styleThick );

//RSIup = RSI(7) > 70;
//RSIdown = RSI(7) < 30;

sp = Param( "RSI Period", 14, 1, 100 );
r = RSI( sp );
RSIup = r > 70;
RSIdown = r < 30;

shape = RSIup * shapeNone + RSIdown * shapeNone;
PlotShapes(shape, IIf( RSIup, colorBrightGreen, colorRed ), 0, IIf( RSIup, Low, High ) );
Plot( 1, "", TRENDCOLOR , styleArea | styleOwnScale | styleNoLabel, -0.1, 50 );
//Plot( 1, "", TREND, styleArea | styleOwnScale | styleNoLabel, -0.1, 50 );

_SECTION_END();

SetChartBkColor(ParamColor("Panel color ",colorBlack));

PlotOHLC( Open, High, Low, Close, "", colorLime, styleBar| styleThick );
Reply With Quote
  #4  
Old 29th March 2013, 08:48 AM
Banned
 
Join Date: Nov 2006
Posts: 778
Thanks: 222
Thanked 796 Times in 317 Posts
ford7k is a splendid one to beholdford7k is a splendid one to beholdford7k is a splendid one to beholdford7k is a splendid one to beholdford7k is a splendid one to beholdford7k is a splendid one to beholdford7k is a splendid one to behold
Default Re: covert into ribbon

hi
RSI has no meaning in your code.
the ribbon and bar color is based on macd.

then it has only half power.
rsi up has to be green up arrow,rsi downhas to red down arrow.
replace shapenone with arrows.
then you can see macd and rsi on the same chart.
macd is not ok to trade on by itself.
it needs filters.
when you follow rockwell code you need to follow it fully or else you dont any result.
good luck.
Reply With Quote
  #5  
Old 29th March 2013, 01:59 PM
Member
 
Join Date: Jul 2012
Posts: 63
Thanks: 20
Thanked 4 Times in 4 Posts
anand23983 is on a distinguished road
Default Re: covert into ribbon

ok sir please modify and add rsi and then generate the new ribbon


Reply With Quote
Reply

Bookmarks


Advertise Here


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads for: covert into ribbon
Thread Thread Starter Forum Replies Last Post
Can Somebody please covert Amibroker formula to metastock sherbaaz MetaStock 11 23rd October 2012 10:18 PM
Ribbon Jose Mary AmiBroker 4 3rd November 2011 01:28 PM
This is trend manager indicator of meta trader can any1 covert into afl ??? rocky01 AmiBroker 12 23rd August 2009 03:56 PM
help with code for ribbon burnsy AmiBroker 0 21st August 2009 03:52 AM
covert data from excel spreadsheet to metstock format veneet Data Feeds 10 30th November 2005 12:25 PM


All times are GMT +5.5. The time now is 10:06 AM.

Indemnity, Disclaimer & Disclosure Notice:
By visiting Traderji.com you automatically indicate that you agree to our Forum Rules, Indemnity, Disclaimer & Disclosure Notice and General Content Disclaimer Notice and indemnify Traderji.com, its associates and related parties of all claims howsoever resulting from the usage of the forum/site.
Disclaimer: Trading or investing in stocks & commodities is a high risk activity. Any action you choose to take in the markets is totally your own responsibility. You are recommended to make appropriate enquiries and seek appropriate advise before sending money, incurring any expenses, acting on recommendations or entering into any commitment in relation to any advertisement published here. Traderji.com does not vouch for any claims made by the advertisers of products and services. Traderji.com will not be held liable for any consequences in the event such claims are not honoured by the advertisers. Traderji.com will not be liable for any, direct or indirect, consequential or incidental damages or loss arising out of the use of any information by anybody mentioned anywhere on this site.
Disclosure: The information in this forum is neither an offer to sell nor solicitation to buy any of the securities mentioned herein. The writers may or may not be trading in the securities mentioned.
All names or products mentioned are trademarks or registered trademarks of their respective owners.
General Content Disclaimer Notice:
In light of our policy of encouraging candid, open exchanges of views and the rapid distribution of information originating from many sources, Traderji.com cannot determine the accuracy or legality of any information that may be uploaded to the forum. Opinions, advice and all other information expressed by participants in discussions are those of the author. You rely on such information at your own risk. You are urged to seek professional advice for specific, individual situations and not rely solely on advice or opinions given in the discussions. Since Traderji.com is an open and free discussion forum, any comments made by members of this forum in their posts reflect their own views and not of the owner or administrator of Traderji.com. Thus the owner/administrator indemnify themselves of all claims whatsoever and will not be liable or responsible for any members comments/views in this forum Traderji.com. Although we constantly delete all irrelevant content and/or SPAM, if you should find any objectionable or offensive posts made by members of this forum which you would like to bring to our notice for removal then please Contact Us.
 


Copyright © www.Traderji.com 2001 - , All rights reserved.

Recommended Websites - www.TradersEdgeIndia.com - www.TradingPicks.com - www.MasterOfTrading.com

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