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

Thread: Max trade per bar

  1. #11
    Junior Member
    Join Date
    Jan 2010
    Posts
    1

    Default

    hi funyoo,

    Any new for this issue ?

    Regards.

    S.T

  2. #12
    Junior Member
    Join Date
    Jan 2011
    Posts
    4

    Default RE: VQ Bars EA

    Do you have a version of the [Volatility Quality EA v301] that allows for trade execution when the signal appears? The current version I have executes trades at the close of the bar, which causes many losing trades. Please post this new version here, or sent to me at nascoagent@gmail.com.

    Much appreciated, great EA!

    Thanks

    GWN

  3. #13
    Junior Member
    Join Date
    Jan 2011
    Posts
    4

    Default

    Funyoo -

    I'm looking for a version of the (Volatility Quality EA v301) that allows for trade execution 'at the signal' and not 'at the bar close'. Can you provide this, or let me know where to get a version that does this?

    Thanks - nasco

  4. #14

    Default

    Quote Originally Posted by funyoo View Post
    An alternative :

    At the end of the expert, add :

    Code:
    bool NewBar()
    {
    if(PreviousBarTime<Time[0])
    {
    PreviousBarTime = Time[0];
    return(true);
    }
    
    return(false); // in case if - else statement is not executed
    }
    In the conditions, add :

    Code:
    &&NewBar()
    And finally, after the extern parameters, add :

    Code:
    datetime PreviousBarTime;
    Hi Funyoo ,

    It was great idea to blocked multiple orders..

    But , if we have only one condition to buy or sell , such as a crossing to zero level an indicator, expert has to exit buy (opened in past ) position and at the same while opening new sell order... in the same bar...

    how can I get define closed orders is not multiple orders ...

    Thanks ...

  5. #15
    Member
    Join Date
    Jan 2009
    Location
    Austria
    Posts
    325

    Default

    another solution:

    //+------------------------------------------------------------------+
    //| Only the 1st order is executed once per bar, doesnt affect 2nd,..|
    //+------------------------------------------------------------------+
    if(Only1OrderPerBar==true){
    if(CountHistoryOrders()>0){
    return(0);
    }
    }


    //+------------------------------------------------------------------+
    //| Only1OrderPerBar Calculation |
    //+------------------------------------------------------------------+
    int CountHistoryOrders(){
    int i,count=0;
    if(OrdersHistoryTotal()>0){
    for(i=OrdersHistoryTotal()-1;i>=0;i--){
    OrderSelect(i,SELECT_BY_POS,MODE_HISTORY);
    if(OrderSymbol()!=Symbol() || OrderMagicNumber()!=Magic)continue;
    if(OrderOpenTime()<iTime(NULL,0,0))break;
    if(OrderType()==OP_BUY || OrderType()==OP_BUYLIMIT || OrderType()==OP_BUYSTOP)if(OrderOpenTime()>=iTime( NULL,0,0))count++;
    if(OrderType()==OP_SELL || OrderType()==OP_SELLLIMIT || OrderType()==OP_SELLSTOP)if(OrderOpenTime()>=iTime (NULL,0,0))count++;
    }
    }
    return(count);
    }
    IXBONE
    Business Internet Services | IX Trader Forex Software
    Registered Internet Service Provider (Ripe: AS 16195)

  6. #16

    Default

    im afraid it doesnt work ixbone

Similar Threads

  1. Trade What You See, Not What You Think
    By forexmetal2015 in forum Trading discussion
    Replies: 0
    Last Post: 10-01-2012, 13:01
  2. Replies: 0
    Last Post: 10-02-2010, 10:10
  3. Replies: 0
    Last Post: 09-21-2010, 00:37
  4. 1 trade a day
    By thesecret25 in forum Ideas for expert advisors
    Replies: 15
    Last Post: 05-12-2009, 18:27

Tags for this Thread

add, change, expert, genius, indicator, magic, magic number, sells, signal, thank you, time

Posting Permissions

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