Probability Trader EA help
Results 1 to 5 of 5

Thread: Probability Trader EA help

  1. #1
    I've written an EA which is employed on a probability value that's recieved in an indior via the iCustom. However, this EA does not seem to be working , can anyone tell me what's wrong with this code? If anyone is interested I'll post up the last job as soon as its completed , it is a realy great EA... if it'd operate

    It never seems to get into trades although the probability percent is over the desired level. Along with also the indior also never upgrades itself.

    Thanks a lot !!


    property copyright Copyright © 2010, MetaQuotes Software Corp..
    #property link http://www.metaquotes.net
    // ------------------------------------------------------------------
    //| pro initialization serve |
    // ------------------------------------------------------------------

    extern int Open_Percentage = 80 ;
    extern int Close_Percentage = 40 ;
    extern int Take_Profit = 13 ;
    extern int Stop_Loss = 15 ;
    int PMI ;
    series TI ;
    int buy ;
    int market ;
    extern int Max_Order_Count = 1;
    extern double Slippage = 3;
    extern int Magic_Number = 10810 ;
    extern double Lots = 0.05 ;
    int init()

    //--

    iCustom(NULL, 0, MEGATREND PROBABILITY METER II,13,7,0) ;




    //--
    return(0);



    int start()

    //-

    series Probability_Value = ObjectDescription(prop_value);
    PMI = StrToDouble(StringSubstr(Probability_Value,0,Strin gLen(Probability_Value)-1));


    TI = ObjectDescription(trend_comment_);

    buy = StringFind(TI,LONG,0);
    market = StringFind(TI,SHORT,0);

    if (Open_Percentage gt; PMI)




    return(0);




    if(OrdersTotal() lt; Max_Order_Count)



    if(PMI gt; Open_Percentage buy !) = -1)

    OrderSend(Symbol(),OP_BUY,Lots,Ask,Slippage,0,Ask - Stop_Loss * Point,Ask Take_Profit * Point,Magic_Number,0,Green);



    if(OrdersTotal() lt; Max_Order_Count)

    if(PMI gt; Open_Percentage sell ! = -1)

    OrderSend(Symbol(),OP_SELL,Lots,Bid,Slippage,Bid Stop_Loss * Point,Ask - Take_Profit * Point,0,Magic_Number,0,Red);





    //--
    return(0);

    // ------------------------------------------------------------------

  2. #2
    You state that the order never opens, but have you checked the error position in the journal window about the platform?

    Other than that, you want to insert Print() statements throughout your code to guarantee the logic flow is as expected.

  3. #3
    You should provide a factor for that worth
    Inserted Code double whatever_it_is = iCustom(NULL, 0, MEGATREND PROBABILITY METER II,13,7,0);

  4. #4
    You do have a point there lmyyyks ! I will try it definitly... Hey you still keen to do some work collectively lmyyyks sounds as you understand what your doing? I sent you an email dont know if you check ur email a lot

    cheerz!

  5. #5
    Codmeister thanks to your reply... I've infact Completed this and tried That the GetLastError() all Within my code but no errors are returned

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.