{"id":2040,"date":"2021-12-28T15:33:29","date_gmt":"2021-12-28T06:33:29","guid":{"rendered":"https:\/\/astcconline.com\/?p=2040"},"modified":"2021-12-19T16:54:04","modified_gmt":"2021-12-19T07:54:04","slug":"en-ea-average-true-range","status":"publish","type":"post","link":"https:\/\/kerotto.mydns.jp\/kerotto_mydns_jp\/2040\/en-ea-average-true-range\/","title":{"rendered":"NO.10 Free EA for MT5 Using Average True Range #FX Automatic Trading"},"content":{"rendered":"<h2>Average True Range<\/h2>\n<h3>basic specifications<\/h3>\n<p>After fixing the time axis, calculate the Average True Range and<br \/>\nIf the value is ATR_High_Level or higher, sell.<br \/>\nIf the value is ATR_Low_Level or less, buy.<\/p>\n<p>If you have a position,<br \/>\nIf the index reverses<br \/>\nAfter closing the position<br \/>\nGet the opposite position.<\/p>\n<h3>InPut input value setting (variable name initial value explanation) <\/h3>\n<p>&#8220;Average True Range&#8221;<br \/>\nATR_period = PERIOD_CURRENT; \/\/ Target time axis<br \/>\nATR_period_kikan = 14; \/\/ Calculation period<br \/>\nATR_High_Level = 0.07; \/\/ Trade threshold High<br \/>\nATR_Low_Level = 0.12; \/\/ Trade threshold Low<\/p>\n<p>\/\/Profit ant Stop loss setting<br \/>\n\/\/When ordering<br \/>\nTP_Bairitu = 0; \/\/Profit when ordering : 0 = Not set, Other than= Rate from current price >> Example: 0.005<br \/>\nSL_Bairitu = 0; \/\/Profit when ordering : 0 = Not set, Other than= Rate from current price >> Example: 0.005<br \/>\n\/\/At the time of tick<br \/>\nTP_kin = 100; \/\/tick time Profit : 0 = not set, Other than = Fixed value >> Example: 100<br \/>\nSL_kin = -100; \/\/tick time Stop loss : 0 = not set, Other than = Fixed value >> Example: -100(Negative value)<\/p>\n<p>\/\/lot and magic number<br \/>\ninput double Fix_Lot = 0.01; \/\/Order lot<br \/>\ninput ulong MagicNumberA = 123456789; \/\/magic number<br \/>\ninput bool log_out = 0; \/\/output the log<br \/>\ninput bool DamiDami = 0; \/\/Dummy setting for optimizing invalidity<\/p>\n<h3>supplementary explanation<\/h3>\n<p>TP_Bairitu and SL_Bairitu are set when the position is acquired.<br \/>\nIf it is 0, there is none.<br \/>\nIf 0.01, the current price is<br \/>\nIf it is 100 yen, the profit will be 101 (100 + 100 * 0.01).<br \/>\nThe stop loss is 99 (100-100 * 0.01).<\/p>\n<p>Enter fixed values \u200b\u200bfor TP_kin and SL_kin. Judgment is made for each Tick.<br \/>\nIf you enter TP_kin as 1000, it will be settled when the profit and loss becomes 1000 or more.<br \/>\nIf you enter -100 in SL_kin, the profit and loss will be settled when it exceeds -100.<br \/>\nEnter a negative value for SL_kin.<\/p>\n<p>Download this EA.<br \/>\n<a href=\"http:\/\/kerotto.mydns.jp\/wp-content\/uploads\/EA\/iATR_20211010.mq5\" download=\"\">iATR_20211010.mq5<\/a><br \/>\n<a href=\"http:\/\/kerotto.mydns.jp\/wp-content\/uploads\/EA\/iATR_20211010.ex5\" download=\"\">iATR_20211010.ex5<\/a><\/p>\n<p><a href=\"http:\/\/kerotto.mydns.jp\/wp-content\/uploads\/2021\/10\/ATR1.png\"><img  title=\"\" loading=\"lazy\" decoding=\"async\" src=\"http:\/\/kerotto.mydns.jp\/wp-content\/uploads\/2021\/10\/ATR1.png\"  alt=\"ATR1 NO.10 Free EA for MT5 Using Average True Range #FX Automatic Trading\"  width=\"1594\" height=\"558\" class=\"alignnone size-full wp-image-1171\" srcset=\"https:\/\/kerotto.mydns.jp\/kerotto_mydns_jp\/wp-content\/uploads\/2021\/10\/ATR1.png 1594w, https:\/\/kerotto.mydns.jp\/kerotto_mydns_jp\/wp-content\/uploads\/2021\/10\/ATR1-300x105.png 300w, https:\/\/kerotto.mydns.jp\/kerotto_mydns_jp\/wp-content\/uploads\/2021\/10\/ATR1-1024x358.png 1024w, https:\/\/kerotto.mydns.jp\/kerotto_mydns_jp\/wp-content\/uploads\/2021\/10\/ATR1-768x269.png 768w, https:\/\/kerotto.mydns.jp\/kerotto_mydns_jp\/wp-content\/uploads\/2021\/10\/ATR1-1536x538.png 1536w\" sizes=\"auto, (max-width: 1594px) 100vw, 1594px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/kerotto.mydns.jp\/wp-content\/uploads\/2021\/10\/ATR2.png\"><img  title=\"\" loading=\"lazy\" decoding=\"async\" src=\"http:\/\/kerotto.mydns.jp\/wp-content\/uploads\/2021\/10\/ATR2.png\"  alt=\"ATR2 NO.10 Free EA for MT5 Using Average True Range #FX Automatic Trading\"  width=\"1594\" height=\"735\" class=\"alignnone size-full wp-image-1172\" srcset=\"https:\/\/kerotto.mydns.jp\/kerotto_mydns_jp\/wp-content\/uploads\/2021\/10\/ATR2.png 1594w, https:\/\/kerotto.mydns.jp\/kerotto_mydns_jp\/wp-content\/uploads\/2021\/10\/ATR2-300x138.png 300w, https:\/\/kerotto.mydns.jp\/kerotto_mydns_jp\/wp-content\/uploads\/2021\/10\/ATR2-1024x472.png 1024w, https:\/\/kerotto.mydns.jp\/kerotto_mydns_jp\/wp-content\/uploads\/2021\/10\/ATR2-768x354.png 768w, https:\/\/kerotto.mydns.jp\/kerotto_mydns_jp\/wp-content\/uploads\/2021\/10\/ATR2-1536x708.png 1536w\" sizes=\"auto, (max-width: 1594px) 100vw, 1594px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Average True Range basic specifications After fixing the time axis, calculate the Average True Range and If th [&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-2040","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\/2040","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=2040"}],"version-history":[{"count":0,"href":"https:\/\/kerotto.mydns.jp\/kerotto_mydns_jp\/wp-json\/wp\/v2\/posts\/2040\/revisions"}],"wp:attachment":[{"href":"https:\/\/kerotto.mydns.jp\/kerotto_mydns_jp\/wp-json\/wp\/v2\/media?parent=2040"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kerotto.mydns.jp\/kerotto_mydns_jp\/wp-json\/wp\/v2\/categories?post=2040"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kerotto.mydns.jp\/kerotto_mydns_jp\/wp-json\/wp\/v2\/tags?post=2040"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}