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

Similar Threads

  1. Triple ZigZag EA
    By funyoo in forum Expert advisors backtesting
    Replies: 46
    Last Post: 08-13-2017, 10:04
  2. regressive basket profit ea, does it exist?
    By OneandOnly666 in forum Scripts and other tools
    Replies: 0
    Last Post: 07-22-2014, 16:55
  3. [Req] Basket Profit Pips Locking
    By Trint in forum Ideas for expert advisors
    Replies: 1
    Last Post: 06-21-2010, 03:14
  4. Triple Zigzag EA
    By funyoo in forum Expert advisors live statements
    Replies: 3
    Last Post: 09-01-2009, 04:21
  5. Basket Profit/Loss Bug
    By szmvscla in forum MQL programming
    Replies: 2
    Last Post: 07-10-2009, 10:30

Tags for this Thread

magic, profit, programmer

Posting Permissions

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