{"id":2466,"date":"2022-02-26T13:40:46","date_gmt":"2022-02-26T04:40:46","guid":{"rendered":"https:\/\/astcconline.com\/?p=2466"},"modified":"2022-04-22T11:37:45","modified_gmt":"2022-04-22T02:37:45","slug":"en-ea-bollinger-bands","status":"publish","type":"post","link":"https:\/\/kerotto.mydns.jp\/kerotto_mydns_jp\/2466\/en-ea-bollinger-bands\/","title":{"rendered":"NO.15  EA for MT5 using  Bollinger Bands FX Automatic trading"},"content":{"rendered":"<h3> \u2606 Basic specifications <\/ h3><br \/>\nAfter fixing the time axis, calculate the Bollinger band and<br \/>\nIf the current price exceeds the up band, buy<br \/>\nIf the current price exceeds the down band, sell<\/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> \u2606 InPut input value setting (variable name initial value explanation) <\/ h3><br \/>\n\/\/ Bollinger Bands<br \/>\nBo_period = PERIOD_CURRENT; \/\/ Boliban calculation target period<br \/>\nBo_bands_period = 20; \/\/ Boliban calculation period<br \/>\nBo_bands_shift = 0; \/\/ Bolivan shift<br \/>\nBo_deviation = 2; \/\/ Boliban deviation factor<br \/>\nBo_applied_price = PRICE_CLOSE; \/\/ Price selection parameters used in the Boliban calculation<\/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\/iBands_20211103.mq5\" download=\"\">iBands_20211103.mq5<\/a><br \/>\n<a href=\"http:\/\/kerotto.mydns.jp\/wp-content\/uploads\/EA\/iBands_20211103.ex5\" download=\"\">iBands_20211103.ex5<\/a><\/p>\n<h3>Back test<\/h3>\n<p>USDJPY<br \/>\nTime value  = H1<br \/>\nInput value = initial value<br \/>\nPeriod      = last year<\/p>\n<p><a href=\"http:\/\/kerotto.mydns.jp\/wp-content\/uploads\/2021\/11\/BB1.png\"><img  title=\"\" loading=\"lazy\" decoding=\"async\" src=\"http:\/\/kerotto.mydns.jp\/wp-content\/uploads\/2021\/11\/BB1.png\"  alt=\"BB1 NO.15  EA for MT5 using  Bollinger Bands FX Automatic trading\"  width=\"1583\" height=\"551\" class=\"alignnone size-full wp-image-1272\" \/><\/a><\/p>\n<p><a href=\"http:\/\/kerotto.mydns.jp\/wp-content\/uploads\/2021\/11\/BB2.png\"><img  title=\"\" loading=\"lazy\" decoding=\"async\" src=\"http:\/\/kerotto.mydns.jp\/wp-content\/uploads\/2021\/11\/BB2.png\"  alt=\"BB2 NO.15  EA for MT5 using  Bollinger Bands FX Automatic trading\"  width=\"1588\" height=\"699\" class=\"alignnone size-full wp-image-1273\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u2606 Basic specifications After fixing the time axis, calculate the Bollinger band and If the current price excee [&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":[21,18,24,20,19],"class_list":["post-2466","post","type-post","status-publish","format-standard","hentry","category-english-page-ea","tag-ea","tag-fx","tag-24","tag-20","tag-19"],"_links":{"self":[{"href":"https:\/\/kerotto.mydns.jp\/kerotto_mydns_jp\/wp-json\/wp\/v2\/posts\/2466","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=2466"}],"version-history":[{"count":1,"href":"https:\/\/kerotto.mydns.jp\/kerotto_mydns_jp\/wp-json\/wp\/v2\/posts\/2466\/revisions"}],"predecessor-version":[{"id":2467,"href":"https:\/\/kerotto.mydns.jp\/kerotto_mydns_jp\/wp-json\/wp\/v2\/posts\/2466\/revisions\/2467"}],"wp:attachment":[{"href":"https:\/\/kerotto.mydns.jp\/kerotto_mydns_jp\/wp-json\/wp\/v2\/media?parent=2466"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kerotto.mydns.jp\/kerotto_mydns_jp\/wp-json\/wp\/v2\/categories?post=2466"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kerotto.mydns.jp\/kerotto_mydns_jp\/wp-json\/wp\/v2\/tags?post=2466"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}