fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. Eric
    3. Posts
    E
    • Profile
    • Following 0
    • Followers 0
    • Topics 8
    • Posts 25
    • Best 0
    • Controversial 0
    • Groups 0

    Posts made by Eric

    • RE: Invalid price

      With one broker i get this error 129 (others works fine) i thinking of try to put in "RefreshRates();" in the code

      There is a grey block called "custom MQL 4 code" will it work if i write RefreshRates(); in that block and place the block before "buy now" , "sell now" and "close trades"?

      http://www.earnforex.com/blog/ordersend ... hat-to-do/

      posted in Questions & Answers
      E
      Eric
    • RE: Partial close

      Yes it works fine now and close 50% of 2 lots works also as expected 🙂

      posted in Bug Reports
      E
      Eric
    • RE: Partial close

      Take a look at the code for partial close i got 3 errors on this lines something is missing? (i use the last version)

      //-- partial close ------------------------------------------------------------------------------------------
      bool success=CloseTradePartial(attrTicket(),lots,Slippage,ArrowColor));
      if (success) {/* Orange output /} else {/ Gray output */}
      }

      posted in Bug Reports
      E
      Eric
    • RE: Check sell before buy

      Thanks for the input 🙂

      posted in Questions & Answers
      E
      Eric
    • RE: Check sell before buy

      Hi

      I am new to this and hope for some help in the rigth direction

      I have a simple long only strategy that opens trades (buy) when price cross an indicator level,
      we can call the condition A

      and close the trade (sell) when price cross an another indicator
      we can call the condition B

      The problem is i want to use a filter when enter buy (A)
      and A give more than one signal when price rise to a new high and i risk getting in at the end of the move

      So the thing i want to do is to check that B condition has happened just before condition A
      so i can act on the first buy signal

      posted in Questions & Answers
      E
      Eric
    • 1
    • 2
    • 2 / 2