First EA Version1 Near Completion- Need Help - Page 3
Page 3 of 615 FirstFirst 12345 LastLast
Results 21 to 30 of 41

Thread: First EA Version1 Near Completion- Need Help

  1. #21
    Here is the updated file... it's still hanging in the yields.... I added them in there where I presumed it would finish the test, but it apparently is not right
    https://www.nigeriaforextrading.com/...1550876481.mq4

  2. #22
    Fixed the hanging.... It's opening and closing trades currently in egy tester.... But it's modifying trades more than once.... Can someone please tell me what's causing that with the logic?

    If the linetradeslt;1 then it should never enter into the code at which a change can occur... maybe I need to move a bracket round or something?
    https://www.nigeriaforextrading.com/...5179980852.mq4

  3. #23
    Dear friend,
    that I backtest and found 2 article without Tp not shut for a lengthy duration??
    But profit. See Attach. I seriously searching for this advancement!!
    Great work. . .thanks.

  4. #24
    Sahron,

    If you have a better look at the results, the ones that are hanging have been modified several times instead of just once right when the order is set. It's this defect in my code that I want to figure out how to fix.

    It should never be able to go in and modify again an order... however, I think that it's to do with my understanding of the brackets/returns/order of closing logic... that's where I could have an experienced coder inform me what's causing the issue... I have a major if statement saying if line(x)tradeslt;1 then continue into the code.... Inside another if statement in that block is where the Modify Order exists.... If any of line1trades, line2trades, line3trades, line4trades possess a 1, then it shouldn't be able to change those trades

  5. #25
    Quote Originally Posted by ;
    Sahron,

    If you take a better look in the results, those that are hanging are being altered multiple times instead of only once right once the order is placed....
    Hi, I didn't look at all of your code, however I saw you've got an If (...) and you have else , in your order change commands. Were you aware that in the case of a if and else , if the if statement is false, the else statement is executed.

    So

    if (untrue)
    Comment(Comment one);
    else
    Comment( Comment two);

    Comment two will likely be printed to the display.

  6. #26
    Because I am very new to this programming language.... Obviously, I'm not a programmer by trade, but I have been able to make some complex items with VBA/Excel.... It is a much easier language though... I'm more of an Analyst by trade

  7. #27
    I found one error in my line4buy code... I will correct it when I Return and see if that is the problem... or Only a side problem

  8. #28
    Oh Okay I see. Simply use the Tab button to get every logical indent.

    BTW I haven't looked in the code so I don't know yet what the problem is and don't want to intrude on Zen_Leow or even Magnumfreak.

  9. #29
    Thanks, I will give a review as well as Fix the Mistake I Discovered in the line4buy section in a Few hours or so

  10. #30
    Quote Originally Posted by ;
    Oh Ok I see. Just use the Tab button to get each indent.

    BTW I haven't looked at your code so I do not know yet what the issue is and do not wish to intrude or Magnumfreak.
    I've not read the codes. Was waiting for it to be tidied up before I start faking my eyes. It's simple to read our very own codes but rather dull to read others if you understand exactly what I mean.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.