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

Re: [amibroker] for loops



PureBytes Links

Trading Reference Links




Thanks Steve. Now on to more "meaty' 
problems
<BLOCKQUOTE 
>
  ----- Original Message ----- 
  <DIV 
  >From: 
  Steve Dugas 
  
  To: <A title=amibroker@xxxxxxxxxxxxxxx 
  href="">amibroker@xxxxxxxxxxxxxxx 
  Sent: Monday, September 22, 2003 10:21 
  PM
  Subject: Re: [amibroker] for loops
  
  Hi Ara,
   
  Your loop never gets executed. You set i=1, then 
  check to see if it equals 3. since it doesnt, the loop is 
skipped.
   
  Steve
  <BLOCKQUOTE 
  >
    ----- Original Message ----- 
    <DIV 
    >From: 
    Ara Kaloustian 
    
    To: <A title=amibroker@xxxxxxxxxxxxxxx 
    href="">Ami-Main 
    Sent: Tuesday, September 23, 2003 1:05 
    AM
    Subject: [amibroker] for loops
    
    
    I am trying to color code trade signals based 
    on time frames
    The Plot function is not working from inside 
    the loop...
    Can anyone see a problem?
    The plot I am trying to create should be 3 
    horizontal bars based on time frames.
    The trade signals are not included in this 
    code for simplicity
     
    Thanks
    Ara
    for (i=<FONT color=#ff00ff 
    size=1>1; i==<FONT color=#ff00ff 
    size=1>3; i++)
    {
    TimeFrame = IIf<FONT 
    size=1>(i==1<FONT 
    size=1>,in2minute,IIf<FONT 
    size=1>(i==2<FONT 
    size=1>,in5Minute,in15Minute));
    Level = IIf<FONT 
    size=1>(i==1<FONT 
    size=1>,120<FONT 
    size=1>,IIf<FONT 
    size=1>(i==2<FONT 
    size=1>,130<FONT 
    size=1>,140));
    Color = IIf<FONT 
    size=1>(i==1<FONT 
    size=1>,colorYellow,IIf<FONT 
    size=1>(i==2<FONT 
    size=1>,colorGreen,colorViolet));<FONT 
    color=#0000ff size=1>
    TimeFrameSet<FONT 
    color=#000000>(timeframe);
    Plot(Level,<FONT color=#ff00ff 
    size=1>""<FONT 
    color=#000000>,Color,styleArea);<FONT color=#0000ff 
    size=1>
    Plot(<FONT color=#ff00ff 
    size=1>110,<FONT color=#ff00ff 
    size=1>""<FONT 
    color=#000000>,colorWhite,styleArea);
    }Send BUG 
    REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to 
    suggest@xxxxxxxxxxxxx-----------------------------------------Post 
    AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: 
    <A 
    href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check 
    group FAQ at: <A 
    href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
    Your use of Yahoo! Groups is subject to the <A 
    href="">Yahoo! Terms of Service. 
    Send 
  BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to 
  suggest@xxxxxxxxxxxxx-----------------------------------------Post 
  AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A 
  href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check 
  group FAQ at: <A 
  href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
  Your use of Yahoo! Groups is subject to the <A 
  href="">Yahoo! Terms of Service. 







Yahoo! Groups Sponsor


  ADVERTISEMENT 









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



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.