fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. MrDaisyBates
    3. Posts
    • Profile
    • Following 3
    • Followers 0
    • Topics 17
    • Posts 126
    • Best 26
    • Controversial 1
    • Groups 0

    Posts made by MrDaisyBates

    • RE: Performing an action after a condition has been met

      @Maysam If not, feel free to share a project link and maybe we can assist you further. Any time you have two conditions being simultaneously being met, two condition blocks is enough. But if you need to allow them to happen in a sequence or at different times, I've had much better luck with bools and simply controlling their state that way.

      posted in Questions & Answers
      MrDaisyBates
      MrDaisyBates
    • RE: Backtesting, lets talk about it!

      @roar Ah, okay! That makes sense. Thanks for the clarification. I need to keep this in mind!

      posted in General Discussions
      MrDaisyBates
      MrDaisyBates
    • RE: Performing an action after a condition has been met

      @Maysam If they need to happen at different moments, you could try using some bool variables to store the true/false if a condition has been met. If that makes sense.

      So, once a condition is met, it flips a bool from false to true (you can do this on the variables tab on the side or in a modify variables block if you wish).

      Then you could do the same for the other if you wanted.

      Furthermore, if need be, you could have a condition block that simply checks if that bool is set to true or false.

      How you'd structure these will be dependent on your need and project, but I hope this helps you find the logic you're looking for, at least.

      posted in Questions & Answers
      MrDaisyBates
      MrDaisyBates
    • RE: EA doesn't open trades

      @iamtaaaro In this URL, it's still unchanged. So. I couldn't say. As far as if it will place great trades or something, that's for you to test. But that lot size is what was giving you the compiling error you had. 0.001, not 0,001.

      Furthermore, you'll want to check with your broker and be sure that they allow a 0.001. Most I've seen use 0.01 as the lowest position size. But, I've not looked that hard. Good luck!

      posted in Questions & Answers
      MrDaisyBates
      MrDaisyBates
    • RE: First Attempt at Arrays. Could use an expert opinion.

      @l-andorrà Hahahaha! Big mood! I appreciate you, bud! Absolutely no worries! 😂 😂

      posted in Questions & Answers
      MrDaisyBates
      MrDaisyBates
    • RE: EA doesn't open trades

      @iamtaaaro Hey!

      Your lot size needs a decimal, not a comma. Cheers, bud.

      posted in Questions & Answers
      MrDaisyBates
      MrDaisyBates
    • RE: Backtesting, lets talk about it!

      @roar Weird! So, if you do 1 OHLC in strategy tester, and you have a fixed TP at whatever price level, whenever that TP it hit by a candle, the tester will give you the High or Close (assuming bullish) price for your TP?

      posted in General Discussions
      MrDaisyBates
      MrDaisyBates
    • RE: First Attempt at Arrays. Could use an expert opinion.

      Oh, @roar ! hahaha. You're the best for this. ❤

      For now, I think I can discover my own way through this array stuff! You've been an immense help and are much appreciated.

      I am having one issue, though. Today, while working through this array stuff to ensure that I'm grasping it, I started to attempt to set values in one array equal to values from another array. The logic here isn't so important, so I won't bore you with it.

      But basically I have a couple arrays with some relatively unfiltered data in them.

      I then cycle through them (using loop_id as my index number for the unfiltered ones). And the ones I want to keep, I'm attempting to store into the new arrays with "IndexID" as my loop for those basically. I have a feeling you're going to tell me I should do this by hand instead of using the blocks (but I'm not quite so sure how to do that just yet, and I'm curious if you were going to tell me ahaha). It looks like this basically.

      0ab3a3ff-8d2b-49ac-84b6-6cebd3d1acf8-image.png

      Needless to say, you can imagine that today I've discovered the pure bliss of "Array out of range"! ahahahaha. Though I'm not having this problem at the moment anymore.

      I'm really just curious if I'm failing to resize the arrays correctly or if I'm just not storing stuff in them correctly.

      But, this was the earlier bit that I was discussing. I have blocks where I resize the arrays: (IndexID has been starting at zero, so I've been attempting to resize 1 larger than that).

      c43846a8-aaa9-425d-a777-d9f0a4296ae6-image.png

      6d510dce-2da0-499d-ab1d-e3b48097058d-image.png

      If I'm coming to the wrong conclusion, then I'll probably just need to keep investigating and start a new forum post.

      Then I go to load the arrays with the modify variable stuff you see on the screen. Best I can figure is none of this data is actually making it into the arrays, so all of my arrays have nothing in them? I don't know how to print the data contained in them on the screen. I keep trying to enter it into the draw text block, but I think I'm entering it incorrectly ahaha. It just tells me the words I'm typing or "text."

      dd3234d3-b47f-4619-9992-418c34c77149-image.png
      dabd0a92-dff8-4652-90d1-c1e6e1820ba9-image.png

      I started this project a couple days ago, but I've been combing it over for like 9 hours today. I feel fairly confident that the IndexID and loop_id stuff are correctly staged, and that it's likely something in how I'm resizing my arrays or how I'm trying to store variables.

      I really believe I can manage for the most part at this point (as far as figuring out where I did derpy things). But some of these little things are def hanging me up it would seem.

      Thanks again in advance, bud. ❤

      Edit: Roar, I sent you a private shared link to this if it helps. I know it's hard to help when you can't get your hands in it.

      posted in Questions & Answers
      MrDaisyBates
      MrDaisyBates
    • RE: Initializing of X failed with code -1

      Okay, I believe I solved it. The EA I'm trying to build here, I wanted this event to only happen one time, so I put it "on Init" but for some reason, when I moved it all to "on Tick" it seemed fine.

      posted in Questions & Answers
      MrDaisyBates
      MrDaisyBates
    • Initializing of X failed with code -1

      5bfa0695-b460-4197-8f71-dec9debedfeb-image.png

      Unfortunately this is happening with an expert that I don't wish to share publicly. But, is this a standard error code? At first glance, I didn't find an answer online or here on the forums.

      I've just started trying to work with arrays (this is MT5 if it matters). And I've likely done something silly. I've also used some "Run Blocks" for the first time ever. Idk if I could have done anything wrong with those ahaha.

      Is there any general guidance anyone has on how I can go about troubleshooting this one?

      Thanks in advance!

      posted in Questions & Answers
      MrDaisyBates
      MrDaisyBates
    • RE: First Attempt at Arrays. Could use an expert opinion.

      Ah! @roar You're an absolute legend! So much appreciation here.

      I didn't realize arrays could be declared in the normal variable area (and actually NEED to be declared there!) It's actually embarrassing that it's THAT simple. I wish I'd seen it in the documentation. I know it's an advanced feature, but still. For completeness sake. Arrays are so important for so many projects it seems.

      It's also really validating to see that I was actually doing it all very right on my end apart from a simple typo! Thanks also for the tip to export the source and debug it in metaeditor directly. I'll def need to keep it in mind. I've got a really big project underway and I might end up needing it.

      For the condition block that I have to type in myself, like you suggested, I suppose I'd simply add "== true"?

      Is it sensitive to spaces? Do the spaces need to be there or is math/statements fine without spaces in this case?

      Hahahaha. Your meme. ❤

      I did have a question about arrays above that I'd kinda like an answer to if possible.

      I'm using undeclared size arrays here.

      If I have an unknown amount of "things." Like "bear candles" in this case. Do I need to count all of them first, THEN size the array to that size, before I can store stuff in the array? Or is it okay for me to somehow add items to the array and adjust it as necessary? Will it break the array somehow or do they tolerate being able to just add to it and expand it as necessary? Would I simply just resize it +1 first and then add whatever value it is to the new slot? I hope that's kinda clear what I'm asking. Sorry it's not more direct.

      On a similar point, if something, say, in the "middle" of an array becomes invalid and I no longer need it, is there a way to remove it (simply), or is it better to set the index to "zero" and just filter it that way, or is it better to just repopulate the entire array again in that case?

      Thanks again, Roar. ❤

      posted in Questions & Answers
      MrDaisyBates
      MrDaisyBates
    • RE: First Attempt at Arrays. Could use an expert opinion.

      This is the last one, I think. Again, not trying to "piggy back" on my own post, but it's all array related and I have a feeling I'm just going to have to create 10 different posts when it could all be done in one place for everyone's benefit.

      So, in this one, I have a bool array here, but I can't manually type in the name and index for the bool on the "bool" drop down tab, so I used this text code input one. Was I correct to do this?

      image.png

      posted in Questions & Answers
      MrDaisyBates
      MrDaisyBates
    • RE: First Attempt at Arrays. Could use an expert opinion.

      I also did this little guy here. Again, starting to doubt myself a bit. This seemed like something I should be able to do, right? (It's array name [int variable] and then minus one off of that). The idea is to look one candle further to the right than the int value I have stored in this array (it's an int array, too).

      image.png

      posted in Questions & Answers
      MrDaisyBates
      MrDaisyBates
    • RE: First Attempt at Arrays. Could use an expert opinion.

      To save time and back and forth on all of our parts, I want to share this, too. It's still array stuff and related to the stuff here, but it's from a personal project. I want to ensure I'm typing things correctly in these boxes (like formatted correctly for Dreema). I don't want to create a new forum post over it because it's still related to the same series of problems, and I imagine someone one day will be trying to learn Arrays themselves, and I hope they can learn from my mistakes.

      image.png

      I've typed in the names of these arrays and I've also got something similar to a loop_id (I just called it IndexID). It's an int variable that I keep adding +1 onto for the purpose of rotating index slots in the Arrays. I assumed I was doing this correctly, but now I'm starting to doubt myself. Haha.

      posted in Questions & Answers
      MrDaisyBates
      MrDaisyBates
    • RE: First Attempt at Arrays. Could use an expert opinion.

      @roar I'm also sorry to tag you. I know L'andorra has said that sometimes you need a "real programmer" to answer your questions.

      I've been trying to read through old forum posts to see if I can troubleshoot this myself, and I've noticed that L'andorra seemed to learn Arrays this spring himself. So, I'm hoping he might be able to assist me, but I've seen how competent you seem to be with code, but I also see you've not maybe been as active recently and I also see your time is being fought over by many people. If you have time and L'andorra can't or is unwilling to help, I'd like to humbly request your assistance if at all possible.

      And greetings from a different part of Finland. Hahaha. I've noticed you seem to be Finnish. I'm American, but I live in Finland (my wife is Finnish). Anyways. Sorry. Lol. I know. Off topic.

      posted in Questions & Answers
      MrDaisyBates
      MrDaisyBates
    • RE: First Attempt at Arrays. Could use an expert opinion.

      image.png

      I noticed I didn't put semicolons on this one. So, I'll fix that.

      I also updated the URL for the shared project when I did this.

      posted in Questions & Answers
      MrDaisyBates
      MrDaisyBates
    • RE: First Attempt at Arrays. Could use an expert opinion.

      image.png

      This was my attempt to resize the arrays. I don't know if it's broken because I did it wrong or because it was never declared correctly (and that this is actually correct).

      posted in Questions & Answers
      MrDaisyBates
      MrDaisyBates
    • RE: First Attempt at Arrays. Could use an expert opinion.

      image.png

      It's clearly imperfect in its current state. I'm guessing I don't know how to correctly declare arrays? I thought that's what I did on the "on Init" tab, but it seems incorrect apparently.

      It's also possible that I've incorrectly typed things into the variable boxes across the EA, but maybe this just stems from the fact that I declared things incorrectly?

      image.png

      posted in Questions & Answers
      MrDaisyBates
      MrDaisyBates
    • RE: unable to compile e. keep getting server busy or stuck on processing

      @JamesDaly Do you have any blocks that have "custom code" in them?

      You might try disabling them or something and seeing if the project will export then?

      I can't imagine the size being an issue, but I'm curious if there's a block with some broken custom code in it or something and the compiler just can't make it work? I don't know if that's a thing?

      posted in Bug Reports
      MrDaisyBates
      MrDaisyBates
    • RE: Trailing Limit/Stop

      @Mr-Hdrn There's probably better answers, but if you're only doing it once per candle, you could always consider deleting the order and placing a new one.

      In the "Loop for Positions and Orders" category. There's a block called "Slide Order." I've never used it, but if you can figure it out, it should accomplish what you're looking for, I believe.

      posted in Questions & Answers
      MrDaisyBates
      MrDaisyBates
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 2 / 7