fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. samdeka
    S
    • Profile
    • Following 0
    • Followers 0
    • Topics 3
    • Posts 40
    • Best 0
    • Controversial 0
    • Groups 0

    samdeka

    @samdeka

    0
    Reputation
    1666
    Profile views
    40
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    samdeka Unfollow Follow

    Latest posts made by samdeka

    • RE: How to avoid losses at each tick?

      __1) This depends on the current conditions, the EA is not doing tricks for fun 🙂 I tested it, it was ok for me.
      2) Mmmm check again
      3) MetaTrader 4 is known for it's bad history data. Sometimes there are months and even years of missing data. You can go to delete some files (in "history" and "history/downloads") and download data again. It's not that this will fix all the problems, you will get holes of data in other places 🙂 This is well known problem for MetaTrader 4.
      Or try Ticks Data Suite or Tickstory (use Google here).
      4) You can't. These are trades that are closed when the finish date is reached. These are currently running trades at that time, they hold their profits and losses.[/quote:3e4417gr]

      Thanx you.
      I will try my best again 😏 to improve the EA, and make it as closer as possible like my will.
      Many thanx for your help. 😉

      posted in Questions & Answers
      S
      samdeka
    • RE: How to avoid losses at each tick?

      Thanks everyone for your previous help.
      I tested your advices, and I think that I have still the same problems.
      So I made a new disposition of the EA blocks. Please find attached: https://fxdreema.com/shared/02cs2xu1d
      Strategy test made on eurusd for the month of june 2014.
      The problems that I want to solve is that:

      1.Normally according to the graphic we should have successive buy and sell trades but not
      in the range that show the strategy tester. It seems that, the test takes in account, first the buy
      trades, and secondly the sell trades.
      Whereas it should take them in the mix range, according to the occuring of each trade whaterver the type.

      1. I noticed that a lot of trades are missing in the test, whereas they appear on the graphic.
        So maybe its about "close profitable trades" block which has not appropriate parameters (I will check).

      2. Why, the strategy tester makes the test only for one month (it does not take in account more than one month),
        and at the end of the test, it jump to the last day of the strategy test,
        and make a big loss displaying "CLOSE AT STOP"?

      3. How can I avoid this "CLOSE AT STOP" loss, at the end of the test?

      Thank you again.

      ......
      buy trades follewed by sell trades not accordingly to the graphic.jpg
      how to avoid close at stop loss.jpg
      close at stop in graphic.jpg

      posted in Questions & Answers
      S
      samdeka
    • RE: How to avoid losses at each tick?

      __I think it works for me. I disabled block 2 to check sells and this is the result: http://prntscr.com/40d3cx[/quote:5qfhcrvq]
      Thanx. I will check and reply.

      posted in Questions & Answers
      S
      samdeka
    • RE: How to avoid losses at each tick?

      __Your chart history data is probably bad.. You can re-download them this way (in mt5 at least):

      • close metatrader
      • locate the metatrader history folder, here's an example path: C:\Users\ExampleUser\AppData\Roaming\MetaQuotes\Terminal\D0E09F77C8C37AD8BF0E51FF834584\bases\Alpari-MT5\history
      • delete everything inside the "history" folder
      • start strategy tester, it should download new data automatically[/quote:3n6jnga8]
        Thanx. I will check and reply.
      posted in Questions & Answers
      S
      samdeka
    • RE: How to avoid losses at each tick?

      Hello everyone and thanks for your programming help.
      My problem compilation has been fixed and now I can test easily my strategy.
      Now, the small losses has disappeared. I think it was the "Close trades" which was wrong.
      So this time, Id like to check if my CCI strategy can work bothly with "buy" and "sell" blocks.
      When I test it, I see differents problems:
      1- it is only the sell trades which are took in account, and the buy ones are not considered
      2- all the sell trades are not took in account, some are missed up
      3- I tested from January to june, but the test runs only for the month of january
      4- at the end of the test, the tester jumps from the end of january to the end of june
      (february,march, april, and may are missed up), and we have the type "close at stop" and a big
      loss of pips. How can this happen and how can I avoid it?

      This is the link https://fxdreema.com/shared/bUnpDjCQc

      Tell me all the critcis and advises. Thanx

      ......
      close at stop loss and sell trades only.jpg
      losses due to close at stop.jpg

      posted in Questions & Answers
      S
      samdeka
    • RE: MT4 compilation problem "array passes by reference only"

      ____I was reported about the "New order error" and I fixed it. It has nothing to do with the other warnings, but I will check those warnings anyway, I don't like warnings about arrays :)[/quote:26wq2en0]
      Thanx FxDreema.
      Because I cannot compile and test properly any EA since that problem.[/quote:26wq2en0]
      Thank you. The compilation is working properly now.

      posted in Questions & Answers
      S
      samdeka
    • RE: MT4 compilation problem "array passes by reference only"

      __I was reported about the "New order error" and I fixed it. It has nothing to do with the other warnings, but I will check those warnings anyway, I don't like warnings about arrays :)[/quote:obi3sl9j]
      Thanx FxDreema.
      Because I cannot compile and test properly any EA since that problem.

      posted in Questions & Answers
      S
      samdeka
    • RE: MT4 compilation problem "array passes by reference only"

      When I put a "&" in front of the indexing variables, the compilation is right, but when I use the strategy tester,
      I get a lot errors oh the journal, and I dont get any proper results.
      How can I solve it?
      (Formely, I had not any problem with the compilation on Metaeditor and the strategy tester. Its only today that I get it).

      Thanx

      ......
      Tester Strategy journal errors messages.jpg

      posted in Questions & Answers
      S
      samdeka
    • RE: MT4 compilation problem "array passes by reference only"

      Hello everyone.
      Please when I compile my fxdreema EA, MetaEditor display the message warning "array passes by reference only".
      This message is display 3 times and linked to certains lines of the code.
      How can I solve it, because the strategy tester does not give proper results because of it.
      Thank you.

      ......
      MT4 error message.jpg

      posted in Questions & Answers
      S
      samdeka
    • RE: How to avoid losses at each tick?

      __That is good to hear!

      By the way, you will soon have a shortage of connections (theres a limit of 10 in the free version). You can spare one with replacing the "close losable trades" with a stop-loss value in the "buy now" block. Also, chaining the blocks to each other has the same effect as the "AND" block.

      Edit: Found a little flaw in your setup.. It only closes losable trades when "if trade exists" is false = no trade exists, so it holds the trades open until it turns profitable or your equilty reaches 0 and a stop-out occurs 😕[/quote:4rxfg30j]

      Thanx. I will check you advices and reply you back.

      posted in Questions & Answers
      S
      samdeka