EA - Daily open
Page 1 of 842 12 LastLast
Results 1 to 10 of 18

Thread: EA - Daily open

  1. #1
    sesntesnd_sesd
    Guest
    New to programming. I have tried to utilize http://sufx.core.t3-ism.net to code a basic EA but it isn't working.

    I would like to find the daily open price for each day

    Any help appreciated

  2. #2
    sesntesnd_sesd
    Guest
    Thank You for reply. Much appreciated.

    As I am a beginner, I'd love to utilize the Builder on http://sufx.core.t3-ism.net as my programming stinks

    From studying online, I believe there's another way to get the daily open price that's iOpen(NULL,PERIOD_D1,1) I think. Is this right?

    The internet builder programmes MT4 to buy if a certain criteria is met.

    I would like for my evaluation EA to buy if the daily open price increases by 15 pips. Do you know how to place this standards?


    Quote Originally Posted by ;
    if (barStart lt; Period [0]) //start of new pub

    // insert your logic
    barStart = Timing [0];
    // end if barstart


    Put this into your program and attach into a 1D chart. If you need to use on a different timeframe, utilize iTime.

  3. #3
    I don't have any experience with Builder so that I can't give any worthwhile advice specific to it. You have to capture the open price (iOpen) if the daily bar opens and compare the Bid/Ask to that price to determine if 15 pips motion has happened. Don't forget the exceptional calculation for 5 digit brokers if applicable.

  4. #4
    IOpen(NULL,PERIOD_D1,1) will provide you yesterday's open. The current bar (current day) is pub 0, so 1 will provide you yesterday. That should work though, based on what you're doing.

  5. #5
    sesntesnd_sesd
    Guest
    Thanks guys. Would some of you have a test EA that would replie this so I can backtest please. (OR even something comparable so I can attempt to piece the code collectively )

    that I would like the EA to capture the daily available price and then buy if the price is 15pips above the daily open

  6. #6
    sesntesnd_sesd
    Guest
    Much appreciated Sangmane. I check my results and will try this over the upcoming few days.

    Are you experienced in writing EAs? (The reason I ask is, even if my testing is possitive, can you allow me to develop it futher please?)

  7. #7
    Quote Originally Posted by ;
    Much Valued Sangmane. I shall try this over the upcoming few days and assess my results.

    Are you experienced in writing EAs?
    That EA shouldn't be regarded as a real EA, it's only supposed to explain just how to get daily open price and the illuion of utilizing it.

  8. #8
    sesntesnd_sesd
    Guest
    Hi sangmane,

    I've copied the code to MT4 document but it doesn't seem to work in MT4 Strategy Tester.

    Any ideas?

    That I would like the EA to buy 15 pips from the available price of the current day and then to close the trade in end of day.

    I expect to test this for a couple months in MT4 Strategy Tester so is it feasible to acquire the

    daily available price for every day
    open commerce 15 from daily available price
    close commerce at conclusion of every day
    Repeat for next day .

    If anyone can assist me, this could be great as it would give me a starting point in MT4 Programming
    https://www.forexforum.co.za/attachm...1560537807.mq4

  9. #9
    hi ppper,

    I save your document (test) to expert folder, run the egy tester. It works.

    Under is the screenshot.

  10. #10
    sesntesnd_sesd
    Guest
    Hi sangmane,

    A Lot of thanks. How do I operate the Strategy Tester.

    I am picking the evaluation EA and certain dates and clicking begin but nothing appears to be happening

    Would you tell me what span etc. you used, dates etc., Model alternative.

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.