Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12
 5 Attachment(s)    

Thread: Fibobars Like EA

  1. #11

    Default

    Is it correct if I change

    if((shift==0 && Close[shift]>low+NormalizeDouble((high-low)*level,Digits) && timelow>timehigh)
    || (shift!=0 && Open[shift]<low+NormalizeDouble((high-low)*level,Digits) && timelow>timehigh && Close[shift]>low+NormalizeDouble((high-low)*level,Digits) && timelow>timehigh)){signal=1;signalst="BUY";}
    if((shift==0 && Close[shift]>high-NormalizeDouble((high-low)*level,Digits) && timelow<timehigh)
    || (shift!=0 && Open[shift]<high-NormalizeDouble((high-low)*level,Digits) && timelow<timehigh && Close[shift]>high-NormalizeDouble((high-low)*level,Digits) && timelow<timehigh)){signal=2;signalst="SELL";}

    with

    if(timelow<timehigh){
    if (Ask>=NormalizeDouble(low+(high-low)*(1-level),Digits)){signal=1;signalst="BUY";}
    if (Ask<NormalizeDouble(low+(high-low)*(1-level),Digits)){signal=2;signalst="SELL";}
    }
    if(timelow>timehigh){
    if (Ask>=NormalizeDouble(low+(high-low)*level,Digits)){signal=1;signalst="BUY";}
    if (Ask<NormalizeDouble(low+(high-low)*level,Digits)){signal=2;signalst="SELL";}
    }

    Please don't laugh I am just learning
    Last edited by daxc; 08-06-2010 at 16:38.

  2. #12
    Administrator funyoo's Avatar
    Join Date
    Sep 2008
    Posts
    7,003

    Default

    Quote Originally Posted by daxc View Post
    Is it correct if I change

    if((shift==0 && Close[shift]>low+NormalizeDouble((high-low)*level,Digits) && timelow>timehigh)
    || (shift!=0 && Open[shift]<low+NormalizeDouble((high-low)*level,Digits) && timelow>timehigh && Close[shift]>low+NormalizeDouble((high-low)*level,Digits) && timelow>timehigh)){signal=1;signalst="BUY";}
    if((shift==0 && Close[shift]>high-NormalizeDouble((high-low)*level,Digits) && timelow<timehigh)
    || (shift!=0 && Open[shift]<high-NormalizeDouble((high-low)*level,Digits) && timelow<timehigh && Close[shift]>high-NormalizeDouble((high-low)*level,Digits) && timelow<timehigh)){signal=2;signalst="SELL";}

    with

    if(timelow<timehigh){
    if (Ask>=NormalizeDouble(low+(high-low)*(1-level),Digits)){signal=1;signalst="BUY";}
    if (Ask<NormalizeDouble(low+(high-low)*(1-level),Digits)){signal=2;signalst="SELL";}
    }
    if(timelow>timehigh){
    if (Ask>=NormalizeDouble(low+(high-low)*level,Digits)){signal=1;signalst="BUY";}
    if (Ask<NormalizeDouble(low+(high-low)*level,Digits)){signal=2;signalst="SELL";}
    }

    Please don't laugh I am just learning
    Hi daxc,

    Yes it is correct.

Similar Threads

  1. FiboBars EA
    By funyoo in forum Expert advisors backtesting
    Replies: 28
    Last Post: 07-28-2010, 18:06

Tags for this Thread

closing, color, funyoo, high, indicator, low, signal, signals, stop, thank you, time, trailing

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •