{"id":2082,"date":"2021-12-21T14:18:44","date_gmt":"2021-12-21T05:18:44","guid":{"rendered":"https:\/\/astcconline.com\/?p=2082"},"modified":"2022-01-20T13:31:44","modified_gmt":"2022-01-20T04:31:44","slug":"en-ea-how-to-1","status":"publish","type":"post","link":"https:\/\/kerotto.mydns.jp\/kerotto_mydns_jp\/2082\/en-ea-how-to-1\/","title":{"rendered":"Draw a line at EA"},"content":{"rendered":"<p>Draw a line with EA<\/p>\n<p>I had a hard time because there were not many reference materials.<\/p>\n<p>The reference page only has a sample as a function,<\/p>\n<p>While disassembling the function, I forcibly stored it.<\/p>\n<p>Please refer to the sample below.<\/p>\n<p>\/\/ Data variable declaration<br \/>\ndatetime date [];<\/p>\n<p>\/\/ Substitute continuous date data for date []<br \/>\nif (CopyTime (Symbol (), Period (), 0,100, date) == -1) {}<\/p>\n<p>\/\/Variable declaration<br \/>\nint d1 = 0;<br \/>\nint d2 = 100;<\/p>\n<p>\/\/ Variable declaration Display Y-axis value<br \/>\ndouble kekka [5] [5];<\/p>\n<p>kekka [0] [0] = \/\/ Display right end value<br \/>\nkekka [0] [1] = \/\/ Display left end value<\/p>\n<p>\/\/ OBJ_TREND Draw a line between two points<br \/>\nFor more information, https:\/\/www.mql5.com\/ja\/docs\/objects\/objectcreate<\/p>\n<p>\/\/ Function to write a line<br \/>\nObjectCreate (0, &#8220;HLine&#8221;, OBJ_TREND, 0, date [d1], kekka [0] [0], date [d2], kekka [0] [1]);<\/p>\n<p><a href=\"http:\/\/kerotto.mydns.jp\/wp-content\/uploads\/2021\/12\/1b71ce6079dfe35a034cffcc46d42eb7.png\"><img  title=\"\" loading=\"lazy\" decoding=\"async\" src=\"http:\/\/kerotto.mydns.jp\/wp-content\/uploads\/2021\/12\/1b71ce6079dfe35a034cffcc46d42eb7.png\"  alt=\"1b71ce6079dfe35a034cffcc46d42eb7 Draw a line at EA\"  width=\"1307\" height=\"515\" class=\"alignnone size-full wp-image-2084\" srcset=\"https:\/\/kerotto.mydns.jp\/kerotto_mydns_jp\/wp-content\/uploads\/2021\/12\/1b71ce6079dfe35a034cffcc46d42eb7.png 1307w, https:\/\/kerotto.mydns.jp\/kerotto_mydns_jp\/wp-content\/uploads\/2021\/12\/1b71ce6079dfe35a034cffcc46d42eb7-300x118.png 300w, https:\/\/kerotto.mydns.jp\/kerotto_mydns_jp\/wp-content\/uploads\/2021\/12\/1b71ce6079dfe35a034cffcc46d42eb7-1024x403.png 1024w, https:\/\/kerotto.mydns.jp\/kerotto_mydns_jp\/wp-content\/uploads\/2021\/12\/1b71ce6079dfe35a034cffcc46d42eb7-768x303.png 768w\" sizes=\"auto, (max-width: 1307px) 100vw, 1307px\" \/><\/a><\/p>\n<p>that&#8217;s all<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Draw a line with EA I had a hard time because there were not many reference materials. The reference page only [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-2082","post","type-post","status-publish","format-standard","hentry","category-english-page-ea"],"_links":{"self":[{"href":"https:\/\/kerotto.mydns.jp\/kerotto_mydns_jp\/wp-json\/wp\/v2\/posts\/2082","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kerotto.mydns.jp\/kerotto_mydns_jp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kerotto.mydns.jp\/kerotto_mydns_jp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kerotto.mydns.jp\/kerotto_mydns_jp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kerotto.mydns.jp\/kerotto_mydns_jp\/wp-json\/wp\/v2\/comments?post=2082"}],"version-history":[{"count":0,"href":"https:\/\/kerotto.mydns.jp\/kerotto_mydns_jp\/wp-json\/wp\/v2\/posts\/2082\/revisions"}],"wp:attachment":[{"href":"https:\/\/kerotto.mydns.jp\/kerotto_mydns_jp\/wp-json\/wp\/v2\/media?parent=2082"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kerotto.mydns.jp\/kerotto_mydns_jp\/wp-json\/wp\/v2\/categories?post=2082"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kerotto.mydns.jp\/kerotto_mydns_jp\/wp-json\/wp\/v2\/tags?post=2082"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}