{"id":1870,"date":"2021-12-08T16:01:07","date_gmt":"2021-12-08T07:01:07","guid":{"rendered":"https:\/\/astcconline.com\/?p=1870"},"modified":"2022-06-15T20:17:54","modified_gmt":"2022-06-15T11:17:54","slug":"en-ea-average-directional-index","status":"publish","type":"post","link":"https:\/\/kerotto.mydns.jp\/kerotto_mydns_jp\/1870\/en-ea-average-directional-index\/","title":{"rendered":"NO.6  Free EA for MT5 Using Average Directional Index #FX Automatic Trading"},"content":{"rendered":"<h2>Average Directional Index<\/h2>\n<h3>basic specifications<\/h3>\n<p>After fixing the time axis, calculate ADX (Average Directional Movement) and<br \/>\nIf ADX is 25 (ADX_sikiiti) or higher: It is a trend market, so we will face it in a &#8220;progressive&#8221; manner.<br \/>\nIf ADX is less than 25 (ADX_sikiiti): There is a high possibility of a range market, so face with &#8220;contrarian&#8221;<br \/>\n[Buy signal]<br \/>\n\u30fb When + DI penetrates -DI from bottom to top (+ DI> -DI)<br \/>\nIf it exceeds, buy it.<br \/>\n[Sell signal]<br \/>\n\u30fb When -DI penetrates + DI from bottom to top (+ DI <-DI)\nIf it falls below, sell it.\n\n\nIf you have a position,\nIf the index reverses\nAfter closing the position\nGet the opposite position.\n\n\n\n\n<h3>InPut input value setting (variable name initial value explanation) <\/h3>\n<p>&#8220;Average Directional Movement&#8221;<br \/>\nADX_period = PERIOD_CURRENT; \/\/ ADX calculation target time axis<br \/>\nADX_period_kikan = 14; \/\/ ADX calculation period<br \/>\nADX_sikiiti = 25; \/\/ ADX judgment threshold<\/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.<\/p>\n<p><a href=\"http:\/\/kerotto.mydns.jp\/wp-content\/custom_php\/download_counter.php?dlc_folder=\/EA\/&#038;dlc_name=iADX_20211010.mq5\">iADX_20211010.mq5<\/a><\/p>\n<p><a href=\"http:\/\/kerotto.mydns.jp\/wp-content\/custom_php\/download_counter.php?dlc_folder=\/EA\/&#038;dlc_name=iADX_20211010.ex5\">iADX_20211010.ex5<\/a><\/p>\n<p><a href=\"http:\/\/kerotto.mydns.jp\/wp-content\/uploads\/2021\/10\/adx1.png\"><img  title=\"\" loading=\"lazy\" decoding=\"async\" src=\"http:\/\/kerotto.mydns.jp\/wp-content\/uploads\/2021\/10\/adx1.png\"  alt=\"adx1 NO.6  Free EA for MT5 Using Average Directional Index #FX Automatic Trading\"  width=\"1574\" height=\"554\" class=\"alignnone size-full wp-image-1137\" \/><\/a><\/p>\n<p><a href=\"http:\/\/kerotto.mydns.jp\/wp-content\/uploads\/2021\/10\/adx2.png\"><img  title=\"\" loading=\"lazy\" decoding=\"async\" src=\"http:\/\/kerotto.mydns.jp\/wp-content\/uploads\/2021\/10\/adx2.png\"  alt=\"adx2 NO.6  Free EA for MT5 Using Average Directional Index #FX Automatic Trading\"  width=\"1592\" height=\"729\" class=\"alignnone size-full wp-image-1138\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Average Directional Index basic specifications After fixing the time axis, calculate ADX (Average Directional  [&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-1870","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\/1870","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=1870"}],"version-history":[{"count":3,"href":"https:\/\/kerotto.mydns.jp\/kerotto_mydns_jp\/wp-json\/wp\/v2\/posts\/1870\/revisions"}],"predecessor-version":[{"id":2745,"href":"https:\/\/kerotto.mydns.jp\/kerotto_mydns_jp\/wp-json\/wp\/v2\/posts\/1870\/revisions\/2745"}],"wp:attachment":[{"href":"https:\/\/kerotto.mydns.jp\/kerotto_mydns_jp\/wp-json\/wp\/v2\/media?parent=1870"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kerotto.mydns.jp\/kerotto_mydns_jp\/wp-json\/wp\/v2\/categories?post=1870"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kerotto.mydns.jp\/kerotto_mydns_jp\/wp-json\/wp\/v2\/tags?post=1870"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}