fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. GiovanniBumbo
    G
    • Profile
    • Following 0
    • Followers 0
    • Topics 6
    • Posts 10
    • Best 0
    • Controversial 0
    • Groups 0

    GiovanniBumbo

    @GiovanniBumbo

    0
    Reputation
    126
    Profile views
    10
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    GiovanniBumbo Unfollow Follow

    Latest posts made by GiovanniBumbo

    • RE: How to delete a pending order after x seconds... precisely

      Hello.
      I need to close pending orders after x seconds, suppose 10 seconds, but I need to be exactly 10 seconds, not 9, not 11, not anything else...
      I wrote these blocks

      http://prntscr.com/bfwlia

      If a pending order exist, it checks if variable buy_pending_seconds is equal to the given value, if so it sets the variable to 0 and close pending order, else it increments variable buy_pending_seconds by one, and starts again at the next second.

      It seemed to work but today I checked it in a very volatile enviroment (EURGBP) and it looked like it is not precise at all.

      I put a comment to see if the variable was really incremented once per second, and it wasn't so, it was incremented quite randomly.

      I also discovered that there was a lot of pending orders that were not deleted at all... as the counter of the time was stucked.

      Can you please suggest any affordable method to do such a thing?

      Thanks

      posted in Questions & Answers
      G
      GiovanniBumbo
    • RE: Can trailing stop override initial stop loss?

      Hello.

      I use to open trades with a fixed SL of 50 points, 5 pips.
      Supposing a buy on EURUSD with an open price of 1.13250 the SL will be set at 1.13200.

      I also use the trailing stop block this way

      http://prntscr.com/beadsk

      with a custom level, set by the variable Trailing_soglia, that is calculated with a certain logic.

      Sometimes can happen that Trailing_soglia could have a value, in extreem conditions, that is lower then 1.13200 (suppose 1.13150 in the given example) but I DON'T want the SL be lower then 1.13200, i.e. I don't want to allow, never, a possible loss of more then 50 points.

      Will trailing stop override the intial SL or it will adjust the stop loss level only if the price moves up?

      If so, how can I solve this problem?

      Thanks

      Bye

      Marco

      posted in Questions & Answers
      G
      GiovanniBumbo
    • RE: 2 different trailing stop logics

      Hello. I am tring to set 2 different trailing stop logics, the first working from the start of the trade untill it reaches a certain profit, the second working after a certain profit is reached.
      I tried to use pink blocks, as you can see in the picture, but it seems not to work...
      I made some tests in strategy tester visual and this way only the trailing stop logic that use a custom level (the block attached to the orange button of block number 72) is working.
      The other one, the triling stop connected to yellow button never works.
      Can you please help me understand what I am doing wrong?
      Sorry for my english... Thanks.

      http://prntscr.com/be2gw9

      posted in Questions & Answers
      G
      GiovanniBumbo
    • RE: Warning: Too short SL requested...

      Thanks for the clarification, at least now I understand the difference between "pips" and "points"...
      But why if I set the SL at 2 pips, i.e. 20 points in EURUSD 5 digits, it keeps on telling me "Too short SL requested, if the broker accept 20 points = 2 pips as minimum SL distance?

      posted in Questions & Answers
      G
      GiovanniBumbo
    • RE: Warning: Too short SL requested...

      Hello.

      I am using strategy tester from MT4 provided by OctaFX, broker's conditions are 20 pips SL distance from actual price.

      My EA tries to trailing stop trades at 20 pips... but it keeps on telling:

      2016.04.07 14:33:11.033 2016.04.06 18:02 NUOVO_20160405_23 EURUSD,M1: Warning: Too short SL requested (1.14176 or 30 points), minimum will be taken (1.14166 or 40 points)

      In this example I set the fixed spread to 10 pips, and it seems it has a minimum SL distance of 30 pips, so adding 30+10 it needs 40 points...

      Can you help me understand why? How can I fix it to have a good testing?

      Thanks

      posted in Questions & Answers
      G
      GiovanniBumbo
    • RE: Don't open any other trade in this candle after SL reached

      Yes, I used "Once per bar", but checking the age of the latest trade is perfect. Thanks

      posted in Questions & Answers
      G
      GiovanniBumbo
    • RE: Again on Trailing stop...

      Thanks for the suggestion

      posted in Questions & Answers
      G
      GiovanniBumbo
    • RE: Don't open any other trade in this candle after SL reached

      Hello.

      I tried to do it by myself... but I can't find any good idea to do that (sorry I am new here...)

      How can I do "Don't open any other trade in this candle after SL reached"

      I mean, a Buy or a Sell just reached the SL and closed.

      How can I tell to the EA not to open any other trade in this candle?

      This candle means 60 seconds, as I am using M1

      I now I can use "delay" but how? Where do I have to put it?

      Thanks

      posted in Questions & Answers
      G
      GiovanniBumbo
    • RE: Again on Trailing stop...

      Hello, thanks for your prompt replay.

      I work with a 5 digits broker, so I have to write 1.5 becouse else 15 will means 150 pips.

      The problem is:

      2016.04.03 01:42:10.228 2013.03.20 00:11 20160403_10 EURUSD,M1: Warning: Too short SL requested (1.28671 or 10 points), minimum will be taken (1.28651 or 30 points)

      In this example I tried 10 pips but it said too short SL...

      Any workaround?

      Thanks

      posted in Questions & Answers
      G
      GiovanniBumbo
    • RE: Again on Trailing stop...

      Hello.

      I am new here (and I am not a coder...) and I am tring to do my best to understand fxdreema logic to write a little EA.
      I read all the previous messages in the forum regarding Trailing stop but maybe there is something that I am still not understanding... sorry for this!

      I would like to:

      1. Open a trade with a SL of 30 pips
      2. Don't touch the SL until the trade goes in a profit of 15 pips
      3. When the trade gets 15 pips in profit set a new SL of 15 pips, and this means setting the SL at exactly the open price. This will exclude any loss (excepting slippage, ecc.)
      4. As the trade makes more profits move the SL up (if it is a BUY) or down (if it is a SELL) 1 pip at a time, keeping it at 15 pips form the current price.

      Is this block correct to do that?

      https://fxdreema.com/shared/mOBZidUrd

      I tried it in live tests and I think there is something wrong, becouse when it moves SL for the first time it doesn't set it at the open price (i.e. the price when the trade started), but it set the SL 15 pips of distance from the open price (open-15 for a buy, open+15 for a sell).

      Can please someone tell me if I am getting something wrong?

      Thanks for the help

      Bye

      posted in Questions & Answers
      G
      GiovanniBumbo