fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. rafaelgrecco
    3. Posts
    R
    • Profile
    • Following 0
    • Followers 1
    • Topics 28
    • Posts 111
    • Best 7
    • Controversial 0
    • Groups 0

    Posts made by rafaelgrecco

    • RE: How to cancel order if it takes too long to open

      @l-andorrร  I am using "Buy Now" and "Sell Now" blocks. The trade opens at current Ask/Bid price, there is no distance. Just use the available price quotes.

      The problem is that sometimes the trade is executed in less than a second (which is normal) and another time it is executed in 20... 30.. 40 seconds!

      I wanted to cancel the execution if it took that long.

      posted in Questions & Answers
      R
      rafaelgrecco
    • RE: How to cancel order if it takes too long to open

      @trader-philipps actually time does not matter as long as price remains the same.

      But I see that by default, the Slippage is set to "4" pips on the Buy and Sell Now blocks. I am getting slippages a lot bigger than that... should I change or add something else to make it work?

      About the broker, it is a "futures" broker in Brazil, it is not Forex. It is actually the best national broker here in Brazil, it ususally has very tigh spreads and fast execution times, but there are days that it gets bad for no apparent reason.

      Thank you for your help.

      EDIT: By the way, tick size is 5 on the symbol I trade. Usually the slippage is 0.0, but I would be ok with slippage up to 10 pips.

      On the examples I posted, there is a trade where slippage is 65 pips ๐Ÿ˜ž

      posted in Questions & Answers
      R
      rafaelgrecco
    • How to cancel order if it takes too long to open

      Hi!

      I am running my EA on my real account. The EA opens orders (buys or sells) at market price, using a simple "Buy Now" and "Sell Now" block.

      Sometimes the trade takes too long to open, I believe the delay happens because of the broker. Here are some examples:

      2019.09.03 12:19:39.188 xxxxx Operation details: Speed 78 ms | Slippage 0.0 pips
      2019.09.03 12:29:43.792 xxxxx Operation details: Speed 3204 ms | Slippage 0.0 pips
      2019.09.03 15:30:14.486 xxxxx Operation details: Speed 4875 ms | Slippage 0.0 pips
      2019.09.03 15:56:25.387 xxxxx Operation details: Speed 3390 ms | Slippage 10.0 pips
      2019.09.03 15:56:25.387 xxxxx Correcting stops because of slippage...
      2019.09.03 15:57:44.715 xxxxx Operation details: Speed 5062 ms | Slippage -15.0 pips
      2019.09.03 15:57:44.715 xxxxx Correcting stops because of slippage...
      2019.09.03 15:59:39.500 xxxxx Operation details: Speed 2266 ms | Slippage 10.0 pips
      2019.09.03 15:59:39.500 xxxxx Correcting stops because of slippage...
      2019.09.03 16:02:32.633 xxxxx Operation details: Speed 2953 ms | Slippage 0.0 pips
      2019.09.03 16:03:36.914 xxxxx Operation details: Speed 4250 ms | Slippage 0.0 pips
      2019.09.03 16:05:52.391 xxxxx Operation details: Speed 43797 ms | Slippage -65.0 pips
      2019.09.03 16:05:52.391 xxxxx Correcting stops because of slippage...
      2019.09.03 16:07:08.739 xxxxx BuildOrdersList() - Error #4754
      2019.09.03 16:07:49.001 xxxxx Operation details: Speed 2468 ms | Slippage 0.0 pips
      2019.09.04 09:05:34.767 xxxxx Operation details: Speed 2578 ms | Slippage -10.0 pips
      2019.09.04 09:05:34.767 xxxxx Correcting stops because of slippage...
      2019.09.04 09:06:11.204 xxxxx Operation details: Speed 4937 ms | Slippage 5.0 pips
      2019.09.04 09:06:11.204 xxxxx Correcting stops because of slippage...
      2019.09.04 09:07:57.682 xxxxx Operation details: Speed 53890 ms | Slippage -25.0 pips
      2019.09.04 09:07:57.682 xxxxx Correcting stops because of slippage...
      2019.09.04 09:20:04.115 xxxxx Operation details: Speed 1235 ms | Slippage 0.0 pips
      2019.09.04 09:34:10.400 xxxxx Operation details: Speed 31 ms | Slippage 0.0 pips

      My ping to the broker is at 3 or 4 ms. While a few trades are opened very fast (less than one second), a couple trades takes almost one minute!

      I want to know if it's possible to cancel orders that takes more than 10 seconds to open. Is there a block (or code) that monitors how long a trade is taking to open, and cancel it if it takes too long?

      Thanks.
      Rafael

      posted in Questions & Answers
      R
      rafaelgrecco
    • RE: ObjectSet function on MQL5

      Thanks miro!!

      posted in Questions & Answers
      R
      rafaelgrecco
    • ObjectSet function on MQL5

      Hi,

      I use some custom MQL code to change the property of some objects on MQL4, but I can't get it to work on MQL5.

      For example, I use: ObjectSet(LoadedObjectName(),OBJPROP_BGCOLOR,clrDarkGray); to change the color of a button on MQL4 to Dark Gray, but it doesn't work on MQL5.

      I also use ObjectSet(LoadedObjectName(),OBJPROP_STATE,0); to change the state of a button on MQL4. It doesn't work on MQL5.

      "ObjectSet" function does not exist on MQL5? What should I change to make it work?

      Thanks.

      posted in Questions & Answers
      R
      rafaelgrecco
    • RE: Is it possible to change the value of an indicator using an EA?

      roar, thanks for trying to help.

      I think I am not explaining correctly what I need to do (maybe it's not possible).

      I'll try to think of something else.

      posted in Questions & Answers
      R
      rafaelgrecco
    • RE: Is it possible to change the value of an indicator using an EA?

      Hey roar,

      The problem is that this is not an indicator I use on some condition or anything like that. Here is what I need to change:

      0_1549896944221_indicator.JPG

      I need to change the "Step size" value. I'll use a value calculated from ATR.

      Changing this value will make the offline renko chart change, where my "real" EA runs. I am making a secondary EA just to control the renko size.

      If I put the value I want on a Variable, how do I apply that to the indicator?

      posted in Questions & Answers
      R
      rafaelgrecco
    • Is it possible to change the value of an indicator using an EA?

      Hi, is it possible to change the value of an indicator using an EA?

      I want my EA to change a "int" value used on a indicator.

      Thanks.

      posted in Questions & Answers
      R
      rafaelgrecco
    • RE: EA for Renko bars

      Yes, it can be done. It is very simple to do it using fxdreema.

      posted in Questions & Answers
      R
      rafaelgrecco
    • RE: Please confirm I'm right...or not.

      I would do like this:

      I already have the First SL level on a Vriable.

      Then, I would select the trade I want using "For each trade" block and use a condition like this:

      0_1534447212971_225d5101-1699-4ff0-b085-5af621173974-image.png

      posted in Questions & Answers
      R
      rafaelgrecco
    • RE: Example Calculations

      @danerius

      Open a "Condition" block and select "Candle".

      There you have low, high, open, close, median price, typical price, average price, body size, wick size, etc, etc, etc.

      posted in Questions & Answers
      R
      rafaelgrecco
    • RE: Add SL, TP, TSL to new Signal Order

      Raveon,

      Here it is: https://www.mql5.com/en/forum/227775/page13

      This discussion was actually created by someone else that was discussing Hedge. I jumped in at page 13 because I was working on something similar. It's a long read... and the last post is a couple months old already, so it's not up to date.

      I also think Signals are a great idea! Those that cannot trade can subscribe to those who can. And good traders can have a HUGE extra income. About a year ago a signal reached 1800 subscribers, at the time the price was 20USD. Can you imagine that? That's almost 30.000 USD a month after MQL5 comission. Eventually the signal died because the trader messed up.

      We could keep contact through MQL5 if you are interested in exchaning some ideas.

      Best regards.

      posted in Questions & Answers
      R
      rafaelgrecco
    • RE: Add SL, TP, TSL to new Signal Order

      @raveon Hi raveon

      You are welcome.

      I have always traded manually. I started to use FxDreema to automate my manual strategy but it doesn't work like that... manual trading needs something a EA can't replicate.

      So instead of trying to automate my manual strategy, I am currently developing a EA that can do what a human could never manually do. It's a very complex EA, if you are curious about it, I can post a link to a discussion on MQL5 forums where I explain how it works. It's almost ready, soon I'll put it on a demo account and then on live account.

      I learned that manual trading and automated trading are completely different. Each one has it's own advantages and disadvantages and we must learn what those are.

      About the Signal... I decided to create it because I've seen some signals with a lot of subscribers. If I keep doing what I've been doing for years now (trading), I hope my signal will get some attention and maybe I can get an extra income from subscriptions ๐Ÿ™‚

      posted in Questions & Answers
      R
      rafaelgrecco
    • RE: Once per bar and No position together?

      @richard96816

      "No trade" blocks are usually used at the top, but you can use it anywhere you want.

      Oncer per ber -> No trade works fine.

      I am currently working on a project that has almost 3000 blocks of all types and colors. I just added some Terminal Variables to the mix ๐Ÿ˜›

      You must understand that it takes some time to understand how this platform (FxDreema) works. I've been working with it for more than 2 years and I am still learning some things.

      You will get the hang of it.

      If you need more help, post a screen shot or share your project. It's easier to understand where the problem is if we can see what you are doing.

      posted in Questions & Answers
      R
      rafaelgrecco
    • RE: Working with Terminal Variables (Global Variables on MT4)

      Thank you very much!

      I didn't know there was a tutorial for it...

      posted in Questions & Answers
      R
      rafaelgrecco
    • RE: Add SL, TP, TSL to new Signal Order

      Try this:

      https://fxdreema.com/shared/LaDqIKdAc

      I used "On Trade" tab, which means it will run when a trade is created.

      Then I used a "Trade Created" block selecting "All trades (manually and automated)" as "Group".

      After that, I used "For each trade" - "Not more than 1 trade" to select only the newest trade created. I also selected "All trades (manually and automated)" as "Group".

      And finally used a block "Modify Stops".

      posted in Questions & Answers
      R
      rafaelgrecco
    • Working with Terminal Variables (Global Variables on MT4)

      Hi,

      I run my EA on several charts. I need a couple of variables to be accessible from all charts.

      For example, my EA have a local variable called "Multiplier". The EA can modify it on certain conditions.

      The EA running on all charts needs to recognize it's value, identify that the value has been modified (also, the EA on any chart should be able to modify it).

      I know the way to do it is using what MT4 denominates "Global Variables" - the variables we see when we press F3 on MT4 terminal (here on FxDremma the name we use is "Terminal Variables").

      Has anyone done it yet? Does anyone have any idea or example I could use?

      Thank you very much.

      posted in Questions & Answers
      R
      rafaelgrecco
    • RE: Once per bar and No position together?

      The block is called "No trade" on MQL4 projects and "No Position" on MQL5 projects, but they are the same thing.

      Make sure you are using the correct block (there is one block for position, one for pending order and one for both).

      It should work like you said: Once Per Bar -> No Position. At least it works on MQL4 projects.

      posted in Questions & Answers
      R
      rafaelgrecco
    • RE: Has anyone created trailing stop structure for a single trade?

      I've done something like this before...

      I used the ticket number to select a specific trade.

      posted in Questions & Answers
      R
      rafaelgrecco
    • RE: What is Terminal Variables?

      Let's supose there is a GlobalVariable (MT4 Terminal Variable) that is called MT4_Variable.

      If I want to use it's value on a formula (or condition), I would do this, correct?

      alt text

      If I want to change the value of MT4_Variable, do I need to use custom code, like this?

      alt text

      Or there is another way, using a block, the same way we change local/EA Variables?

      Thanks.

      posted in Questions & Answers
      R
      rafaelgrecco
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 2 / 6