fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. PipTheRipper
    3. Posts
    P
    • Profile
    • Following 0
    • Followers 0
    • Topics 55
    • Posts 145
    • Best 6
    • Controversial 1
    • Groups 0

    Posts made by PipTheRipper

    • color ENUM

      Hi, does anyone know how to make the color inputs available as ENUM variables?

      0_1637320668570_color enum.png

      0_1637320717546_meny clr enum.png

      posted in Questions & Answers
      P
      PipTheRipper
    • Normailze double

      Hi, I often use the NormalizeDouble function in a custom code block to have comennts show a set number of digits.. However, I find this function not be working very well. The coments seem to sometimes print with the set number of digits, but quite often switsches to 10 digits and then jumping back to the set digits.. Is anyone aware of another way to make sure that a comment only prints a set number of digits?

      https://fxdreema.com/shared/ZB6OWbckb

      1_1637320302740_13 digits.png 0_1637320302739_2 ditis.png

      posted in Questions & Answers
      P
      PipTheRipper
    • RE: get open lot volume

      Thanks for your reply @jstap That unfortuanetely only collects the lot volume opened by an EA with the same magic number. I dont know how to store total lots open on the account, regardles if they are opened by an EA or manually..

      posted in Questions & Answers
      P
      PipTheRipper
    • get open lot volume

      Hi, im trying to store the total lot volume open on an account. So all positions opened, either manually opened trades or trades opened by an EA. I never really had succes with the "on trade event data", so i might go about this the wrong way. Any help will be much appreciated. Thanks

      https://fxdreema.com/shared/U92J9hFL

      posted in Questions & Answers
      P
      PipTheRipper
    • RE: get date and time on start

      @l-andorrà Any hints how to convert/translate it? I was looking at the TimeToString() function, but didnt find a way to get the correct output..

      posted in Questions & Answers
      P
      PipTheRipper
    • get date and time on start

      Hi, i am trying to store the date and time on the first tick after initialisation. I cant find a way to store it as YYYY.MM.DD. instaed it gets stored as a double. Can anyone help me to figure this out?

      https://fxdreema.com/shared/8Y296UFI

      0_1637066515107_time on start.png

      posted in Questions & Answers
      P
      PipTheRipper
    • buy to sell to buy to sell etc

      Hi, i trying to make an EA that opens one position once loaded on the chart.

      For every closed trade it should check the type (buy/sell) of the last position.

      If last position was a buy - then open a sell
      If last position was a sell - then open a buy

      I have been trying so many different ways, but simply cant get it to work as intended. It should be simple, and it is driving me mad.. Any help will be appreciated.

      Here is the project:
      https://fxdreema.com/shared/jmL8913sb

      posted in Questions & Answers
      P
      PipTheRipper
    • RE: adding custom indicator code inside EA code

      @ambrogio great, thanks!

      posted in Questions & Answers
      P
      PipTheRipper
    • RE: adding custom indicator code inside EA code

      @l-andorrà ok, thanks for your answer! If I find a solution I will share it here:)

      posted in Questions & Answers
      P
      PipTheRipper
    • adding custom indicator code inside EA code

      Hi, does anyone know if it is possible to imbed the code of an custom indicator directly into the code of the EA, either directly inside fxdreema or inside the mq4/5 code in metaeditor. In the case of the latter, does anyone know where to paste the indicator code?

      I would like to make it so that the custom indicator is not needed in the indicator folder on the users pc.

      I did find an old thread here on the forum, but no solutions were given..

      posted in Questions & Answers
      P
      PipTheRipper
    • RE: trailing take profit

      @jstap Grat thanks once again! much apppreciated:)

      posted in Questions & Answers
      P
      PipTheRipper
    • trailing take profit

      Hi guys, I am trying to make a simple EA based on bollinger bands. I want to have a pending sell limit order at the top band with tp at the mid band.

      Once the sell limit order is filled, i want to trail the tp once per bar at the bb mid band. I have tried so many different ways, but still I am not able to modify the take profit level once per bar. Can someone see what i do wrong?

      https://fxdreema.com/shared/UalocD0yd

      happy weekend!

      posted in Questions & Answers
      P
      PipTheRipper
    • RE: get total volume of all open pending orders and all open positions

      I found a solution using bucket of trades block. Here is the link in case anyone else needs it https://fxdreema.com/shared/dGzw2Maxb

      posted in Questions & Answers
      P
      PipTheRipper
    • get total volume of all open pending orders and all open positions

      Hi, I am tying to store the total volume of open positions and pending orders in a variable.

      With the "in loops" function I can get the volume of a single order, but is it possible to get the total volume of all open orders?

      https://fxdreema.com/shared/Xkl37zMbc

      0_1634978606637_a818f6d5-16a5-42a4-b0dd-b73e33990dc7-image.png

      posted in Questions & Answers
      P
      PipTheRipper
    • any mql5 programmers here?

      Hi,

      I have made an EA with fxdreema that i would like to upload for selling on the mql5 market place. However, i run into some errors in the automated validation process.

      Specifically I need to write a check that only allows further trades or pending orders if current volume is below max allowed volume. I am able to get the max volume allowed per symbol with SymbolInfoDouble and SYMBOL_VOLUME_MAX, but I do not know how to get the current open volume either in open orders or pending orders.

      I need to make a condition that only allows positions if current volume is less than max allowed volume.

      this is the article explaining the checks that needs to be in place to pass the validation: https://www.mql5.com/en/articles/2555

      If anyone thinks they can help me, please hit me a DM.

      I will of course compensate you for your time.

      posted in Questions & Answers
      P
      PipTheRipper
    • RE: releasing EA on ml5 marketplace

      @l-andorrà it has to do with the max volume allowed per symbol. On my broker I do not get any errors as there is no volume limit as long as there is enough free margin in account balance. But apparently in the test mql5 runs as part of the validation process there is a max volume allowed per symbol.

      So I need to find a way to first retrieve what the max volume is on the broker mql5 does the validation test on. I am able to do that by creating a variable called max_volume and then use the below line of code in a custom mql5 code block

      max_volume=SymbolInfoDouble(Symbol(),SYMBOL_VOLUME_LIMIT);

      Then i need to make a condition before my "buy/sell pending order" block that only allows pending orders to be placed if the volume of the pending order is below max_symbol

      This line of code should hold the answer, but I cant really figure out how to convert that into a condition block in fxdreema. I need to

      if(max_volume==0) volume=SymbolInfoDouble(Symbol(),SYMBOL_VOLUME_MAX);

      posted in Questions & Answers
      P
      PipTheRipper
    • RE: releasing EA on ml5 marketplace

      I now face a new issue during the validation process on mql5 marketplace.

      I get the error "[Volume limit reached]"

      It has to do with the maximum orders allowed. I do not get any errors on my own broker, but apparently it does retuen errors in the validation process on mql5.

      I have found some threads on the mql5 forum, but I have not been able to implement the suggestions successfully. Has anyone here experience with this issue and how to solve it?

      I post the link to the discussions on the mql5 forum here:

      https://www.mql5.com/en/forum/369554

      posted in Questions & Answers
      P
      PipTheRipper
    • RE: releasing EA on ml5 marketplace

      I solved the issue and post it here in case anyone faces the same: https://fxdreema.com/shared/S21yRTWqc

      posted in Questions & Answers
      P
      PipTheRipper
    • RE: slippage - pending orders

      @jstap yeah, I have it on random delay, so that should simulate slippage.. I will look into it tomorrow and post my findings here

      posted in Questions & Answers
      P
      PipTheRipper
    • RE: slippage - pending orders

      @jstap I tested in mt5 strategy tester. Will try it on live trading, set slippage to 0 and se if pending orders are triggered or not.

      posted in Questions & Answers
      P
      PipTheRipper
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 2 / 8