+ Reply to Thread
Results 1 to 2 of 2
 0 Attachment(s)    

Thread: Triple ZigZag EA profit basket bug

  1. #1
    Junior Member
    Join Date
    Sep 2010
    Posts
    1

    Default Triple ZigZag EA profit basket bug

    Hi,

    Would you so kind to help me to find a bug? I am not a programmer so I need some help.
    I tested with good results funnyo's Triple ZigZag EA and now I would like to be enable the "BasketProfitLoss" function. Unfortunately, the EA's has written two error's. Here you can find it. The error's note: "CloseBuyOrders - function is not defined" and "CloseSellOrders - function is not defined". Would you check it, please?

    Thank you for your helping in advance!!!

    Tom

    //|---------basket profit loss

    if(BasketProfitLoss)
    {
    double CurrentProfit=0,CurrentBasket=0;
    CurrentBasket=AccountEquity()-AccountBalance();
    if(CurrentBasket>maxEquity)maxEquity=CurrentBasket ;
    if(CurrentBasket<minEquity)minEquity=CurrentBasket ;
    if(CurrentBasket>=BasketProfit||CurrentBasket<=(Ba sketLoss*(-1)))
    {
    CloseBuyOrders(Magic);
    CloseSellOrders(Magic);
    return(0);
    }
    }

  2. #2
    Junior Member
    Join Date
    Jan 2011
    Location
    Vienna
    Posts
    6

    Default

    Tom, where in your EA did you define the two functions
    CloseBuyOrders() and CloseSellOrders() ?
    Software and Consulting for MetaTrader4 - MQLware - www.mqlware.com

+ Reply to Thread

Similar Threads

  1. Triple ZigZag EA
    By funyoo in forum Expert advisors backtesting
    Replies: 37
    Last Post: 11-24-2011, 08:13
  2. Triple Zigzag EA
    By funyoo in forum Expert advisors demo statements
    Replies: 3
    Last Post: 09-01-2009, 03:21
  3. Basket Profit/Loss Bug
    By szmvscla in forum MQL programming
    Replies: 2
    Last Post: 07-10-2009, 09:30
  4. Triple SMMA EA
    By funyoo in forum Expert advisors backtesting
    Replies: 1
    Last Post: 10-09-2008, 14:45

Posting Permissions

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