fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. BlueMoon
    3. Posts
    B
    • Profile
    • Following 3
    • Followers 3
    • Topics 96
    • Posts 246
    • Best 5
    • Controversial 2
    • Groups 0

    Posts made by BlueMoon

    • RE: Issues with Once per bar

      0_1592246529438_975d02ba-2d8d-454c-b258-aae76c558a0d-image.png

      posted in Questions & Answers
      B
      BlueMoon
    • RE: Issues with Once per bar

      Thanks for your reply. Can you please explain what you mean by depends on the context? here is the full blocks screenshot. I just added the alerts block to see if I get those alerts to validate even if the Condition block is running.

      posted in Questions & Answers
      B
      BlueMoon
    • RE: Issues with Once per bar

      0_1592222563152_acde2ce1-2f98-46e1-8f23-92005eee9e93-image.png

      posted in Questions & Answers
      B
      BlueMoon
    • RE: Issues with Once per bar

      0_1592222523838_6324d956-b67e-457c-a370-bb5d1034cdf1-image.png

      posted in Questions & Answers
      B
      BlueMoon
    • Issues with Once per bar

      I am having some issues with "Once per bar" block. I am not sure if this is a bug or I am doing something incorrectly.

      This is what I am trying to do:

      Whenever a new H4 candle bar opens, I have a condition to check if the previous bar was a "Bull" or a "Bear. I do this by comparing the Open and Close price of Candle(1) I believe this is the right way to do this since Candle(0) is the current candle that might have just opened. I do not know what is going on but it works sometimes and does not work sometimes. Any ideas of such a behavior or if I can try something else to get the same result?

      posted in Questions & Answers
      B
      BlueMoon
    • RE: Actions at a specific time everyday

      Many thanks @trader-philipps

      posted in Questions & Answers
      B
      BlueMoon
    • RE: Trade Created Block v/s Pending Order Triggered

      I am going to try the following. Let me know your thoughts. I will update here how it goes.

      The other area of my EA where I am creating a new Trade, I will set a variable and set a value of it to "1" before I create the Trade. Once the Trade is created, it will trigger my "Trade Created" block. I will check the value of the variable first and if it is "1" then I will not execute the things I want to execute and just set the value of the variable back to "0"

      When my Pending Order gets triggered it will also trigger my "Trade Created" block. This will again check the value of the variable and it will find thee value to be "0" so it will continue to execute my code.

      posted in Questions & Answers
      B
      BlueMoon
    • RE: Trade Created Block v/s Pending Order Triggered

      I am already using "Group" for my trades in this EA for a different purpose and it is not possible to mix it with this.

      posted in Questions & Answers
      B
      BlueMoon
    • Actions at a specific time everyday

      I want to run some blocks everyday at a specific time.

      Example: I want to run something everyday at 4:45pm EST. I checked all the Time Filters but could not find something that will meet me requirement.

      posted in Questions & Answers
      B
      BlueMoon
    • RE: Trade Created Block v/s Pending Order Triggered

      @trader-philipps Thank you very much for your reply. Honestly I do not like any of the suggestions you have made. It will just over complicate things. I really like to keep things simple. I will just have to consider making design changes so I just don't have to deal with this while still achieving what I need to do.

      I was just hoping that the "Trade" event had a special block called "Pending Order Triggered" and this block would get activated every time a new Trade is created due to Pending Order getting executed.

      I really appreciate you taking the time to reply on a Sunday afternoon..

      posted in Questions & Answers
      B
      BlueMoon
    • Trade Created Block v/s Pending Order Triggered

      I would like to do bunch of actions when my Pending Order is triggered. I thought I could use the "Trade Created" block in the "Trade" event. But this will not work for me since I create trade on other conditions as well. I want me actions to happen only when the trade is created due to my Pending Order being executed but not when Trade is created from other blocks.

      Is there a way to filter based on on my requirement? I mean I want to execute stuff when my Pending Order creates a new Trade but not do those actions on other Trade creation events.

      posted in Questions & Answers
      B
      BlueMoon
    • Import non fxDreema mq4 file

      Is it possible to import an EA for which I have the source file i.e. mq4 file into fxdreema? How is it done?

      posted in Questions & Answers
      B
      BlueMoon
    • Lot size of last closed trade due to Stop Loss

      Can someone help me with this logic?

      I would like my EA to create a new Buy Trade if my last trade that closed was a Sell Trade with lot size of +1 then the closed trade.. How do I accomplish this?

      Examples:

      1. I would have a Buy Trade with 1 Lot with a fixed SL already set. When the SL hits, I would like my EA to create a "Sell" Trade with 1+1=2 lots.

      2. I would have a Sell Trade with 1.6 Lot with a fixed SL already set. When the SL hits, I would like my EA to create a "Buy" Trade with 1.6+1=2.6 lots.

      posted in Questions & Answers
      B
      BlueMoon
    • RE: struct member undefined

      Never mind. I was able to locate the block. Thank you very much for your help Roar and Philipps!!!

      posted in Questions & Answers
      B
      BlueMoon
    • RE: struct member undefined

      Hi Roar

      I am sorry I have not done this before. Can you please provide more specific details about how to find the block ID from Meta Trader. Once I find that block ID, will deleting that block solve the problem?

      Regards

      posted in Questions & Answers
      B
      BlueMoon
    • RE: struct member undefined

      Following is the code I see in MetaEditor. Even if I delete this code, it keeps coming back when I import it back in FXDreema.

      My error message complains about "BuySell222"

      public: /* Custom methods */
      virtual datetime _ObjTime1_() {return ObjTime1._execute_();}
      virtual double _ObjPrice1_() {
      	ObjPrice1.Symbol = CurrentSymbol();
      	ObjPrice1.Period = CurrentTimeframe();
      
      	return ObjPrice1._execute_();
      }
      virtual string _ObjText_() {
      	ObjText.Text = v::BuySell222;
      
      	return ObjText._execute_();
      }
      
      posted in Questions & Answers
      B
      BlueMoon
    • struct member undefined

      I keep getting the error "struct member undefined" when I try to compile to .ex4.

      How do I fix this?

      posted in Questions & Answers
      B
      BlueMoon
    • RE: Best way to achieve this?

      will this open the new trade of the same pair? if not, how do I make it open the trade of the same pair?

      Note: My EA is trading multi-currencies here.

      posted in Questions & Answers
      B
      BlueMoon
    • RE: Best way to achieve this?

      lets say I have a Buy trade on USDJPY....and it starts to lose money. I realize I had a wrong direction. So my condition would like when it has lost certain number of pips or amount.....I want my EA to close the Buy USDJPY...and immediatly open Sell USDJPY.

      Above was a simple example. Usually I would have a bucket of all different kind of trades. The common thing for all thse trades is their "Group" When the bucket reaches certain amount of loss. I want all trades in this bucket closed and new opposite trades taken immediately. My bucket have have combination of buy/sell trades of different pairs.

      posted in Questions & Answers
      B
      BlueMoon
    • Best way to achieve this?

      I want to open all open trades and open opposite trade.
      Example: If there is a an Open Buy for USDJPY....then close this trade and Open new Trade Sell USDJPY....do this for all the open trade. I mean if it is Buy, take a Sell trade, if it is Sell then take a Buy Trade.

      What is the best way to achieve this?

      posted in Questions & Answers
      B
      BlueMoon
    • 1
    • 2
    • 3
    • 4
    • 5
    • 12
    • 13
    • 1 / 13