Jump to content

kata

Members
  • Posts

    7
  • Joined

  • Last visited

Posts posted by kata

  1. It doesn't appear to be a scam. Do a search on google and read through the thread on biz opps jungle forum, you can see people there who checked out the webinars and subscribed to the service, and what they have to say about their first day. There's certainly a real person behind it who has given up huge chunks of this weekend, and 11 hours today to it, so if it a scam then its a scam he's really working at!
  2. else if ((sflag == true) && (buy == true)) // sell order is open but buy signal is given

    //Alert("sell order is open but buy signal is given");

    // check if open orders are in profit

    {

    Alert("sell order is open but buy signal is given");

    RefreshRates();

    if (ticksell1 > 0)

    {

    if(OrderSelect(ticksell1,SELECT_BY_TICKET)==true)

    {

    stoplevel = MarketInfo(Symbol(),MODE_STOPLEVEL);

    if (OrderProfit() > NormalizeDouble(Bid+(stoplevel*Point),Digits))

    {

    OrderClose(ticksell1,OrderLots(),Ask,3*Point,Blue);

    }

    }

    }

    RefreshRates();

    if (ticksell2 > 0)

    {

    if(OrderSelect(ticksell2,SELECT_BY_TICKET)==true)

    {

    stoplevel = MarketInfo(Symbol(),MODE_STOPLEVEL);

    if (OrderProfit() > NormalizeDouble(Bid+(stoplevel*Point),Digits))

    {

    OrderClose(ticksell2,OrderLots(),Ask,3*Point,Blue);

    }

    }

    }

    if (TrailingStop == 0)

    {

    RefreshRates();

    tickbuy1=OrderSend(Symbol(),0,Lots,NormalizeDouble(Ask,Digits),NormalizeDouble(5*Point,Digits),NormalizeDouble(Ask-StopLoss*Point,Digits),NormalizeDouble(Ask+TakeProfit*Point,Digits),buycomment1,Magic_no,0,Lime);

    //tickbuy2=OrderSend(Symbol(),0,Lots/2,NormalizeDouble(Ask,Digits),NormalizeDouble(5*Point,Digits),NormalizeDouble(Ask-StopLoss*Point,Digits),NormalizeDouble(Ask+TakeProfit*Point,Digits),comment,Magic_no,0,Lime);

    }

    if (TrailingStop > 0)

    {

    tickbuy1=OrderSend(Symbol(),0,Lots/2,NormalizeDouble(Ask,Digits),NormalizeDouble(5*Point,Digits),NormalizeDouble(Ask-StopLoss*Point,Digits),NormalizeDouble(Ask+TakeProfit*Point,Digits),buycomment1,Magic_no,0,Lime);

    RefreshRates();

    tickbuy2=OrderSend(Symbol(),0,Lots/2,NormalizeDouble(Ask,Digits),NormalizeDouble(5*Point,Digits),NormalizeDouble(Ask-StopLoss*Point,Digits),0,buycomment2,Magic_no,0,Lime);

    }

     

    if (tickbuy1>0)

    {

    if(OrderSelect(tickbuy1,SELECT_BY_TICKET))

    {

    Print("BUY 1 order opened at: ", OrderOpenPrice());

    bflag=true;

    //Bbeflag = true;

    }

    }

    else

    {

    Print("Error opening BUY 1 order : ",GetLastError());

    }

     

    if (TrailingStop > 0)

    {

    if (tickbuy2>0)

    {

    if(OrderSelect(tickbuy2,SELECT_BY_TICKET))

    {

    Print("BUY 2 order opened at: ", OrderOpenPrice());

    bflag=true;

    error2 = false;

    //Bbeflag = true;

    }

    }

    else

    {

    Print("Error opening BUY 2 order : ",GetLastError());

    error2 = true;

    }

     

    }

    return(0);

    }

     

     

     

     

    }

    }

  3. This is my trade opening logic. I curently always have trailing stop set to higher than 0.

    {

    static datetime Time.newBar;

    bool newBar = (Time[0] > Time.newBar);

    if (newBar)

    { // A new bar began.

    Time.newBar = Time[0]; // Reset static.

    //... <<<< Any code here is executed only when a new bar appears

    if ((bflag==false) && (sflag==false)) //No current trades open

    {

    //Alert("Check each tick section");

     

    //open buy trade

    if (buy == true) //buy trade

    {

    if (TrailingStop == 0)

    {

    tickbuy1=OrderSend(Symbol(),0,Lots,NormalizeDouble(Ask,Digits),NormalizeDouble(5*Point,Digits),NormalizeDouble(Ask-StopLoss*Point,Digits),NormalizeDouble(Ask+TakeProfit*Point,Digits),buycomment1,Magic_no,0,Lime);

    //tickbuy2=OrderSend(Symbol(),0,Lots/2,NormalizeDouble(Ask,Digits),NormalizeDouble(5*Point,Digits),NormalizeDouble(Ask-StopLoss*Point,Digits),NormalizeDouble(Ask+TakeProfit*Point,Digits),comment,Magic_no,0,Lime);

    }

    if (TrailingStop > 0)

    {

    tickbuy1=OrderSend(Symbol(),0,Lots/2,NormalizeDouble(Ask,Digits),NormalizeDouble(5*Point,Digits),NormalizeDouble(Ask-StopLoss*Point,Digits),NormalizeDouble(Ask+TakeProfit*Point,Digits),buycomment1,Magic_no,0,Lime);

    RefreshRates();

    tickbuy2=OrderSend(Symbol(),0,Lots/2,NormalizeDouble(Ask,Digits),NormalizeDouble(5*Point,Digits),NormalizeDouble(Ask-StopLoss*Point,Digits),0,buycomment2,Magic_no,0,Lime);

    }

     

    if (tickbuy1>0)

    {

    if(OrderSelect(tickbuy1,SELECT_BY_TICKET))

    {

    Print("BUY 1 order opened at: ", OrderOpenPrice());

    bflag=true;

    //Bbeflag = true;

    }

    }

    else

    {

    Print("Error opening BUY 1 order : ",GetLastError());

    }

     

    if (TrailingStop > 0)

    {

    if (tickbuy2>0)

    {

    if(OrderSelect(tickbuy2,SELECT_BY_TICKET))

    {

    Print("BUY 2 order opened at: ", OrderOpenPrice());

    bflag=true;

    error2 = false;

    //Bbeflag = true;

    }

    }

    else

    {

    Print("Error opening BUY 2 order : ",GetLastError());

    error2 = true;

    }

     

    }

    return(0);

    }

     

    if (sell == true) //sell trade

    {

    if (TrailingStop == 0)

    {

    ticksell1=OrderSend(Symbol(),1,Lots,NormalizeDouble(Bid,Digits),NormalizeDouble(5*Point,Digits),NormalizeDouble(Bid+StopLoss*Point,Digits),NormalizeDouble(Bid-TakeProfit*Point,Digits),sellcomment1,Magic_no,0,Red);

    //ticksell2=OrderSend(Symbol(),1,Lots/2,NormalizeDouble(Bid,Digits),NormalizeDouble(5*Point,Digits),NormalizeDouble(Bid+StopLoss*Point,Digits),NormalizeDouble(Bid-TakeProfit*Point,Digits),comment,Magic_no,0,Red);

    }

    if (TrailingStop > 0)

    {

    ticksell1=OrderSend(Symbol(),1,Lots/2,NormalizeDouble(Bid,Digits),NormalizeDouble(5*Point,Digits),NormalizeDouble(Bid+StopLoss*Point,Digits),NormalizeDouble(Bid-TakeProfit*Point,Digits),sellcomment1,Magic_no,0,Red);

    RefreshRates();

    ticksell2=OrderSend(Symbol(),1,Lots/2,NormalizeDouble(Bid,Digits),NormalizeDouble(5*Point,Digits),NormalizeDouble(Bid+StopLoss*Point,Digits),0,sellcomment2,Magic_no,0,Red);

    }

     

    if (ticksell1>0)

    {

    if(OrderSelect(ticksell1,SELECT_BY_TICKET))

    {

    Print("SELL 1 order opened at: ", OrderOpenPrice());

    sflag=true;

    //Sbeflag = true;

    }

    }

    else

    {

    Print("Error opening SELL 1 order : ",GetLastError());

    }

     

    if (TrailingStop > 0)

    {

    if (ticksell2>0)

    {

    if(OrderSelect(ticksell2,SELECT_BY_TICKET))

    {

    Print("SELL 2 order opened at: ", OrderOpenPrice());

    sflag=true;

    error2 = false;

    //Sbeflag = true;

    }

    }

    else

    {

    Print("Error opening SELL 2 order : ",GetLastError());

    error2 = true;

    }

     

    }

    return(0);

    }

    }

    else if ((bflag == true) && (sflag == true))

    {

    //Alert("Buy and Sell trades already opened.");

    return(0);

    }

    else if ((bflag == true) && (sell == true)) // buy order is open but sell signal is given

     

    // check if open orders are in profit

    {

    Alert("buy order is open but sell signal is given");

    RefreshRates();

    if (tickbuy1 > 0)

    {

    if(OrderSelect(tickbuy1,SELECT_BY_TICKET)==true)

    {

    stoplevel = MarketInfo(Symbol(),MODE_STOPLEVEL);

    if (OrderProfit() > NormalizeDouble(Ask+(stoplevel*Point),Digits))

    {

    OrderClose(tickbuy1,OrderLots(),Bid,3*Point,Blue);

    }

    }

    }

    RefreshRates();

    if (tickbuy2 > 0)

    {

    if(OrderSelect(tickbuy2,SELECT_BY_TICKET)==true)

    {

    stoplevel = MarketInfo(Symbol(),MODE_STOPLEVEL);

    if (OrderProfit() > NormalizeDouble(Ask+(stoplevel*Point),Digits))

    {

    OrderClose(tickbuy2,OrderLots(),Bid,3*Point,Blue);

    }

    }

    }

    if (TrailingStop == 0)

    {

    ticksell1=OrderSend(Symbol(),1,Lots,NormalizeDouble(Bid,Digits),NormalizeDouble(5*Point,Digits),NormalizeDouble(Bid+StopLoss*Point,Digits),NormalizeDouble(Bid-TakeProfit*Point,Digits),sellcomment1,Magic_no,0,Red);

    //ticksell2=OrderSend(Symbol(),1,Lots/2,NormalizeDouble(Bid,Digits),NormalizeDouble(5*Point,Digits),NormalizeDouble(Bid+StopLoss*Point,Digits),NormalizeDouble(Bid-TakeProfit*Point,Digits),comment,Magic_no,0,Red);

    }

    if (TrailingStop > 0)

    {

    ticksell1=OrderSend(Symbol(),1,Lots/2,NormalizeDouble(Bid,Digits),NormalizeDouble(5*Point,Digits),NormalizeDouble(Bid+StopLoss*Point,Digits),NormalizeDouble(Bid-TakeProfit*Point,Digits),sellcomment1,Magic_no,0,Red);

    RefreshRates();

    ticksell2=OrderSend(Symbol(),1,Lots/2,NormalizeDouble(Bid,Digits),NormalizeDouble(5*Point,Digits),NormalizeDouble(Bid+StopLoss*Point,Digits),0,sellcomment2,Magic_no,0,Red);

    }

     

    if (ticksell1>0)

    {

    if(OrderSelect(ticksell1,SELECT_BY_TICKET))

    {

    Print("SELL 1 order opened at: ", OrderOpenPrice());

    sflag=true;

    //Sbeflag = true;

    }

    }

    else

    {

    Print("Error opening SELL 1 order : ",GetLastError());

    }

     

    if (TrailingStop > 0)

    {

    if (ticksell2>0)

    {

    if(OrderSelect(ticksell2,SELECT_BY_TICKET))

    {

    Print("SELL 2 order opened at: ", OrderOpenPrice());

    sflag=true;

    error2 = false;

    //Sbeflag = true;

    }

    }

    else

    {

    Print("Error opening SELL 2 order : ",GetLastError());

    error2 = true;

    }

     

    }

    return(0);

    }

  4. I'm writing an EA which when it's trading logic is met is supposed to open 2 market orders using the same values. Sometimes both these orders open, and sometimes they dont. For a while I had errors where the second order wouldn't open, and I got an error code. I have fixed that error by using RefreshRates between sending order 1 and 2. However, now I seem to regularly be getting only the second order opening. First I didn't get any error at all, so I went back to the mql4 file and looked at it very carfully, and then moved a bracket around the Else" part of the statement, thinking that was the problem. Today I have come home and discvered the same thing has happened, but this time I have an error message. I looked up the 0 code, only to discover it meant I had no error.

     

    So please, if there is no error, why isn't my trade opening??!! It's like it isn't even tryin to open it, but then other times they boh open fine, using exactly eht same lines of code!

     

    Does anyone have any idea of why this might be?

  5. Re: Fusion v1.1a

     

    Chemie: more to the point, you had enough experience to know what was going on, whereas I was sitting wondering what was going on watching some demo trades, and forgot I had live EA's on the same markets that would probably be having problems. Had I had enough experience I saw the problem in enough time to at least have severely minimized my losses. Oh well, I live and learn. Particularly, I learn that Forex Factory's calendar is not as all knowing as I had previously thought!

     

    Manganate: I haven't heard anyone use Pascal in years. I didn't think anyone even still knew what it was, or that it might still be in use! I learnt it at college and remember that at the time it had already been overtaken by C etc. It brings back fond memories to hear its name again!

  6. Re: Fusion v1.1a

     

    apple1937, I warned yesterday to shot down all scalpers. The FED had surprisingly increased hiked the discount rate by a quarter %. They announced this after the markets closed and this exactly the time when most of the modern scalper trade.

    Unfortunately as the guy after you stated, you warned too late, the spike had already happened. I wish I knew how you knew that, cos the spike happened somewhere between 10:30 and 11:00pm GMT, and the forex calendar at forex factory had no high impact warning. It wasn't even a medium warning. I spent 20 mins trying to work out what the hell had just happened. Luckily I lost less than 10% of my account. Unluckily one of those trades had for some reason opened bigger than normal, or my loss would have been much more bearable.

     

    You are right tho in that such things could happen at any moment. And my loss could have been worse.

     

    Thanks for the attempt tho! :-)

  7. Re: REQ: forex derivative EA

     

    this one gets my thumbs up. buy it (support the author) :arrow:

    You might wanna edit your comments from earlier (such as the one I have hopefully quoted above) cos some poeple might not read past the pages where you all praise it strongly, to the bits where you find its a scam. Just a thought.

×
×
  • Create New...