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: object on chart has no parameter

      Hi,

      I confirm this bug. I am also waiting for a fix!

      Best Regards.

      posted in Bug Reports
      R
      rafaelgrecco
    • RE: Wait 1 Candle Block

      Nevermind, I figured it out.

      When a trade is opened, I draw an arrow on current candle and use "Turn OFF Block" to turn my "Close Trades" block off.

      Then I have a condition looking for arrows drawn on previous candle (Loop for objects by name). When the arrow is detected, i use "Turn ON Block" to turn on "Close Trades" block again.

      posted in Questions & Answers
      R
      rafaelgrecco
    • Wait 1 Candle Block

      Hi guys.

      I am currently working with timeless candles (renkos, range bars, etc). A new candle is opened only when a certain amout of volume or pips is achieved, time is not a factor.

      How do I tell my EA to wait 1 candle? I don't want it to close a trade on the same candle it was opened, even if exit conditions are met.

      I am basically looking for a "Wait 1 Candle" type of block. Like this: Open trade -> Wait 1 Candle. Then my EA can continue to check exit conditions.

      A little more explanaion: You might sugest me "Just use Candle ID 1 to check previous Candle". It's not what I am looking for, because my exit strategy should work on current Candle (ID 0), but that can't happen on the same candle the trade was opened.

      Thank you for reading!

      posted in Questions & Answers
      R
      rafaelgrecco
    • RE: Condition Indicator 1 x> Indicator 2

      @semicon64 that would depend on the exit strategy as well.

      If you use => and <=, it would open the trades as soon as one MA crosses the other, just like x> and x<.

      The problem is that whenever you close the trade, if the condition is still true, a new trade would be opened as soons as the previous one was closed. This means that on a plain MA crossover for entry and exit, it would work as expected.

      posted in Questions & Answers
      R
      rafaelgrecco
    • RE: Strategy for: Do Not Trade Inside Chart Rectangle

      @timmyhanke thanks for the reply.

      The problem is that there can be several lines and rectangles. The rectangles are dynamically created and deleted, so I name them with a prefix so they can be select.

      I have to dynamically select the object by the name prefix (object in loop) to compare current price to the low and high of each rectangle. This must be done to all rectangles on the chart.

      ... I was trying to use a boolean variable (true/false) to Enable and Disable trades, but it was getting too complicated.

      Thinking about the AND block, I could use it directly on my buy/sell strategies. If we had a NAND block it would be perfect. Do you know if we can "make" a NAND or a NOT block? That would solve the question.

      EDIT: Alright, I figured it out. Thanks for the help timmy!

      posted in Questions & Answers
      R
      rafaelgrecco
    • Strategy for: Do Not Trade Inside Chart Rectangle

      Hi guys,

      I have a EA that draws Resistance / Suport lines on my charts and Draw rectangles around it based on ATR. I call these rectangles "no trade zones", which means that I don't want any trades to be opened near these lines.

      But I can't find a way to tell my EA to not trade inside the rectangles... does anyone know how to do it?

      https://ibb.co/cCHUD6

      posted in Questions & Answers
      R
      rafaelgrecco
    • RE: Condition Indicator 1 x> Indicator 2

      @semicon64 I am not confirming that is does not work with backtest, I'm telling what I think.

      Personally, I have been working with FxDreema for years and I don't like backtest (I test strategies live on Demos account) and I don't like the Cross condition, I work around it using >= and <=, which I think is more reliable.

      posted in Questions & Answers
      R
      rafaelgrecco
    • RE: Condition Indicator 1 x> Indicator 2

      Try increasing the cross width. Sometimes the price move too fast and a cross width of 1 might not be triggered.

      Also, I think that this condition doesn't work properly on back test.

      posted in Questions & Answers
      R
      rafaelgrecco
    • Working with Groups - "comma" unexpected token

      Hi,

      In my current project (MML Powerfull EA) I am using several groups to control trades.

      To filter groups, we should use a comma to tell the EA which groups we want to select, for example:

      Group#: 11,12,13,14,15

      The problem is that I am getting a compilation error because of this. ',' - unexpected token.

      Is this a bug?
      Thanks

      EDIT: Nevermind, I found the problem using MetaEditor.

      Can you add more information on compilation errors, for example which Block the error is present? This way is much easier for us to find and correct it! 👍

      posted in Bug Reports
      R
      rafaelgrecco
    • RE: Select Object By Name - Several Objects

      @fxDreema No, I haven't tried. I don't know how to do it 😟

      posted in Questions & Answers
      R
      rafaelgrecco
    • RE: MA CrossOver Condition

      The crossover happens in a fraction of time, like in one tick.

      You should propably use the conditions "above" or "below" and build your strategy around that.

      posted in Questions & Answers
      R
      rafaelgrecco
    • RE: Select Object By Name - Several Objects

      I have another question on this same subject:

      I have a News Indicator, like this: https://ibb.co/fCxqfQ

      The arrows (red dots) on the chart shows the time at which the News will take place. I can select the object, but can't find a way to tell my EA to take some action at the correct time.

      The indicator does not have an output, so I can't use a condition block to set "Price is > Indicator". The only thing I can do is select the object on chart, but the object exists 1 week ahead of time.

      How to select the object and tell my EA to take action (for example close opened trades or open pending orders) only when the News (red dots) are at the correct bar (current time)?

      Thanks!

      posted in Questions & Answers
      R
      rafaelgrecco
    • RE: Select Object By Name - Several Objects

      Thank you for your answer.

      I must be checking around 10 or so objects, so I'll keep it simple (not use loop).

      Also, I can't use loop because I can't change the object's names (I dont have the code for the indicators).

      Thanks!

      posted in Questions & Answers
      R
      rafaelgrecco
    • Select Object By Name - Several Objects

      Hi,

      If I need to check the property of several objects (for example the colors), can I use several blocks "Select Object by Name" and "check color" one after another, like this?

      https://fxdreema.com/shared/kscutfnAb

      Thanks!

      posted in Questions & Answers
      R
      rafaelgrecco
    • RE: Calculating Simple Moving Average of a Indicator

      Ok, I figured it out.

      Each "Modify Variables" can modify up to 5 variables at once, so 3 blocks can handle 14 periods for example.

      The "Formula" block only has simple operations, but we can add more operations on "Adjust the result" field. So we can sum all variables (as many as we want) using a single block.

      It is a lot of stuff to keep track, but it works using only a few blocks. I should have tested a little more before posting.

      Anyway, I hope this information can help someone if they are looking to do something similar.

      posted in Questions & Answers
      R
      rafaelgrecco
    • Calculating Simple Moving Average of a Indicator

      Hi! I am trying to calculate the SMA (simple moving average) of a Indicator.

      Simple Moving Average is the sum of the closing prices divided by the period number.

      Example SMA for 5 periods: (1.0399 + 1.0394 + 1.0387+ 1.09375 + 1.09382) / 5 = 1.0387

      This is calculated automaticaly by the indicator.

      I want to have a Simple Moving Avarage for a Indicator, for example Momentum. The calculus would be same same, but using Momentum data instead of price, so I can compare them.

      Example SMA for 5 periods of Momentum Indicator: (100.2094 + 99.9420 + 99.0634 + 99.2944 + 99.4350) / 5 = 99.8884 - This would be the SMA that I wanted.

      This way I can compare the SMA of the Indicator with the Indicator data itself.

      What I currently have is:

      Have 5 Variables (M1 to M5), each with a Candle ID (0, 1, 2, 3, 4) of the Momentum Indicator. Then use Formulas blocks to sum all variables and put on secondary variables so I can sum all of them:

      M1 + M2 = T1
      M3 + T1 = T2
      M4 + T2 = T3
      M5 + T3 = T4 (here I have all candles summed up)

      Now divide T4 by 5 = SMA. This is the Simple Moving Average of the Indicator.

      Now imagine I want a SMA of 9, 14 or 21 periods... it would be too much to do this way. Is there a better and simpler way to achieve this?

      Thanks.

      posted in Questions & Answers
      R
      rafaelgrecco
    • RE: Check Lot Size?

      Thanks!!

      I think this is it, right?

      https://fxdreema.com/shared/YK3a9Lxhc

      posted in Questions & Answers
      R
      rafaelgrecco
    • Check Lot Size?

      Hi.

      Is there a way to check the lot size of a trade?

      For example, if a EA is opening trades on a Martingale style, it there a block to check the lot size (0.01, 0.02, 0.04, 0.08, etc)?

      I want to close the trade if a lot size is 0.04 and the loss reaches USD10, but can't find a way to check the lot size.

      I really appreciate if anyone can help.
      Thanks

      posted in Questions & Answers
      R
      rafaelgrecco
    • RE: Modify Stop Loss and Trailing Stop Question

      I guess you are right. If Trailing Stop is already being used, there is no point on setting a initial SL.

      I'll just turn it off and let Trailing Stop do it's job and see how it will behave.

      Thanks!

      posted in Questions & Answers
      R
      rafaelgrecco
    • RE: Modify Stop Loss and Trailing Stop Question

      I figured out why the SL was appearing and disappearing... it was a incompatibility with another EA running on the same account.

      I also ajusted the valor of the SL, using the project settings and calculating the valor of a PIP in each pair.

      Now I just need to wait and make sure the SLs are all correct and that the trailing stop is working as expected.

      Thanks.

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