{"id":529,"date":"2021-06-15T15:12:49","date_gmt":"2021-06-15T15:12:49","guid":{"rendered":"http:\/\/forexrobo.trading\/blog\/?p=529"},"modified":"2021-06-21T12:10:35","modified_gmt":"2021-06-21T12:10:35","slug":"difference-between-ea-and-scripts","status":"publish","type":"post","link":"https:\/\/forexrobo.trading\/blog\/education\/difference-between-ea-and-scripts\/","title":{"rendered":"Difference Between EA and Scripts"},"content":{"rendered":"\n<p>What&#8217;s the difference between an Expert Advisor and a Script? Everybody get this concern a lot.<\/p>\n\n\n\n<p>Both are composed in MQL, so they both have access to the library of MQL functions for opening and closing trades, finding sign values and even sending out e-mails.<\/p>\n\n\n\n<p>One distinction is that Scripts lie in their own folder below the &#8220;Experts Advisor&#8221; folder on your computer.<\/p>\n\n\n\n<p>Also, Scripts appear under their own menu in the MetaTrader platform.<\/p>\n\n\n\n<p>However, the most significant difference is that a Script performs just once, while an Expert Advisor executes each time a new price value is gotten.<\/p>\n\n\n\n<p>Yeah, I understand that tail end is a mouthful: &#8220;carries out each time a brand-new rate worth is received&#8221;.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" width=\"500\" height=\"500\" src=\"https:\/\/forexrobo.trading\/blog\/wp-content\/uploads\/2021\/06\/scripts-vs-EA.png\" alt=\"\" class=\"wp-image-530\" srcset=\"https:\/\/forexrobo.trading\/blog\/wp-content\/uploads\/2021\/06\/scripts-vs-EA.png 500w, https:\/\/forexrobo.trading\/blog\/wp-content\/uploads\/2021\/06\/scripts-vs-EA-150x150.png 150w, https:\/\/forexrobo.trading\/blog\/wp-content\/uploads\/2021\/06\/scripts-vs-EA-300x300.png 300w, https:\/\/forexrobo.trading\/blog\/wp-content\/uploads\/2021\/06\/scripts-vs-EA-50x50.png 50w\" sizes=\"(max-width: 500px) 100vw, 500px\" \/><\/figure>\n\n\n\n<p>This is how it works: Your Expert Advisor, physically situated on your computer system, waits on new cost data to be sent out from the broker&#8217;s server.<\/p>\n\n\n\n<p>When new rate information is received, your Expert Advisor executes. If there isn&#8217;t any new price information, your EA does not perform.<\/p>\n\n\n\n<p>You might have seen that when the market is slow your EA does not run. This behavior is right!<\/p>\n\n\n\n<p>EA&#8217;s are created to perform their reasoning based upon changes in cost. (Remember, a modification in cost will usually lead to a modification in an indication worth.) If there is no change in price, there is no factor for the EA to carry out.<\/p>\n\n\n\n<p>There&#8217;s a subtle by-product of this behavior that you should be aware of.<\/p>\n\n\n\n<p>If your EA consists of logic that is entirely based on time, it may not carry out precisely the way you prepared.<\/p>\n\n\n\n<p>Expect your EA is created to open a trade at 8:00, but the marketplace is sluggish and there is no rate motion at that time. Well, it ain&#8217;t gon na happen. Not at 8:00.<\/p>\n\n\n\n<p>Due to the fact that your EA will not even carry out if there is not a modification in cost.<\/p>\n\n\n\n<p>If your EA is written correctly, it will perform on the next cost modification after 8:00.<\/p>\n\n\n\n<p>Truthfully, this is normally not a big offer. That trade arranged for 8:00 will normally be opened within a few seconds of 8:00.<\/p>\n\n\n\n<p>Still, it&#8217;s good to be familiar with these subtleties. You ought to understand the behavior of your EA under any market condition.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What&#8217;s the difference between an Expert Advisor and a Script? Everybody get this concern a lot. Both are composed in MQL, so they both have access to the library of MQL functions for opening and closing trades, finding sign values&hellip; <a href=\"https:\/\/forexrobo.trading\/blog\/education\/difference-between-ea-and-scripts\/\" class=\"more-link\">Continue Reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[15],"tags":[32,30,17,36,31,23,28],"_links":{"self":[{"href":"https:\/\/forexrobo.trading\/blog\/wp-json\/wp\/v2\/posts\/529"}],"collection":[{"href":"https:\/\/forexrobo.trading\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/forexrobo.trading\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/forexrobo.trading\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/forexrobo.trading\/blog\/wp-json\/wp\/v2\/comments?post=529"}],"version-history":[{"count":2,"href":"https:\/\/forexrobo.trading\/blog\/wp-json\/wp\/v2\/posts\/529\/revisions"}],"predecessor-version":[{"id":561,"href":"https:\/\/forexrobo.trading\/blog\/wp-json\/wp\/v2\/posts\/529\/revisions\/561"}],"wp:attachment":[{"href":"https:\/\/forexrobo.trading\/blog\/wp-json\/wp\/v2\/media?parent=529"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/forexrobo.trading\/blog\/wp-json\/wp\/v2\/categories?post=529"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/forexrobo.trading\/blog\/wp-json\/wp\/v2\/tags?post=529"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}