Friday 14 July 2017

ไบนารี ตัวเลือก กลยุทธ์ ทดสอบ


David 15 ต. ค. 2014 เนื่องจากฉันได้รับคำถามหลายครั้งเกี่ยวกับเครื่องมือทดสอบ MT4 ที่ฉันใช้ฉันตัดสินใจที่จะสร้างวิดีโอเล็ก ๆ น้อย ๆ เกี่ยวกับการแสดงวิธีที่คุณสามารถใช้งานได้โดยใช้กฎง่ายๆ BIG ขอบคุณ Ryan จาก SignalPush ในการเขียนโค้ดนี้ สำหรับเราที่จะใช้ดังนั้นที่นี่ก็เช่นเดียวกับไฟล์ที่ฉันจะพยายามที่จะตอบคำถาม แต่โปรดจำไว้ว่าฉันยังคง newbie ที่นี้เป็น well. Wins 195, Ties 0 สูญเสีย 43 รวม 238 ร้อยละ 81 9 ทดสอบได้ตลอดเวลาที่ผ่านมา 09 19 2014 00 45 การทดสอบ 1 เดือนปัญหาเดียวคือฉันไม่เข้าใจว่ามันทำงานอย่างไรนี่คือการเขียนโค้ดที่ฉันใส่ใน test. if H0 Cl1 Down i High i 5 Point if เปิด i ปิด i-1 WinBuffer i-1 สูง i-1 พิมพ์พอยท์ 5 วินเวลา TimeToStr เวลา i total wins else ถ้าเปิด i Close i-1 Tie พิมพ์ที่ TimeToStr Time i LossBuffer i-1 สูง i-1 รวม 5 จุดทั้งหมด อื่นขาดทุน LossBuffer i-1 สูง i-1 5 จุดพิมพ์ขาดทุนที่ TimeToStr เวลา i total. if L0 Cl1 ขึ้น i ต่ำ i-5 Point ถ้าเปิด i Close i-1 WinBuffer i-1 ต่ำ i-1 - 5 พิมพ์ชนะจุด ที่ T imeToStr เวลา i ทั้งหมดชนะอื่นถ้าเปิด i ปิด i-1 พิมพ์ Tie ที่ TimeToStr Time i LossBuffer i-1 สูง i-1 5 จุดรวมทั้งหมดอื่น LossBuffer i-1 ต่ำ i-1 - 5 จุดพิมพ์ขาดทุนที่ TimeToStr เวลา i total loss. Any ช่วยให้เข้าใจนี้จะดีและฉันจะทำให้งานนี้มีการทดสอบกลับหรือฉันจะต้องเข้าใจและเพียงแค่โทรและใส่มันออกมาขออภัยฉันมากใหม่นี้มีความเข้าใจน้อย termology. David 20 ต. ค. 2014. ฉันได้ลองเครื่องทดสอบตัวบ่งชี้ของคุณบน USDJPY, 15 นาที chart. Wins 195, Ties 0 ขาดทุน 43, รวม 238, เปอร์เซ็นต์ 81 9. ทดสอบตลอดจนกลับไปที่ 09 19 2014 00 45 การทดสอบ 1 เดือน ปัญหาเดียวคือฉันไม่เข้าใจวิธีการทำงานนี่คือการเข้ารหัสที่ฉันใส่ใน test. if H0 Cl1 Down ฉันสูง i 5 จุดถ้าเปิด i Close i-1 WinBuffer i-1 สูง i-1 พิมพ์จุด 5 ชนะที่ TimeToStr เวลา i ทั้งหมดชนะอื่นถ้าเปิด i ปิด i-1 พิมพ์ Tie ที่ TimeToStr Time i LossBuffer i-1 สูง i-1 5 พอยต์ความสัมพันธ์ทั้งหมดอื่นขาดทุน LossBuffer i-1 สูง i-1 5 Poin t การสูญเสียการพิมพ์ที่ TimeToStr เวลา i total. if L0 Cl1 ขึ้น i Low i-5 Point ถ้าเปิด i Close i-1 WinBuffer i-1 Low i-1 - พิมพ์จุด 5 ที่ TimeToStr เวลา i total wins else if Open i Close i-1 พิมพ์ Tie ที่ TimeToStr Time i LossBuffer i-1 สูง i-1 5 จุดรวมความสัมพันธ์อื่น LossBuffer i-1 ต่ำ i-1 - 5 จุดพิมพ์ขาดทุนที่ TimeToStr เวลา i ขาดทุนทั้งหมดช่วยให้เข้าใจนี้จะดี และฉันจะทำให้งานนี้กับการทดสอบกลับหรือฉันต้องเข้าใจและเพียงแค่โทรและใส่มันออกมาขออภัยฉันมากใหม่นี้มีความเข้าใจน้อย terminology. Athing โดยใช้แถบ 0 ปัจจุบันจะไม่ทำงานใน ทดสอบกลับอย่างถูกต้องเพราะจะใช้แถบเต็มและไม่ใช้รายการที่ถูกต้องว่าคุณจะมี gottenedian 20 ตุลาคม 2014.Binary Options Strategy Tester. Binary ตัวเลือกกลยุทธ์การทดสอบสำหรับ Metatrader 4.Build Binary Options กลยุทธ์ backtest in Metatrader 4 Strategy-Tester. Run backtests ของกลยุทธ์ตัวเลือกไบนารีเป็นเวลานานในระยะเวลาอันสั้น ใช้กลยุทธ์ Binary Options เพื่อให้มีเสถียรภาพในการซื้อขายลองใช้การทดสอบ Binary Options กับโบรกเกอร์ของคุณทำการทดสอบกับสัญลักษณ์ใด ๆ เช่น EURUSD, GBPUSD, EURJPY ฯลฯ หรือระยะเวลาใด ๆ เช่น M1, M5, M15, M30, H1 เป็นต้นกลยุทธ์ - Tester of Metatrader 4 ไม่สามารถจัดการตัวเลือกไบนารีได้ดังนั้นอรรถประโยชน์นี้จะวางคำสั่งเสมือนนับผลของพวกเขาและพิมพ์ออกข้อมูลในแผนภูมิเพื่อให้คุณมีโอกาสในการทดสอบและปรับปรุงกลยุทธ์ของตัวเลือกไบนารีของคุณดูภาพหน้าจอที่ 1 สำหรับแนวคิดของ ยูทิลิตี้ Binary-Options-Strategy-Tester โปรดจำไว้ว่า Backtesting กับข้อมูลในอดีตจะไม่เป็นตัวแทนในอนาคตที่แท้จริง แต่อาจให้ค่าโดยประมาณเพื่อให้กลยุทธ์มีเสถียรภาพมากขึ้นคุณภาพของการทดสอบหลังการขายของคุณจะขึ้นอยู่กับข้อมูลในอดีตของคุณ ขอแนะนำอย่างยิ่งให้ใช้ชุดของข้อมูลที่มีคุณภาพสูงดาวน์โหลดและซื้ออรรถประโยชน์ Binary-Options-Strategy-Tester - จำเป็นต้องซื้อเวอร์ชันที่ซื้อทำไม Binary-Optio รุ่นที่ซื้อมา ns-Strategy-Tester จำเป็นต้องใช้กลยุทธ์ Binary-Options เพื่อเรียกฟังก์ชันของ Binary-Options-Strategy-Tester ผ่านทาง Binary-Options-Strategy-Library เพื่อวางธุรกิจเสมือนดูภาพหน้าจอ 1 แนวคิดเกี่ยวกับแนวคิดใบอนุญาต ของ MQL4 นี้ใช้งานได้เฉพาะในกรณีที่ผลิตภัณฑ์มีสิทธิการใช้งานดังนั้นคุณต้องซื้อผลิตภัณฑ์เพื่อทดสอบกลยุทธ์ตัวเลือกไบนารีหรือโค้ดตัวอย่างที่เชื่อมโยงในส่วนสร้างกลยุทธ์สร้างกลยุทธ์ดูวิธีสร้างและทดสอบกลยุทธ์ตัวเลือกไบนารีด้วย กลยุทธ์ - ทดสอบของ Metatrader 4 ตัวอย่างเช่นวิธีการสร้างกลยุทธ์สำหรับ Binary - Options - Strategy - Tester และรัน backtests เช่นเดียวกับการทดสอบไปข้างหน้า 1 เปิด Metatrader 4 Strategy - Tester เลือกโฟลเดอร์ Binary - Options - Strategy - Tester, ตั้งค่าพารามิเตอร์ที่จำเป็นของคุณและเริ่มต้น Strategy-Tester 2 ลากตัวบ่งชี้ที่กลยุทธ์ของคุณจะถูกเก็บไว้ในแผนภูมิตั้งค่าพารามิเตอร์ที่จำเป็นสำหรับการป้อนข้อมูลของคุณสำหรับกลยุทธ์และดูผลลัพธ์ในแผนภูมิ 3 ปรับปรุงกลยุทธ์ของคุณและหรือเปลี่ยน พารามิเตอร์การป้อนข้อมูลเพื่อเรียกใช้ชุดทดสอบอีกครั้งจนกว่ากลยุทธ์ของคุณจะมีเสถียรภาพเพื่อทำการค้า 4 ทดสอบประสิทธิภาพด้วยการลากยูทิลิตี้ Binary-Options-Strategy-Tester และตัวบ่งชี้กลยุทธ์ของคุณในการสาธิตหรือแผนภูมิสดของโบรกเกอร์ของคุณนอกจากตัวบ่งชี้ของคุณด้วย Binary กลยุทธ์ตัวเลือกที่คุณสามารถใช้ตัวชี้วัดที่ใช้โดยกลยุทธ์ของคุณกับการตั้งค่าที่ใช้ในแผนภูมิเพื่อดูในแบบเรียลไทม์ขณะทดสอบนอกจากนี้คุณสามารถบันทึกตัวบ่งชี้ทั้งหมดและการตั้งค่าโดยการบันทึกเทมเพลตของแผนภูมิและโหลดการทดสอบต่อไป เมื่อต้องการบันทึกหรือโหลดตัวบ่งชี้ที่จำเป็นทั้งหมดด้วยการตั้งค่าในเทมเพลตก่อนที่เครื่องทดสอบจะทำงานให้ใช้ปุ่มหยุดชั่วคราวของ MetaTrader 4 Strategy-Tester. Input Parameters ดูหน้าจอ 2 สำหรับพารามิเตอร์อินพุทพารามิเตอร์การป้อนข้อมูลเพิ่มเติมสำหรับกลยุทธ์ของคุณจะถูกเก็บไว้ในตัวบ่งชี้กลยุทธ์ของคุณ file. Question ไม่มีลูกศรปรากฏบนแผนที่หลังจากที่ฉันลากตัวบ่งชี้ของฉันด้วยกลยุทธ์การทำงานในสิ่งที่เกิดขึ้น Answere คุณต้องเปิดใช้งานอนุญาตให้ผู้เชี่ยวชาญด้านการนำเข้าจากต่างประเทศเข้าร่วม mmon ในขณะที่คุณลากกลยุทธ์ของคุณในข้อความบันทึกแผนภูมิจะแสดงข้อผิดพลาดในกรณีนี้ Question ไม่มีลูกศรปรากฏในแผนภูมิหลังจากที่ฉันลากตัวบ่งชี้ของฉันด้วยกลยุทธ์การทำงานกับ Allow Allow external expert enabled ทำไมถึงต้องมีกลยุทธ์โทร ฟังก์ชัน Binary-Options-Strategy-Tester เพื่อวางธุรกิจการค้าแบบเสมือนที่เกี่ยวเนื่องกับแนวคิดใบอนุญาต MQL4 จะใช้งานได้เฉพาะในกรณีที่ผลิตภัณฑ์มีสิทธิการใช้งานเท่านั้นดังนั้นคุณต้องซื้อผลิตภัณฑ์ Question ไม่มีลูกศรปรากฏในแผนภูมิหลังจากที่ฉันลากตัวบ่งชี้ของฉันด้วย กลยุทธ์ในการทำงานเกี่ยวกับเรื่องนี้และฉันได้รับข้อผิดพลาดเช่นไม่สามารถเรียกหรือไม่สามารถโหลดในบันทึกของ MetaTrader 4 ฉันสามารถทำ Answere ใช้เวอร์ชันล่าสุดได้มากขึ้น v1 00 ของแท็กเวอร์ชันตรวจสอบในโค้ดของคุณและดู changelog v1 01 ของ BinaryOptionsStrategyLibrary. Question ฉันไม่เห็นผลลัพธ์ใด ๆ ในแท็บ Strategy-Tester ผลลัพธ์, กราฟ, รายงานฉันสามารถดูผลลัพธ์ได้ที่ใด Answere Strategy-Tester of Metatrader 4 ไม่สามารถจัดการกับตัวเลือกไบนารีได้ดังนั้นแท็บเหล่านี้จึงไม่สามารถใช้งานได้ ยูทิลิตี้นี้จะคำนวณผลชนะและความสูญเสียทั้งหมดและพิมพ์ผลลัพธ์ในแผนภูมิข้อมูลเพิ่มเติมโปรดดูวิธีการสร้างและทดสอบกลยุทธ์ตัวเลือกไบนารีด้วยเครื่องมือวิเคราะห์กลยุทธ์ของ Metatrader 4 ตัวอย่างเช่นวิธีการสร้างกลยุทธ์สำหรับไบนารี - ตัวเลือกยุทธศาสตร์ ทดสอบและทดสอบ backtests เช่นเดียวกับการทดสอบไปข้างหน้าหากคุณมีความคิดในการปรับปรุงกรุณาอย่าลังเลที่จะติดต่อฉัน Binary Options Strategies. Trade with BinaryOptionsRobot. Risk คำเตือนนักลงทุนสามารถสูญเสียเงินทุนทั้งหมดของพวกเขาโดยการซื้อขายตัวเลือกไบนารี Devising กลยุทธ์เป็นเพียง ขั้นตอนแรกหลังจากที่คุณเลือกวิธีการคุณต้องให้แน่ใจว่าการทำงานมีสองวิธีในการทดสอบนี้และขอแนะนำให้คุณใช้ทั้งก่อนที่คุณจะเริ่มทดสอบคุณต้องมีสมมติฐานซึ่งหมายความว่าในแง่ที่ชัดเจนคุณต้อง เพื่อให้เห็นว่าวิธีการของคุณเป็นอย่างไรและวิธีการนี้จะเป็นอย่างไรตัวอย่างเช่นคุณอาจสรุปได้ว่าการรันไบนารีใส่หลังจากสกุลเงินได้ถึงความต้านทาน l evel จะประสบความสำเร็จทางการค้า 60 เปอร์เซ็นต์ของเวลาเมื่อจัดการกับตัวเลือก 15 นาทีเมื่อคุณทดสอบประเภทของการค้านี้คุณจะต้องมีเฉพาะเกี่ยวกับช่วงและวิธีการปิดราคาตีจริงต้องเป็นระดับความต้านทานเฉพาะเจาะจงมากขึ้น คุณสามารถจะดีกว่ามันจะเป็นอีกครั้งการทดสอบสมมุติฐานกลยุทธ์ของคุณมาในสองส่วนแรกคือการดูเป็นข้อมูลกลับมากที่สุดเท่าที่เป็นไปได้มองไปที่ความผันผวนของราคาประวัติศาสตร์ในแผนภูมิดูที่ความถี่ราคาต้านทานคือ มาถึงและที่ราคาถูกจริงที่ 15 นาทีต่อมามีโอกาสที่คุณจะมีขนาดตัวอย่างขนาดใหญ่ที่นี่และคุณต้องการดูตัวอย่างให้มากที่สุดเท่าที่เป็นไปได้ แต่ don t ให้นี้ paralyze คุณดูที่ข้อมูล แต่ don t เสียเวลาการซื้อขายของคุณเป็นผลคุณต้องการการศึกษาของคุณเพื่อให้บริการวัตถุประสงค์ใหญ่หลังจาก all. Once คุณ ve วิเคราะห์ข้อมูลที่ผ่านมาเริ่มใช้บัญชีสาธิตการปฏิบัติโบรกเกอร์หลายตอนนี้ให้ฟรี แต่โบรกเกอร์บางโดยเฉพาะจะไม่ ให้พวกเขา e ออกเว้นแต่คุณจะทำการฝากเงินก่อนแล้วขอโดยเฉพาะอย่างยิ่งการเข้าถึงโปรแกรมหาโบรกเกอร์ที่มีบัญชีการสาธิตที่คุณอาจต้องส่งอีเมลบริการลูกค้าของพวกเขาเพื่อหาสิ่งนี้ออกและเปิดบัญชีจากนั้นฝึกกลยุทธ์ของคุณให้มากที่สุดเท่าที่จะเป็นไปได้ เรียลไทม์นี้ต้องใช้ความระมัดระวังมากในนามของคุณ แต่เพื่อไม่ซื้อขายชีวิตจริงซื้อขายเสมือนจริงเป็นวิธีที่ดีด้วยเหตุนี้ในหมู่คนอื่น ๆ การค้า Demo มากที่สุดก่อนที่คุณจะเริ่มต้นในการเข้าถึงข้อสรุปและเริ่มต้นการซื้อขายเงินจริงของคุณ สมมติฐานจะหวังว่าจะได้รับการพิสูจน์ที่ถูกต้อง ณ จุดนี้หากหลังจากทั้งสองชุดของการทดสอบมีมากกว่าขั้นตอนการวิจัยบวกการปฏิบัติทฤษฎีกลยุทธ์ของคุณจะประสบความสำเร็จคุณพร้อมที่จะเริ่มต้นการซื้อขายจริงถ้าคุณได้พิสูจน์แล้วว่ากลยุทธ์ของคุณไม่ประสบความสำเร็จเท่าที่คุณ ต้องการเริ่มต้นอีกครั้งมีความต้องการเวลาไม่ว่าคุณจะต้องเริ่มต้นชีวิตจริงซื้อขายได้ทันทีใช้เวลาของคุณและคิดค้นวิธีการที่จะให้ผลลัพธ์ที่คุณต้องการมีกลยุทธ์ no. ออกมีที่จะให้อัตราความสำเร็จร้อยละ 100 แต่คุณสามารถประสบความสำเร็จถ้าคุณใช้เวลาของคุณและทำวิจัยที่จำเป็นในการคิดออกว่าอะไรทำงานได้และสิ่งที่ doesn t เพียงแค่กระโดดลงในการซื้อขายในชีวิตจริงเป็นความคิดที่ไม่ดีคุณจะไม่แน่นอน ต้องการทำเงินของคุณจะหายไปก่อนที่คุณจะเริ่มต้นไบนารีตัวเลือกที่ดีกลยุทธ์การซื้อขายจะเอาชนะการขาดดุลระหว่างอัตราชนะและอัตราการสูญเสียสำหรับโบรกเกอร์ส่วนใหญ่นี้ hovers ที่ประมาณอัตราความสำเร็จร้อยละ 55-60 คุณสามารถชนะ นี้หากคุณใส่ในงานจริงสมกับผลสิ้นและ don t บังคับการค้าที่ไม่ทำงานบนกระดาษวิธีการสร้างและทดสอบกลยุทธ์ตัวเลือกไบนารีกับ MetaTrader 4 Strategy Tester. Table ของ Contents.1 Introduction. This บทความนี้จะแสดงวิธีการสร้างกลยุทธ์ Binary Options และทดสอบใน Strategy-Tester ของ Metatrader 4 โดยใช้โปรแกรม Binary-Options-Strategy-Tester โดยค่าเริ่มต้น Strategy-Tester ของ Metatrader 4 สามารถทดสอบ Expert Advisors and Indicators กับข้อมูลทางประวัติศาสตร์ได้ ไม่สามารถจัดการตัวเลือกไบนารีกับเวลาที่หมดอายุได้เนื่องจากฉันต้องการความเป็นไปได้ในการทดสอบกลยุทธ์ตัวเลือกไบนารีโดยอัตโนมัติใน Strategy-Tester ของ MetaTrader 4 ไบนารี - ตัวเลือก - ยุทธศาสตร์ - ทดสอบถูกสร้างเป็นยูทิลิตีเพื่อให้เหมาะกับความต้องการเหล่านั้นแนวคิดประกอบด้วยส่วนต่อไปนี้ นี่คือขั้นตอนทีละขั้นตอนตัวอย่างวิธีการสร้างกลยุทธ์ตัวเลือกไบนารีที่เก็บอยู่ในตัวบ่งชี้ที่ทำเครื่องหมายเป็นสีแดงในภาพด้านบนเพื่อสื่อสารผ่าน Binary-Options-Strategy-Library ที่ทำเครื่องหมายว่าเป็นสีเขียวในภาพด้านบนด้วย Binary-Options-Strategy-Tester ทำเครื่องหมายว่าเป็นสีน้ำเงินในภาพด้านบนเพื่อวางคำสั่งซื้อเสมือนจริงและนับผลการค้นหาด้วยการทดสอบย้อนกลับและการทดสอบไปข้างหน้าโปรดระลึกไว้ว่า Backtesting กับข้อมูลในอดีตจะไม่เป็นตัวแทนในอนาคตที่แท้จริง แต่อาจให้ค่าโดยประมาณเพื่อให้กลยุทธ์ของคุณมีเสถียรภาพมากขึ้น คุณภาพของการทดสอบหลังการขายของคุณจะขึ้นอยู่กับข้อมูลในอดีตของคุณดังนั้นจึงขอแนะนำให้ใช้ชุดข้อมูลที่มีคุณภาพสูง 2 การติดตั้งดาวน์โหลดและซื้อ Binary-Options-Strategy-Tes ter จากตลาด Test-Framework เพื่อทดสอบกลยุทธ์ Binary Options ใน Strategy-Tester ของ MetaTrader 4. ทำไมต้องมียูทิลิตี้ Binary-Options-Strategy-Tester ที่ซื้อมากลยุทธ์ Binary-Options จึงต้องเรียกใช้ฟังก์ชัน Binary-Options - Ttrategy-Tester ผ่านทางไบนารี - ตัวเลือกยุทธวิธี - ห้องสมุดเพื่อวางการค้าเสมือนที่เกี่ยวข้องกับแนวคิดใบอนุญาตของ MQL4 นี้จะใช้ได้เฉพาะในกรณีที่ผลิตภัณฑ์มีใบอนุญาตทำงานดังนั้นคุณต้องซื้อผลิตภัณฑ์เพื่อทดสอบกลยุทธ์ตัวเลือกไบนารีหรือตัวอย่างนี้ ดาวน์โหลดฟรีและใส่ลงในโฟลเดอร์รวมเส้นทางไปยัง MetaTrader 4 MQL4 รวมไลบรารีฟรีจะมีฟังก์ชันหลายอย่างเพื่อสร้างยุทธศาสตร์ตัวเลือกไบนารีของคุณได้อย่างง่ายดายและสามารถสื่อสารกับ Binary-Options-Strategy-Tester ได้จาก Binary-Options-Strategy-Tester สำหรับรายละเอียดเพิ่มเติมของไลบรารีดาวน์โหลดตัวบ่งชี้ฟรีและวางไว้และไฟล์ที่รวบรวมลงในโฟลเดอร์ตัวชี้วัดเส้นทางการดาวน์โหลดไปยัง MetaTrader ของคุณ 4 ตัวชี้วัด MQL4 ตัวบ่งชี้ KVO คือ u sed เป็นตัวอย่างเพื่อแสดงการเข้าถึงตัวบ่งชี้ภายนอกและมี ex4 ไฟล์ในส่วนที่ 3 2 6 การใช้ตัวบ่งชี้ภายนอกไฟล์ ex4 ดูรายละเอียดเพิ่มเติมของ indicator. Now คุณสามารถไปต่อกับส่วนที่ 3 Binary ตัวเลือกกลยุทธ์และสร้างตัวอย่าง รหัสด้วยตัวคุณเองหรือเพียงแค่ดาวน์โหลดโค้ดของตัวอย่างด้านล่างดาวน์โหลดที่ถูกต้องและวางไว้และไฟล์ที่คอมไพล์ลงในโฟลเดอร์ตัวชี้วัดเส้นทางไปยังตัวบ่งชี้ MQL4 ของ MetaTrader 4 ดาวน์โหลดโค้ดของตัวเลือกไบนารีตัวเลือกกลยุทธ์นี้เพื่อให้มันทำงานได้โดยไม่ต้องสร้างมันด้วยตัวเอง เพื่อรวบรวมไฟล์ที่ต้องการเปิดไฟล์และ - ไม่อยู่ใน MetaQuotes Language Editor และคลิกที่ปุ่ม Compile หรือเพียงแค่รีสตาร์ท MetaTrader 4 หลังจากไฟล์เหล่านี้จะถูกเก็บไว้ในโฟลเดอร์ที่อธิบายไว้และ MetaTrader 4 จะทำโดยอัตโนมัติสำหรับคุณ 3 Binary Options strategy ตัวอย่างขั้นตอนต่อไปนี้จะแนะนำคุณเกี่ยวกับตัวอย่างวิธีการสร้างกลยุทธ์ตัวเลือกไบนารีตัวอย่างที่เก็บอยู่ในตัวบ่งชี้เพื่อสื่อสารกับ Binary-Options-Strat egy-Tester คุณสามารถสร้างได้ด้วยตัวคุณเองหรือเพียงแค่ดาวน์โหลดโค้ดของ. โปรดทราบกลยุทธ์นี้ไม่ได้เป็นกลยุทธ์ Binary Options ที่ทำกำไรได้มันเป็นเพียงตัวอย่างหนึ่งของการสร้างกลยุทธ์ในตัวบ่งชี้เพื่อสื่อสารกับ Binary-Options-Strategy - ยูทิลิตี้ Tester แน่นอนคุณต้องสร้างกลยุทธ์ที่ทำกำไรได้ด้วยตัวเอง แต่อย่างที่คุณเห็นอรรถประโยชน์นี้จะช่วยคุณในการทดสอบและปรับปรุงกลยุทธ์ตัวเลือกไบนารีของคุณ 1 กำหนดกลยุทธ์ตัวเลือกไบนารีประการแรกเราต้องกำหนดกลยุทธ์ และค่าพารามิเตอร์ที่เปลี่ยนแปลงได้พารามิเตอร์การป้อนข้อมูล MQL4 แสดงตัวบ่งชี้ทางเทคนิคทั้งหมดซึ่งสามารถ adressed ผ่านอินเทอร์เฟซ iCustom ทำให้เราพูดได้ว่าเราต้องการสร้างกลยุทธ์การย้ายข้ามเฉลี่ยที่เรียบง่ายโดยใช้ Fast and Moving Average เพื่อค้าเทียนต่อไปหลังจากที่พวกเขา ได้ข้ามกัน Documentation บอกว่าเราจะได้รับค่า Moving Average เท่าใดเราสามารถพูดได้ว่าเราต้องการเลือกค่าสำหรับระยะเวลาเฉลี่ยของ MA ที่รวดเร็วและช้าและสำหรับราคาที่เราใช้อยู่ ll เป็นสำหรับวิธีเฉลี่ยค่าอื่น ๆ เช่นสัญลักษณ์ระยะเวลาและ shift ขึ้นอยู่กับ testcase เช่นสัญลักษณ์ tester ทำงานบนและควรจะตั้งโดยอัตโนมัติดังนั้นโดยทั่วไปเราจำเป็นต้องมีตัวแปรต่อไปนี้สำหรับ Moving Average. int maperiod int mamethod int applyprice. As เราจำเป็นต้องใช้ Moving Averages 2 ค่าเพื่อตรวจสอบ crosses ของพวกเขาเราต้องมีพารามิเตอร์สำหรับการป้อนข้อมูลต่อไปนี้สำหรับตัวอย่างของกลยุทธ์ด้วยค่าดีฟอลต์บางค่า periodfast 5 int periodzle 10 int methodboth 0 int appliedpriceboth 0.3 2 สร้างยุทธศาสตร์ตัวเลือกไบนารีคุณต้องสร้างตัวบ่งชี้ที่ เก็บตัวเลือก Binary Options ของคุณเพื่อลากบนแผนภูมิที่ Binary-Options-Strategy-Tester กำลังทำงานอยู่ในตัวแก้ไขภาษา MetaTrader ใน MetaTrader 4 คลิกที่ Tools - แก้ไข MetaQuotes Language หรือเพียงแค่กด F4 แล้วคลิก New. MQL Wizard จะ ปรากฏเลือกตัวบ่งชี้ที่กำหนดเองเพื่อสร้างตัวบ่งชี้ว่างเปล่าและคลิกที่ต่อไปใส่ชื่อลิขสิทธิ์และลิงค์ของกลยุทธ์รวมทั้งพารามิเตอร์การป้อนข้อมูลด้วย ir และค่าเริ่มต้นค่าเริ่มต้นโดยการคลิก Add - Button และกด Next. On ตัวจัดการเหตุการณ์แท็บเลือกกล่องกาเครื่องหมาย OnCalculate ตามที่เราต้องการเพื่อตรวจสอบกลยุทธ์ของเราในการติ๊กทุกครั้งกด Next. On คุณสมบัติการวาดภาพแท็บเลือกตัวบ่งชี้ในช่องทำเครื่องหมายแยกเป็น เราจำเป็นต้องมีหน้าต่างแยกต่างหากเพื่อพิมพ์ค่าดีบักกด Finish รหัสเริ่มต้นของตัวบ่งชี้จะปรากฏขึ้น -------------------------------------------------- ---------------- ลิขสิทธิ์ 2016, martin ------------------------------ ------------------------------------ ลิขสิทธิ์ทรัพย์สิน Copyright 2016, martin property link คุณสมบัติ 1 00 คุณสมบัติเคร่งครัด ตัวชี้วัดคุณสมบัติ --- อินพุทอินพุตพารามิเตอร์ int periodfast 5 อินพุท periodlow ขาเข้า 10 input int methodboth 0 int inputpriceboth input 0 --------------------------- --------------------------------------- ฟังก์ชันการกำหนดค่าตัวบ่งชี้ที่กำหนดเอง ------- -------------------------------------------------- --------- int OnInit --- ตัวบ่งชี้บัฟเฟอร์ mapping.3 2 1 Input parameters พารามิเตอร์การป้อนค่าเริ่มต้นถูกสร้างขึ้นด้วยตัวช่วยสร้าง MQL ดู 3 2 สร้างยุทธศาสตร์ตัวเลือกไบนารีและเราจะเพิ่มประสิทธิภาพด้วยขั้นตอนต่อไปนี้ เพื่อหลีกเลี่ยงการป้อน int-values ​​สำหรับราคาที่ใช้และวิธีเฉลี่ยของ Moving Averages สำหรับพารามิเตอร์อินพุทประเภทของ methodboth และ appliedpriceboth จะเปลี่ยนจาก int เป็นประเภทของ enumer ด้วยค่าเริ่มต้นนอกจากความคิดเห็นสำหรับพารามิเตอร์อินพุตจะถูกเพิ่มเพื่อแสดงความคิดเห็นเป็นป้ายชื่อแทนที่จะเป็นชื่อตัวแปร --- อินพุทอินพุตพารามิเตอร์ int periodfast 5 ป้อนค่าแม็ปเปิ้ลอินพุต periodless ต่ำ 10 ค่าอินพุต MA MA ต่ำวิธีป้อนข้อมูล ENUMMAMETHOD วิธีการป้อน MODESMA MA ENUMAPPLIEDPRICE ใช้ราคา PRICECLOSE MA ที่ใช้กับการปรับเปลี่ยนนี้พารามิเตอร์อินพุตจะมีลิ้นชักพร้อมค่าที่มีให้เลือกเช่นกัน เป็นป้ายกำกับสำหรับพารามิเตอร์อินพุท 3 2 2 รวมไบนารี - ตัวเลือก - ยุทธศาสตร์ - ไลบรารีถ้าคุณได้ดาวน์โหลดและจัดเก็บไลบรารีดู 2 การติดตั้งลงในโฟลเดอร์รวมเส้นทางไปยัง MetaTrader 4 MQL4 รวมคุณสามารถรวมไลบรารีนี้ได้ . -------------------------------------------------- ---------------- ลิขสิทธิ์ 2016, martin ------------------------------ ------------------------------------ ลิขสิทธิ์ทรัพย์สิน Copyright 2016, martin property link คุณสมบัติ 1 00 คุณสมบัติเคร่งครัด ตัวบ่งชี้คุณสมบัติห้องสมุดจะใช้ได้เช่นที่อธิบายไว้ในตัวอย่างข้างต้นหากคุณใส่ไว้ในโฟลเดอร์รวมของ MetaTrader ของคุณ 4 การเปลี่ยนเนื้อหาของไลบรารีไม่จำเป็นต้องใช้ไบนารี - ตัวเลือก - ยุทธศาสตร์ - ไลบรารีจะเพิ่มพารามิเตอร์การป้อนข้อมูลด้วยสอง พารามิเตอร์ใหม่ระบุเฉพาะขายหนึ่งหรือหนึ่งซื้อขายต่อเทียนตรวจสอบเฉพาะที่จุดเริ่มต้นของเทียนใหม่สำหรับกลยุทธ์ 3 2 เพิ่ม CallStrategy เพิ่มการเรียก CallStrategy ฟังก์ชันใน OnCalculate ของตัวบ่งชี้กลยุทธ์ของคุณเพื่อเรียกกลยุทธ์ ในทุก CallStrategy เห็บใหม่มีให้โดย Binary - Options - Strategy - Library ที่คุณได้ inlcuded เช่นอธิบายไว้ข้างต้น CallStrategy โทรกลยุทธ์, ฟังก์ชั่น locatet รวมอยู่ในข้างต้น CallStrategy - ฟังก์ชั่นในถัง ไลบรารีจะเรียกใช้ฟังก์ชันชื่อ CheckMyRules ในตัวบ่งชี้ของคุณซึ่งคุณสามารถวางเงื่อนไขสำหรับยุทธศาสตร์ตัวเลือกไบนารีได้ดังนั้นคุณต้องใช้ฟังก์ชัน CheckMyRules ในตัวบ่งชี้ด้านกลยุทธ์ตัวเลือกไบนารีของคุณ 3 2 4 ใช้ CheckMyRules และ helper - ในฟังก์ชั่น CheckMyRules ซึ่งเรียกว่าผ่านทาง Binary-Options-Strategy-Library เงื่อนไขของกลยุทธ์จะถูกนำมาใช้และธุรกิจการค้าจะถูกนำมาวางไว้ผ่านทางฟังก์ชั่นของไลบรารีค่าของทั้ง Moving Averages จะถูกเก็บไว้ในตัวแปรเพื่อเปรียบเทียบ ถ้าเงื่อนไขในขณะที่ค่าของ Moving Averages จะถูกนำมาจาก GetValuesForMA ซึ่งเป็นผู้ช่วยเหลือ --- อินพุทพารามิเตอร์อินพุท int periodfast 5 ป้อนค่าแม็ปเปิ้ลอย่างรวดเร็ว int periodlow 10 ค่าอินพุต MA MA ต่ำวิธีการ ENUMMAMETHOD วิธีป้อน MODESMA MA ENUMAPPLIEDPRICE ราคาที่ใช้ PRICECLOSE MA -------------------------------------------------- ---------------- วางกฎการค้าของคุณที่นี่ - ดูตัวอย่างด้านล่าง StrategyTester จะเรียกใช้ฟังก์ชันนี้เพื่อวางธุรกิจการค้าไม่ - เปลี่ยนชื่อฟังก์ชัน - เพิ่ม paramaters ฟังก์ชันเช่น CheckMyRules int a - Change ชนิดส่งคืนฟังก์ชันเช่น CheckMyRules int ------------------------------------------- CheckMyRules เป็นโมฆะ เก็บค่า MA ด้วยเทียน 0 ดวงปัจจุบัน - ฟังก์ชันปัจจุบันที่เรียกใช้ฟังก์ชันการเรียกฟังก์ชัน GetValueForMA เพื่อให้ได้ค่า - โปรดดูที่ฟังก์ชันช่วยเหลือด้านล่างสองครั้ง emaSlowCurrent GetValueForMA periodlow, 0 ครั้ง double emaFastCurrent GetValueForMA periodfast, 0. เก็บค่า MA ด้วย shift 1 เทียนที่ผ่านมา - เทียนสุดท้าย , เรียกฟังก์ชันช่วยเหลือ GetValueForMA เพื่อให้ได้ค่า - โปรดดูที่ฟังก์ชันช่วยเหลือด้านล่างสองครั้ง emaSlowPast GetValueForMA periodlow, 1 ครั้ง double emaFastPast GetValueForMA periodfast, 1.if emaFastPast emaSlowPast emaFastCurrent emaSlowPast ตรวจสอบว่าช้า MA และรวดเร็ว MA ข้าม PlaceTrade OPSELL Place ขาย - ตรวจสอบว่าช้า MA และรวดเร็ว MA ข้าม PlaceTrade OPBUY สถานที่ซื้อ - การค้าสำหรับกลยุทธ์ - Tester, ฟังก์ชั่นตั้งอยู่ใน 3 2 5 พิมพ์ออกค่าดีบักฟังก์ชั่น PrintDebugValue privides ความเป็นไปได้ เพื่อพิมพ์ค่าแก้ปัญหาในขณะที่ผู้ทดสอบทำงานอยู่ในตัวอย่างด้านล่างค่าของ Moving Av erages จะพิมพ์ออกมาพร้อมกับชื่อตัวแปรของพวกเขาเป็นป้ายชื่อ --- อินพุทพารามิเตอร์อินพุท int periodfast 5 ป้อนค่าแม็ปเปิ้ลอย่างรวดเร็ว int periodlow 10 ค่าอินพุต MA MA ต่ำวิธีการ ENUMMAMETHOD วิธีป้อน MODESMA MA ENUMAPPLIEDPRICE ราคาที่ใช้ PRICECLOSE MA -------------------------------------------------- ---------------- วางกฎการค้าของคุณที่นี่ - ดูตัวอย่างด้านล่าง StrategyTester จะเรียกใช้ฟังก์ชันนี้เพื่อวางธุรกิจการค้าไม่ - เปลี่ยนชื่อฟังก์ชัน - เพิ่ม paramaters ฟังก์ชันเช่น CheckMyRules int a - Change ชนิดส่งคืนฟังก์ชันเช่น CheckMyRules int ------------------------------------------- CheckMyRules เป็นโมฆะ เก็บค่า MA ด้วยเทียน 0 ดวงปัจจุบัน - ฟังก์ชันปัจจุบันที่เรียกใช้ฟังก์ชันการเรียกฟังก์ชัน GetValueForMA เพื่อให้ได้ค่า - โปรดดูที่ฟังก์ชันช่วยเหลือด้านล่างสองครั้ง emaSlowCurrent GetValueForMA periodlow, 0 ครั้ง double emaFastCurrent GetValueForMA periodfast, 0. เก็บค่า MA ด้วย shift 1 เทียนที่ผ่านมา - เทียนสุดท้าย , เรียกฟังก์ชันผู้ช่วยเหลือ GetValueForMA เพื่อให้ได้ค่า - โปรดดูที่ฟังก์ชันช่วยเหลือด้านล่างสองครั้ง emaSlowPast GetValueForMA periodlow, 1 คู่ emaFastPast GetValueForMA periodfast, 1.PrintDebugValue emaSlowCurrent, string emaSlowCurrent, 0 ป้ายกำกับและค่าในบรรทัด 0 PrintDebugValue emaFastCurrent, string emaFastCurrent, 1 Label และ ค่าในบรรทัดที่ 1 PrintDebugValue emaSlowPast, string emaSlowPast, 2 Label และค่าในบรรทัดที่ 2 PrintDebugValue emaFastPast, string emaFastPast, 3 ป้ายชื่อและค่าในบรรทัด 3.if emaFastPast emaSlowPast emaFastCurrent emaSlowPast ตรวจสอบว่าช้า MA และ fast MA ข้าม PlaceTrade OPSELL Place SELL-Trade สำหรับ Strategy-Tester, ฟังก์ชั่นจะอยู่ใน if emaFastPast emaSlowPa st emaFastCurrent emaSlowPast ตรวจสอบว่าช้า MA และรวดเร็ว MA ข้าม PlaceTrade OPBUY สถานที่ซื้อ - การค้าสำหรับกลยุทธ์ - Tester, ฟังก์ชั่นตั้งอยู่ใน 3 2 6 การใช้ตัวบ่งชี้ภายนอก ex4 ไฟล์นอกจากนี้ตัวบ่งชี้ภายนอกที่เก็บค่าในบัฟเฟอร์สามารถ เข้าถึงได้สำหรับกลยุทธ์ตัวเลือกไบนารีแม้ว่าจะมีเพียงไฟล์ ex4 ที่คอมไพล์แล้วให้เราบอกว่าเราต้องการรวมสายสัญญาณของตัวบ่งชี้ KVO เพื่อทำธุรกิจการค้าเฉพาะเมื่อสายสัญญาณมีมากกว่า 0 สำหรับธุรกิจที่ซื้อและอยู่ต่ำกว่า 0 สำหรับขาย ค้าดาวน์โหลดตัวบ่งชี้และวางไฟล์ ex4 ที่คอมไพล์ไว้ในโฟลเดอร์ Indicators ดาวน์โหลดเส้นทางไปยัง MetaTrader ของคุณ 4 ตัวชี้วัด MQL4 Downloads. To รวบรวมไฟล์ที่ต้องการเปิดใน MetaQuotes Language Editor และคลิกที่ปุ่ม Compile หรือเพียงแค่รีสตาร์ท MetaTrader ของคุณ 4 หลังจากที่ไฟล์ถูกเก็บไว้ โฟลเดอร์ที่อธิบายไว้และ MetaTrader 4 จะทำโดยอัตโนมัติสำหรับคุณประการแรกเราต้องระบุบัฟเฟอร์ที่เกี่ยวข้องซึ่งเก็บค่าที่เกี่ยวข้องในการเข้าถึงดังนั้นเราจึงกดปุ่มข้อมูล Wi ใน MetaTrader 4 เพื่อแสดงบัฟเฟอร์ที่พร้อมใช้งานทั้งหมดของตัวบ่งชี้ที่ใช้และลากตัวบ่งชี้ KVO บนแผนภูมิโดยวางเมาส์เหนือแผนภูมิเพื่อกดข้ามเม้าส์บนแผนภูมิเพื่อแสดงค่าตัวกันชนของตัวบ่งชี้ แสดงในหน้าต่างข้อมูลป้ายข้อมูลของหน้าต่างข้อมูลบอกเราว่าค่าบัฟเฟอร์ที่สองของตัวบ่งชี้จัดเก็บสายสัญญาณถ้าบัฟเฟอร์ของตัวบ่งชี้ไม่มีป้ายชื่อเราสามารถหาค่าที่ถูกต้องได้โดยการเปรียบเทียบค่าบัฟเฟอร์กับค่าที่แสดงอยู่ภายใต้เครื่องหมายกากบาท ในแผนภูมิและตัวบ่งชี้บัฟเฟอร์ของตัวบ่งชี้เริ่มต้นด้วย 0 ดังนั้นเราจึงมีค่าบัฟเฟอร์ 1 บัฟเฟอร์ 0 ค่าบัฟเฟอร์ 2 บัฟเฟอร์ 1 และอื่น ๆ และเราต้องเข้าถึง buffer 1 เพื่อรับค่าสัญญาณ พารามิเตอร์ของตัวบ่งชี้ภายนอกที่เราต้องการจะเข้าถึงโดยการลากตัวบ่งชี้บนแผนภูมิเราจะเห็น paremeters เข้าทั้งหมดให้เราพูดอีกครั้งว่าเราต้องการเข้าถึงตัวบ่งชี้ที่มีค่าเริ่มต้น 34, 55 และ 13 เราใช้ฟังก์ชันผู้ช่วยเหลือตาม iCostu m ซึ่งให้ความเป็นไปได้ที่เราจะได้รับค่าของตัวบ่งชี้ที่มีพารามิเตอร์สำหรับบัฟเฟอร์และกะขณะที่ shift 0 จะเป็นค่าของเทียนปัจจุบันให้เปลี่ยนค่าของเทียนเล่มสุดท้ายเปลี่ยนค่าของค่าที่สองเป็น เทียนสุดท้ายและอื่น ๆ นอกจากนี้เรา temporarilly เก็บค่าของบัฟเฟอร์ตัวบ่งชี้และเพิ่มเงื่อนไขหากของกลยุทธ์ --- อินพุทพารามิเตอร์อินพุท int periodfast 5 ป้อนค่าแม็ปเปิ้ลอย่างรวดเร็ว int periodlow 10 ค่าอินพุต MA MA ต่ำวิธีการ ENUMMAMETHOD วิธีป้อน MODESMA MA ENUMAPPLIEDPRICE ราคาที่ใช้ PRICECLOSE MA -------------------------------------------------- ---------------- วางกฎการค้าของคุณที่นี่ - ดูตัวอย่างด้านล่าง StrategyTester จะเรียกใช้ฟังก์ชันนี้เพื่อวางธุรกิจการค้าไม่ - เปลี่ยนชื่อฟังก์ชัน - เพิ่ม paramaters ฟังก์ชันเช่น CheckMyRules int a - Change ชนิดส่งคืนฟังก์ชันเช่น CheckMyRules int ------------------------------------------- CheckMyRules เป็นโมฆะ เก็บค่า MA ด้วยเทียน 0 ดวงปัจจุบัน - ฟังก์ชันปัจจุบันที่เรียกใช้ฟังก์ชันการเรียกฟังก์ชัน GetValueForMA เพื่อให้ได้ค่า - โปรดดูที่ฟังก์ชันช่วยเหลือด้านล่างสองครั้ง emaSlowCurrent GetValueForMA periodlow, 0 ครั้ง double emaFastCurrent GetValueForMA periodfast, 0. เก็บค่า MA ด้วย shift 1 เทียนที่ผ่านมา - เทียนสุดท้าย , เรียกฟังก์ชันผู้ช่วยเหลือ GetValueForMA เพื่อให้ได้ค่า - โปรดดูที่ฟังก์ชันช่วยเหลือด้านล่าง double emaSlowPast GetValueForMA periodlow, 1 double emaFastPast GetValueForMA periodfast, 1. เก็บค่าบัฟเฟอร์ค่า 1 ของ KVO indicator จากการเปลี่ยนเทียนปัจจุบัน 0 double kvoSignal GetValuesFromIndicatorKVO 1 0.PrintDebugValue emaSlowCurrent, สตริง emaSlowCurrent, 0 ป้ายกำกับและค่าในบรรทัด 0 PrintDebugValue emaFastCurrent, string emaFastCurrent, 1 Label และค่าในบรรทัดที่ 1 PrintDebugValue emaSlowPast, string emaSlowPast, 2 Label และค่าในบรรทัด 2 PrintDebugValue emaFastPast, string emaFastPast, 3 Label และค่าในบรรทัดที่ 3 ถ้า emaFastPast emaSlowPast emaFastCurrent emaSlowPast ตรวจสอบว่าช้า MA และ fast MA ข้าม kvoSignal 0 ตรวจสอบว่าค่าสัญญาณของ KVO อยู่ต่ำกว่า 0 PlaceTrade OPSELL Place ขาย - การค้าสำหรับ Strategy-Tester, ฟังก์ชันอยู่ใน if emaFastPast emaSlowPast emaFastCurrent emaSlowPast ตรวจสอบว่าช้า MA และ fast MA ข้าม kvoSignal 0 ตรวจสอบว่าค่าสัญญาณของ KVO มากกว่า 0 สถานที่จำหน่าย OPBUY สถานที่ซื้อ - การค้าสำหรับกลยุทธ์ - Tester, ฟังก์ชันอยู่ค่ะ ------------------------------ ------------------------------------ รับค่า MA สำหรับระยะเวลาวิธีการราคาประยุกต์และ shift สำหรับรายละเอียด ของ iMA ดู ----------------------------------------------- ------------------- สองครั้ง GetValueForMA int, เปลี่ยนกลับ int iMA NULL 0, ระยะเวลา, 0, methodboth, applypriceboth, shift -------------------------------------------------- ---------------- ตัวอย่างวิธีการหาค่าจากตัวชี้วัดภายนอกดูบัฟเฟอร์พารามิเตอร์ int - ตัวบ่งชี้ - บัฟเฟอร์เริ่มต้นด้วย 0 int shift - ค่าเพื่อเปลี่ยนเทียน 0 ดวง, เทียนไข 1 ดวงก่อนหน้า - -------------------------------------------------- -------------- double buffer GetValuesFromIndicatorKVO, int shift 0 เปลี่ยน KVO ไปยังตัวบ่งชี้ name. return iCustom NULL NULL สำหรับช่วงเวลาปัจจุบันที่เลือกใน tester - ไม่จำเป็นต้องเปลี่ยนแปลง 0 0 สำหรับสัญลักษณ์ปัจจุบันที่เลือกใน tester - ไม่จำเป็นต้องเปลี่ยนแปลง BEGIN EDIT Filepath และชื่อไฟล์ของไฟล์ตัวบ่งชี้ BEGIN INDICATORS INPUTS 34 55 13 END สำหรับ INPUTS END EDIT. buffer ดัชนีบัฟเฟอร์เริ่มต้นด้วย 0 บัฟเฟอร์ถูกกำหนดค่าพารามิเตอร์ฟังก์ชัน - ไม่มีการเปลี่ยนแปลงจำเป็นต้องเปลี่ยน Shift 0 สำหรับเทียนปัจจุบัน shift ถูกดึงมา พารามิเตอร์ฟังก์ชัน - ไม่จำเป็นต้องเปลี่ยนแปลงนอกจากนี้ยังสามารถเพิ่มพารามิเตอร์การป้อนข้อมูลของตัวบ่งชี้กลยุทธ์ของเราด้วยค่าสำหรับตัวบ่งชี้ KVO ที่ใช้และตั้งค่าในฟังก์ชันผู้ช่วยโดยตัวแปรขณะนี้บทแนะนำควรเป็นเพียงตัวอย่างและง่ายที่สุด , ตัวแปรนี้จะไม่แสดง 3 3 รหัสทั้งหมดคุณจะพบรหัสสมบูรณ์ของ Binary - Options - Strategy - ตัวอย่างจากทุกขั้นตอนข้างต้นพร้อมที่จะลาก Binary - Options - Strategy - Tester เพื่อทดสอบและ ดูผลลัพธ์ในแผนภูมิ -------------------------------------------------- ---------------- ลิขสิทธิ์ 2016, martin ------------------------------ ------------------------------------ ลิขสิทธิ์ทรัพย์สิน Copyright 2016, martin property link คุณสมบัติ 1 00 คุณสมบัติเคร่งครัด ตัวบ่งชี้สถานที่ให้บริการ -------------------------------------------------- ---------------- วางพารามิเตอร์การป้อนข้อมูลของคุณที่นี่ - ดูตัวอย่างด้านล่าง ------------------------- ------------------------------------------- พารามิเตอร์อินพุทอินพุตระยะเวลาที่กำหนด 5 การป้อนค่าอินพุต MA Fast mA ต่ำ 10 การป้อนค่าเมตริกแบบช้าวิธี ENUMMAMETHOD วิธีป้อนข้อมูล MODESMA MA ENUMAPPLIEDPRICE ที่ใช้กับราคาที่กำหนดไว้ของ PRICECLOSE MA. CallStrategy เรียกกลยุทธ์ว่าฟังก์ชันนี้มีการระบุไว้ข้างต้น --- ค่าตอบแทนของ prevcalculated สำหรับผลตอบแทนการโทรครั้งต่อไป -------------------------------------------------- ---------------- วางกฎการค้าของคุณที่นี่ - ดูตัวอย่างด้านล่าง StrategyTester จะเรียกใช้ฟังก์ชันนี้เพื่อวางธุรกิจการค้าไม่ - เปลี่ยนชื่อฟังก์ชัน - เพิ่ม paramaters ฟังก์ชันเช่น CheckMyRules int a - Change ชนิดส่งคืนฟังก์ชันเช่น CheckMyRules int ------------------------------------------- CheckMyRules เป็นโมฆะ เก็บค่า MA ด้วยเทียน 0 ดวงปัจจุบัน - ฟังก์ชันปัจจุบันที่เรียกใช้ฟังก์ชันการเรียกฟังก์ชัน GetValueForMA เพื่อให้ได้ค่า - โปรดดูที่ฟังก์ชันช่วยเหลือด้านล่างสองครั้ง emaSlowCurrent GetValueForMA periodlow, 0 ครั้ง double emaFastCurrent GetValueForMA periodfast, 0. เก็บค่า MA ด้วย shift 1 เทียนที่ผ่านมา - เทียนสุดท้าย , call helper function GetValueForMA to get the value - see helper-functions below double emaSlowPast GetValueForMA periodslow, 1 double emaFastPast GetValueForMA periodfast, 1. Store signal value buffer 1 of KVO indicator from current candle shift 0 double kvoSignal GetValuesFromIndicatorKVO 1 0.PrintDebugValue emaSlowCurrent , string emaSlowCurrent, 0 Label and value in line 0 PrintDebugValue emaFastCurrent , string emaFastCurrent, 1 Label and value in line 1 PrintDebugValue emaSlowPast , string emaSlowPast, 2 Label and value in line 2 PrintDebugValue emaFastPast , string emaFastPast, 3 Label and value in line 3. if emaFastPast emaSlowPast emaFastCurrent emaSlowPast Check if slow MA and fast MA crosses kvoSignal 0 Check if signal value of KVO is under 0 PlaceTrade OPSELL Place SELL-Trade for Strategy-Tester, function is located in. if emaFastPast emaSlowPast emaFastCurrent emaSlowPast Check if slow MA and fast MA crosses kvoSignal 0 Check if signal value of KVO is over 0 PlaceTrade OPBUY Place BUY-Trade for Strategy-Tester, function is located in. ------------------------------------------------------------------ Get MA values for period, method, applied price and shift For details of iMA see ------------------------------------------------------------------ double GetValueForMA int period, int shift return iMA NULL 0,period, 0,methodboth, appliedpriceboth, shift. ------------------------------------------------------------------ Example how to get values from external indicators, see Parameters int buffer - indicator-buffer starts with 0 int shift - value to shift 0 current candle, 1 prev candle ------------------------------------------------------------------ double GetValuesFromIndicatorKVO int buffer, int shift 0 Change KVO to indicator name return iCustom NULL NULL for current timeframe selected in tester - NO CHANGES NEEDED 0 0 for current symbol selected in tester - NO CHANGES NEEDED. BEGIN EDIT Filepath and filename of the indicator file BEGIN INDCATORS INPUTS 34 , 55 , 13 , END FOR INPUTS END EDIT. buffer, Buffer index begins with 0 , buffer is adressed over function parameter - NO CHANGES NEEDED shift Shift 0 for current candle , shift is adressed over function parameter - NO CHANGES NEEDED.4 Run a backtest video. The following video shows how to run a backtest of your Binary Options strategy in Strategy-Tester of MetaTrader 4.Start Binary-Options-Strategy-Tester in Strategy-Tester of MetaTrader 4 and set the input parameters. Drag your Binary Options strategy indicator on the chart, set the input parameters and check Allow external expert imports on the common tab. Drag your used indicators with their used input parameters on the chart to see their values while tester is running optional. Save all settings in a template to run the test with all settings again - using the pause button of the Strategy-Tester optional. See the results of your Binary Options strategy on t he Strategy-Tester chart.5 Run a forward test. To do a forward test simply drag the Binary-Options-Strategy-Tester utility and your strategy indicator on your demo or live chart of your broker instead of using it in Strategy-Tester. Drag Binary-Options-Strategy-Tester utility on demo or live chart and set the input parameters. Drag your Binary Options strategy indicator on the chart, set the input parameters and check Allow external expert imports on the common tab. Drag your used indicators with their used input parameters on the chart to see their values while forward test is running optional. Save all settings in a template to run the test again with all settings optional. See the results of your Binary Options strategy on demo or live chart. Question Why do you show an example of a non profitable Binary Options strategy Answere This is just an example how to build a strategy in an Indicator to communicate with the Binary-Options-Strategy-Tester utility in marketplace to test and improve y our strategy. Question Binary-Options-Strategy-Tester stops after the exact amount of losses with error Array out of range Why Answere Binary-Options-Strategy-Tester can rise an error after x losses to stop Tester and to analyse the situaion on the chart If you do not want to, just switch off the option in settings. Question No arrows appear on chart after I draged my indicator with a working strategy on it What happened Answere You have to enable Allow external expert imports on the common tab while you drag your strategy-indicator on the chart log message will show an error in this case. Question No arrows appear on chart after I draged my indicator with a working strategy on it with Allow external expert imports enabled Why Answere A strategy has to call a function of Binary-Options-Strategy-Tester to place virtual trades Related to the MQL4 license concept this only works if the product has a working license Therefore you have to purchase the product. Question No arrows appear on chart after I dragged my indicator with a working strategy on it and I got errors like Cannot call or Cannot load in the log of MetaTrader 4 What can I do Answere Use the latest version greater v1 00 of Check version tag in code of your and see changelog v1 01 of BinaryOptionsStrategyLibrary. Question I see no results on Strategy-Tester tabs Results , Graph , Report Where I can see the results Answere Strategy-Tester of MetaTrader 4 can not handle Binary Options so these tabs con not be used Therefore this utility calculates all wins and losses and prints the results on the chart.7 Miscellaneous. As I need a possibility to test Binary Options strategies automated in Strategy-Tester of MetaTrader 4 for long time periods in a short time and to do foward tests on the chart of the broker, this utility was build I have spent a lot of time for the concept and the implementation of the Binary-Options-Strategy-Tester as well as for the documentation Maybe there is a better way to do it and maybe some improvements will bring it closer to fit the needs of you So please feel free to contact me for ideas for improvements. Trading Simulator Explained. Let me start off with a question to get your minds thinking Would you ever step into a game you just learned about and bet all of your hard earned money on winning the game I don t think so, maybe if you are a gambler The rest of us would choose to avoid any unnecessary risk by learning all the ins and outs of the game before we bet any money on it, right Why would trading Binary Options or anything else for that matter be any different than the example I just mentioned Why should you take the risk of losing real money when learning how to trade I realize that the vast majority of people would want to start profiting immediately because of the thought of all the stuff that they can do with the money Trading, after all, looks like an easy way to make some cash If you have been in the game for a while, you know beyond a shadow of a doubt that this is not the situation I mean on the off chance that you have the cash to burn and play around for the rush of it, go right ahead, however for the other individuals there is a better way Welcome to the world of Trading Simulators It is a standout among the most, if not THE most powerful tool to have if you are a seasoned trader or just thinking about a career in trading These demo trading simulators accelerate the steep learning curve of becoming that expert trader that everybody is taking a stab at. What Exactly Are Trading Simulators. Trading Simulators are also known as paper trading or virtual trading It can be compared to a free binary options account, just much better in my opinion They are extremely useful for you as a trader, because you can. practice trading stress-free. try out new trading strategies. improve on your current strategies. learn to trade volatility. refine your technique and approach. gain experience. become confident. make all the mistakes in the world and. acquire ne w facets of the market without any cost. It is regularly said that 95 of all traders lose their trading capital within the first year What makes a trader successful then In interviews, the best traders in history always emphasize the importance of backtesting Backtesting means to use historical price data of a particular market to find out how well a trading strategy would have worked While there is no guarantee, the chances are that a successful strategy in the past will very often generate profits in the future Trading Simulators essentially lets you back test your trading strategies and also enables you to take demo trades during live market conditions. How Can I Apply This To My Trading. There is truly no viable alternative for experience and screen time with regards to trading Binary Options or the Forex market Traders that have spent endless of hours trading a live market will have developed a feeling for the market that is almost impossible to explain These traders will be able to distinguish between good and bad trading setups by simply recognizing similar price action to what they have seen before Should you have this type of experience, you will know exactly what I am talking about Attempting to trade a live market is altogether different from looking back at charts or backtesting a trading strategy Backtesting a strategy makes it easy to see in hindsight which signals would have worked and which not without any stress involved When you are trading real-time markets, you can t see what is coming next, and you start to wonder if it is a valid signal You will be contemplating whether or not to take the trade This is where uncertainty begins to set in Trading with real money causes traders to be naturally under stress because you need to make quick trading decisions The only way to combat this feeling of anxiety is when you have enough experience under your belt Trading Simulators are created to help traders develop this type of experience and confidence through taking trades on historical and live market conditions This practice will help them make trading decisions become like second nature to them This is an important plus point because it trains them not to overthink the trade, but simply act when they have to This is precisely how you ought to trade, verging on like a machine with no feelings It is vital to stay in practice of taking trades on a daily basis otherwise you will lose this ability to act without any fear There is a perfect saying that speaks to this statement Use it or lose it. Metatrader indicator for Trading Simulator. As always, MetaBinaryOptions is offering you a free Metatrader indicator for helping you apply this strategy. This indicator will automatically place the Trading Simulator on your chart Make sure to put the file in the MQL4 Indicators folder Allow DLL imports in Tools Options Expert Advisors before using the indicator. Figure 1 Binary Options trading simulator for mt4.How To Use The Trading Simulator. When you ad d the Trading Simulator to your chart, you will get an option to select how much your starting capital must be You can also choose what percentage payouts you should get After doing this, you will see a window pop up on your right-hand side Here you can choose the expiry time, the amount that you want to risk and then when you get a trade you can just click the up or down button This mt4 indicator will keep track of all your trades how many winners, losers and ties you have The Binary Options Simulator will also calculate your winning percentage When you take your call or put trade, you will see it show up in the right-hand column The trade will show you your entry price, the current market price, how many seconds is left till expiry and what the payout will be after expiry The other helpful thing the Metatrader Simulator does is it shows you on the chart where you took the trade and where it expired. Figure 2 The simulator works just like a binary options demo account. Do not start to p anic when you see the trades disappear on your right-hand side This is only done to make space for new trades Notice that after closing the simulator, all trading results are saved in a csv file under Data Folder MQL4 Files when doing live trading or under Data Folder tester files when running the Strategy Tester. When using the Trading Simulator you can combine it with our other MBO MT4 indicators like Market Sessions or News Calendar indicator This feature is very helpful because most people tend to avoid trading during news releases and only like to trade during specific trading sessions Every trader should consider these facts when trading Binary Options In the below image figure 3 , you can see that we have added the News Calendar and Market Sessions indicator with our Trading Simulator. Figure 3 The simulator can work along with other indicators like the news calendar and market sessions indicators. The Binary Options Trading Simulator can also be used to backtest different trading strategies or indicators by making use of the strategy tester on your Metatrader 4 We have found that this function is particularly useful for those traders who are unable to practice during regular market hours Using the strategy tester enables you to trade a few weeks worth of data in just a few hours The ability to trade even when the markets are close, at any time of the day or night makes our Trading Simulator a highly valuable and useful tool. Figure 4 The mt4 binary options simulator can be used in backtests along with historical news data. Success depends on hard facts, and that is exactly what this Binary Options Simulator will give you You will quickly find out whether your strategy is profitable or not This will help you in two ways Number one being that in the event that your strategy was to be unsuccessful, you can move on and invest your time in the development of a new strategy Secondly, if your method should be profitable, you can work to improve on it and move on to trad e it live as soon as possible. I must admit that backtesting your strategy is not as real as using real money, but it creates a pretty realistic view of how well you can do with your strategy in the future I personally think that Trading Simulators are the second best learning aid out there for any trader Number one would obviously be live trading but that could get quite expensive. Trading Simulator Summary. Regardless of the fact that you ve taken hundreds of courses and read a few books on trading, you may not be as prepared as you think you may be Trading the live markets is vastly different than only discussing it Using our Trading Simulator, you get the advantage of genuine experience without taking any of the financial risks The key to using the Trading Simulator to your advantage is to treat it seriously as if the trades were live Once you re comfortable utilizing the Trading Simulator, it very well might be time to attempt your strategy with real money Trading any market requires precision and focus, which can only be developed with practice You should commit yourself to consistent practice and never give up Practice does not make perfect Perfect practice makes perfect Vince Lombardi. Trading Simulator User Reviews.

No comments:

Post a Comment