[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Re: Forex data import through metatrader



PureBytes Links

Trading Reference Links


Hello,
 
All the colors in AFL are actually numbers which is why you can include them in mathematical equations as DT has done below.  Tomsaz was good enough to create reserved words for these color numbers to make it easier on those of us with less than perfect memories : )
 
Regards,
Garywooziwog <xcitemint@xxxxxxx> wrote:
Thanks to Dimitris, Gary and Jayson for helping me on this one.  I continue to scour this forum in an attempt to learn the AFL language but it has been a slow process.  Thanks again for your help.  I use this as one of 5 Market barometers on my charts during the day in conjunction with the price action.  I am going to work on coding the others and will post them when they are complete.  I have modified the code provided by Dimitris below and have a question:  the asterik would indicate multiplication, does this mean that a value can be multipled by another value and then multiplied by a color and create the end result as the designated color?  I was not able to find documentation on this. Is this AFL"D"(imitris) code :-) ? ? //Trin Barometer//VAL1 = Foreign("$Trin","c");
 Plot(VAL1,"VAL1",C);COLOR=(VAL1<=0.29)*colorBlack+(VAL1>=0.30)*(VAL1<0.65)*colorGreen+//Mega Bullish//(VAL1>=0.65)*(VAL1<0.85)*colorBrightGreen+//Bullish//(VAL1>=0.85)*(VAL1<0.95)*colorBlue+//Neutral/Bullish//(VAL1>=0.95)*(VAL1<1.01)*colorYellow+//Neutral Bearish//(VAL1>=1.01)*(VAL1<1.2)*33+//Bearish//(VAL1>=1.2)*(VAL1<1.8)*colorRed+//Bear Ugly//(VAL1>=1.8)*colorRose;//OverCooked, be alert for Market Turn//Plot( 10, "Ribbon", COLOR,styleOwnScale|styleArea|styleNoLabel,2,5 );Send BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to suggest@xxxxxxxxxxxxx-----------------------------------------Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check group FAQ at: <A
 href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.


Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html








Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links
To visit your group on the web, go to:http://groups.yahoo.com/group/amibroker/ 
To unsubscribe from this group, send an email to:amibroker-unsubscribe@xxxxxxxxxxxxxxx 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.