First EA Version1 Near Completion- Need Help - Page 2
Page 2 of 615 FirstFirst 1234 ... LastLast
Results 11 to 20 of 41

Thread: First EA Version1 Near Completion- Need Help

  1. #11
    Edit: Went ahead and tidied up further.... Will have to send this to a printer to be certain it is all lined up properly



    Can you please show me an example of your array comment?

    What's the tp not arbitrary? I am using the arbitrary function, but it's obviously the lowertakeprofit range amount
    https://www.nigeriaforextrading.com/...0904134611.mq4

  2. #12
    It's now opening multiple trades per line rather than 1 trade per line.... Why is not line(x)trades = 1 following the order is complete not quitting the check of if line(x)trades lt; 1 then buy/sell on another cycle?

  3. #13
    Maybe you've already stated this before but I am lazy to go dig up your old threads. That is the problem when members open a lot of threads for the exact same topic objective rather than keeping just exactly the same.

    Would you compose in detail what your egy would be? What do you expect out of the EA, etc? As I view it, your EA don't wait for confirmed signs, meaning, it does not await the candle to close to open trade at the opening of the next candle... it'll just open trade as and when the current unclosed candle meets the criteria. This type of system generally generate a lot of false trades.

    And there is a number of confusing stuffs I am seeing on your own code. E.g., why is Ask used to compare with the MA line? Your MA lineup comes from the prices in your chart and generally prices in your chart are based on Bid prices. If you want to compare Ask with something based from Bid, disperse should be ered for. Either or just utilize Bid to compare. But again, I won't understand what exactly you need this EA to do before you compose in detail what's expected.

    A few trade walkthroughs would be a good start.

    regards,
    Zen

  4. #14
    Ok, I am going to post a summary today and will put up images of commerce charts

    The theory is a simple one really... at any stage, the price can deviate for a number of reasons (banks just want their cash, news, etc.)

    The underlying principle is that the price will always return to the moving average over the years.... The further the deviation, the likely the price will gain pips, thus there's an increase in risk (this will be cleaned up and optimized in the long run when I can do forward testing and use my commerce analyzer in Excel that uses VBA something I am more familiar with)

    so, what you will see together with the indior is standard deviations out based on this attached chart which reveals statistical values.... So when the price crosses a standard deviation line and has top momentum (or reduced for a market) on the Stochastic, then it's the opportunity to buy or sell and grab a few pips (scalper).... Yes, I am wanting to make sure the price near is dispersed 5 to 20 pips or so.... It should only open 1 trade per standard based line on the indior until it's closed... there are 4 lines.... So whatever variety idea you need to handle that better would be great...

    I need a arbitrary take profit to show for the broker (for instance, 25 to 100 pips).... I will also have a random concealed take profit (5-20)... this will also be added when I have something that's operational... this random attribute will be adjusted as I gather more data and can specify ranges for each line, etc. (same as above... I will have win prizes for every line and every currency during every time period, etc. to find this)

    =================================


  5. #15
    I'm only a developer with little to no familiarity with all that statistical mathematics. Or perhaps indior methodology. What you have just said sounds like Greek to me...

    exactly what I really meant by trade walkthrough is some thing in this way.

    Https://www.nigeriaforextrading.com/...-software.html

    proper, clear and concise illuions of entrances and exits with charts. I know how to code EAs to believe what I'm thinking. However, without specific details and comprehension, I will not know how to think.

    regards,
    Zen

  6. #16
    Please let me know if that can help


  7. #17
    Can there be a line by line execution with the MetaEditor like with VBA?

    I Want to know why It Isn't making the transactions =1 following an Order Modify or If It's resetting transactions to 0 for some reason here

    Inserted Code { if ((line4tradeslt;1) (StochBuyLinegt;=StochSellLine StochBuyLinelt;=12) ((Open#91;0#93; lt; B_Line4 Close#91;0#93; gt;= B_Line4)||(Open#91;0#93; gt; B_Line4 Close#91;0#93; lt;= B_Line4)) (OrderSymbol()==Symbol() OrderMagicNumber() == MagicNumber)) tp = 0; LotSize= 0; LotSize = LotSize() * 6; tp = (takeprofitlower ((takeprofitupper-takeprofitlower)*(MathRand()/32767))); tp = NormalizeDouble(tp,0); ticket = OrderSend(Symbol(),OP_BUY,LotSize, Ask, 3, 0, 0, Coach Line4Buy,MagicNumber,0,Green); if (OrderSelect(ticket, SELECT_BY_TICKET, MODE_TRADES)) Print(BUY order opened : ,OrderOpenPrice()); else Print(Error opening BUY order : ,GetLastError()); OrderModify(OrderTicket(),OrderOpenPrice() ,0,Ask tp*Point,0,Green); line4trades = 1; line4ticket = OrderTicket();

  8. #18
    Also, can you give me an example of how to use a choice to shorten my code, etc.? I have never taken any programming course.... I have coded in VBA, and also the thing with it is that I actually did not have to use an array since the dictionary is a choice that can store the information that I want without storing it in a variety

  9. #19
    Quote Originally Posted by ;
    is there a line by line execution with the MetaEditor like with VBA?
    Nope, use the comment function to see what some of your variables do.

  10. #20
    Thanks Magnum! Randomizer working correctly now

    Therefore, it all works correctly, but I Believe I want some yields in there... I didn't have to use yields in VBA... I would only use End Sub

    I think it is the yields difficulty That's hanging it up from the egy tester, however it is opening orders, modifying, doing arbitrary tp now... but it has stuck after that from moving anywhere and times out from the egy tester

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.