Skip to main content

80 Trading กลยุทธ์ สำหรับ มือใหม่


กลยุทธ์ forex ง่ายสำหรับผู้เริ่มต้นจะช่วยให้สามเณร traders ตลาด forex แม้ประสบความสำเร็จในการทำธุรกรรมของกลยุทธ์ดังกล่าวไม่จำเป็นต้องมีทักษะใด ๆ ที่กว้างขวางหรือซับซ้อนในการซื้อขายสกุลเงินในตลาด Forex และอาจถูกนำมาใช้อย่างมีประสิทธิภาพโดยเริ่มต้นนำ ผู้ค้าตลาดต่างประเทศที่มีประสบการณ์มักจะใช้แผนการซื้อขายเครื่องมือและวิธีการที่ซับซ้อนและซับซ้อนเพื่อให้ได้ผลลัพธ์ที่ดีที่สุดของกิจกรรมการตลาดแบบอัตราแลกเปลี่ยนอย่างไรก็ตามในขณะที่วิธีการดังกล่าวเหมาะสมกับมืออาชีพผู้ค้ามือใหม่อาจต้องการใช้กลยุทธ์ที่ง่ายกว่าสำหรับการพุ่งลึกลงไป ตลาด forex และเพื่อให้บรรลุผลการค้าบวกในครั้งเดียวในบทความนี้เราจะตรวจสอบที่ดีที่สุดง่าย forex ค้ากลยุทธ์สำหรับ forex traders. Breakout Forex ง่าย Strategy. The กลยุทธ์ breakout เป็นกลยุทธ์ forex ง่ายฟรีสำหรับผู้เริ่มต้นทั้งหมดที่ต้องการเริ่มต้นการดึงดูด ในภาพด้านบนแถบรูปหยาบคายแสดงเป็นสีแดง สีกับบาร์การเจริญเติบโตหยาบคายขายกำลังได้รับโมเมนตัมดังนั้นผู้ประกอบการค้าจะต้องติดตามอย่างใกล้ชิดแนวโน้มในการระบุเมื่อการค้าโดยคำนึงถึงความเป็นไปได้ของการเปลี่ยนแปลงในแนวโน้มปัจจุบันวงกลมสีเหลืองในภาพแสดงให้เห็นจุดเริ่มต้นของ แนวโน้มขาลงที่ได้รับการยืนยันจากข้อเท็จจริงที่ว่าระดับต่ำใหม่ของแนวรับก่อนหน้านี้ต่ำลงแถบสีแดงหยดที่ใหญ่ที่สุดนี้แสดงถึงโมเมนตัมการขายที่แข็งแกร่งมากตอนนี้คำสั่งซื้อที่รอดำเนินการอาจอยู่ใต้บาร์โดยคำนึงถึงสภาวะที่เอื้ออำนวยต่อการค้า ลำดับการขายจะแสดงโดยเส้นจุดสีเหลืองในแผนภูมิหยุดการสูญเสียอยู่ด้านบนการเปิดและปิดของแถบก่อนหน้า SL เส้นในภาพเป้าหมายกำไรแรกจะแสดงโดยสาย TP1 ในภาพและเป้าหมายกำไรสุดท้าย เป็นภาพประกอบโดยสาย TP2 สองสายยืนสำหรับก่อนหน้าและถัดไปต่ำตามลำดับดังนั้นการฝ่าวงล้อมค่อนข้างเป็นกลยุทธ์ที่ง่ายของการซื้อขายแลกเปลี่ยน, และสิ่งเดียวที่คุณต้องการสำหรับการดำเนินการได้อย่างมีประสิทธิภาพก็คือการเห็นภาพและตรวจสอบช่วงเวลาของการกลับรายการแนวโน้มซึ่งเป็นโมเมนตัมที่เหมาะสมสำหรับการเข้าสู่การทำธุรกรรม Forex Scalping ง่ายกลยุทธ์ forex scalping กลยุทธ์เป็นหนึ่งในกลยุทธ์ forex ง่ายที่ ทำงานได้สำหรับผู้ค้ามือใหม่และใช้ตามอัตภาพในช่วงเวลาสั้น ๆ ตั้งแต่หลายนาทีถึง 15 นาทีหรือน้อยกว่าเพื่อให้ได้ผลลัพธ์ที่ดีที่สุดภายในกลยุทธ์นี้มีเพียงสองตัวชี้วัดที่จะใช้ 200 EMA และตัวบ่งชี้ stochastic จุดมุ่งหมายหลัก ของอดีตคือการเปิดเผยแนวโน้มและหลังใช้เป็น oscillator แสดงว่าตลาดถูกครอบงำด้วยอุปสงค์หรืออุปทานที่มากเกินไปสำหรับการซื้อภายใต้กลยุทธ์ forex ง่ายที่ง่ายที่สุดสำหรับการทำธุรกรรมอย่างรวดเร็ว preconditions หลายต้องแรกราคา ต้องการยืนเหนือ 200 EMA ถัดไปสาย stochastic ต้องขับต่ำกว่า 20 เส้นและชี้ขึ้นที่จุดนี้พ่อค้าต้องเปิดใช้งานคำสั่งซื้อของเขาอย่างรวดเร็ว immediat ely วางหยุดขาดทุน 15 ถึง 20 pips ไปทำกำไรในกรณีนี้จะถูกตั้งค่า 20-30 pips. For ขายภายใต้ forex scalping กลยุทธ์ง่ายงานนี้ในทางกลับกันค่อนข้างดังนั้นราคาควรอยู่ต่ำกว่า 200 EMA และ บรรทัดสุ่มต้องสูงกว่า 80 บรรทัดและชี้ลงถัดไปพ่อค้าเปิดใช้งานคำสั่งขายของเขาอย่างรวดเร็วและสถานที่หยุดการสูญเสีย 15 ถึง 20 pips ไปคล้ายกับการตั้งค่าซื้อกำไรในกรณีนี้จะถูกกำหนด 20-30 pips กลยุทธ์ scalping อธิบายไว้ข้างต้นเป็นกลยุทธ์ forex ง่ายสำหรับผู้เริ่มต้นยังคงควรระลึกว่ายังคงมีความเสี่ยงบางอย่างคือตลาดอาจก่อให้เกิดจำนวนของสัญญาณเท็จซึ่งควรจะตรวจสอบผ่านมุม 200 EMA เมื่อนี้ มุมหรือคล้ายกับแบนการค้าควรหลีกเลี่ยงมิฉะนั้นหากผู้ประกอบการค้าสามารถที่จะทำการตัดสินใจได้อย่างรวดเร็วโดยการประเมินการเปลี่ยนแปลงของตลาดในปัจจุบันกลยุทธ์นี้อาจมีประสิทธิภาพมากแม้กระทั่งสำหรับผู้เล่นตลาด forex สามเณร. 100 EMA และ Parabolic Stop and Rever sal กลยุทธ์ Forex ง่ายกลยุทธ์นี้เป็นหนึ่งในกลยุทธ์การซื้อขาย forex ง่าย ๆ ซึ่งผู้เริ่มต้นใช้งานได้อย่างมีประสิทธิภาพสามารถใช้ในธุรกรรมการซื้อขาย forex ได้ใช้เฉพาะตัวชี้วัดพื้นฐานสองตัวสำหรับการวิเคราะห์สถานการณ์ตลาดและตัดสินใจซื้อที่ดีที่สุด 100 EMA และพาราโบลา SAR stop และตัวบ่งชี้การพลิกกลับสำหรับการซื้อโดยใช้กลยุทธ์นี้ราคาต้องอยู่เหนือเส้นแทน 100 EMA ถัดไปจุด SAR แบบพาราโบลาต้องโผล่ออกมาใต้แท่งเทียนพ่อค้าตอนนี้ต้องวางคำสั่งซื้อหยุดที่รอดำเนินการไว้ 2 จุดเหนือจุดสูง ของเชิงเทียนที่กล่าวข้างต้นหยุดการสูญเสียควรวาง 2 pips ต่ำกว่าจุดต่ำสุดที่ใกล้เคียงที่สุดก่อนหน้านี้แกว่งสูงในกรณีนี้ใช้เป็นกำไรทำขายภายใต้กลยุทธ์นี้เงื่อนไขตรงกันข้ามคือราคาจะต้องอยู่ภายใต้ 100 EMA และจุด SAR ของพาราโบลาจะโผล่ขึ้นเหนือแท่งเทียนพ่อค้ากว่าวางคำสั่งหยุดการสั่งซื้อที่รอดำเนินการ 2 จุดต่ำกว่าจุดต่ำสุดของเชิงเทียนที่กล่าวถึงข้างต้น Stop การสูญเสียควรอยู่ 2 pips เหนือการแกว่งสูงที่สุดการแกว่งต่ำก่อนหน้าในกรณีนี้ถูกใช้เป็น take profit ซึ่งอาจเป็นกลยุทธ์ forex ง่ายและทำกำไรได้โดยเฉพาะอย่างยิ่งในตลาดที่มีแนวโน้มดีที่สัญญาณชัดเจนมากสำหรับการซื้อและขายการใช้งาน ของจุดสูงสุดแกว่งก่อนหน้านี้เป็นนำค่ากำไรเป็นประโยชน์ของกลยุทธ์นี้อีกซึ่งทำให้เข้าใจได้มากขึ้นและง่ายต่อการใช้ยังคงตลาดอาจสร้างสัญญาณเท็จด้วยและเวลาล่าช้าอาจมีบทบาทสำคัญดังนั้นพ่อค้าควรเสมอ ยังคงระมัดระวังในการหลีกเลี่ยงความเสียหายที่คาดไม่ถึงกลยุทธ์การพิจารณาโดยเราในบทความนี้ให้เพียงส่วนเล็ก ๆ ของกลยุทธ์ forex ง่ายสำหรับผู้เริ่มต้นมีอยู่ในตลาดค้นหากลยุทธ์การค้าง่ายในอัตราแลกเปลี่ยนที่เหมาะสมกับเป้าหมายและทักษะของคุณที่ดีที่สุดและคุณจะ สามารถเริ่มต้นการซื้อขายอัตราผลตอบแทนที่ได้รับจากตลาด forex ได้อย่างมีประสิทธิภาพ Forex Trading 5 - Trading Systems.80-20 strategy strategy 80-20 เป็นชื่อของหนึ่งในกลยุทธ์การซื้อขาย TS อธิบายไว้ในหนังสือ Street Smarts ความน่าจะเป็นสูงกลยุทธ์การซื้อขายระยะสั้นโดย Linda Raschke และ Laurence Connors คล้ายคลึงกับกลยุทธ์ที่กล่าวถึงในบทความก่อนหน้าของฉันผู้เขียนแอตทริบิวต์ให้กับขั้นตอนเมื่อ การทดสอบราคาเส้นขอบช่วงนอกจากนี้ยังมุ่งเน้นไปที่การแสวงหากำไรจาก breakouts เท็จและ roll-back จากเส้นขอบ แต่คราวนี้เราวิเคราะห์การเคลื่อนไหวของราคาในช่วงเวลาที่สั้นลงอย่างมากที่เกี่ยวข้องกับวันก่อนหน้าเท่านั้นอายุการใช้งานของสัญญาณที่ได้รับยังค่อนข้าง สั้นเนื่องจากระบบมีไว้สำหรับการซื้อขายระหว่างวันวัตถุประสงค์แรกของบทความนี้เพื่ออธิบายการพัฒนาโมดูลสัญญาณกลยุทธ์การซื้อขาย 80-20 โดยใช้ภาษา MQL5 จากนั้นเราจะเชื่อมต่อโมดูลนี้กับรุ่นที่แก้ไขเล็กน้อยของ หุ่นยนต์การค้าพื้นฐานที่พัฒนาขึ้นในบทความก่อนหน้านี้ของชุดนอกจากนี้เราจะใช้โมดูลเดียวกันสำหรับการพัฒนาตัวบ่งชี้สำหรับคู่มือการใช้งาน ading. As แล้วกล่าวว่ารหัสที่ระบุไว้ในบทความชุดมีวัตถุประสงค์หลักที่โปรแกรมเมอร์สามเณรขั้นสูงเล็กน้อยดังนั้นนอกเหนือจากวัตถุประสงค์หลักของรหัสถูกออกแบบมาเพื่อช่วยย้ายจากการเขียนโปรแกรมขั้นตอนเพื่อวัตถุหนึ่งรหัสจะไม่คุณลักษณะ classes แทนก็จะใช้โครงสร้างที่ง่าย master. Yet วัตถุประสงค์ของบทความก็คือการพัฒนาเครื่องมือช่วยให้เราสามารถตรวจสอบว่ากลยุทธ์ยังคงทำงานได้วันนี้ตั้งแต่ Raschke และ Connors ใช้พฤติกรรมตลาดในตอนท้ายของล่าสุด เมื่อสร้างมันการทดสอบอีเอไม่กี่ครั้งขึ้นอยู่กับข้อมูลประวัติที่ทันสมัยจะถูกนำเสนอในตอนท้ายของบทความ 80-20 ระบบการค้าชื่อผู้เขียนจอร์จเทย์เลอร์เทย์เลอร์เทรดดิ้งเทคนิคเช่นเดียวกับสตีฟมัวร์ทำงานในการวิเคราะห์คอมพิวเตอร์ของตลาดฟิวเจอร์สและประสบการณ์การซื้อขาย Derek Gipson เป็นพื้นฐานในการทำงานของตัวเองสาระสำคัญของกลยุทธ์การค้าสามารถ จะอธิบายสั้น ๆ ดังต่อไปนี้ถ้าวันก่อนหน้าราคาเปิดและปิดตั้งอยู่ตรงข้ามกับพื้นที่รายวันที่ตรงกันข้ามแล้วความน่าจะเป็นของการกลับรายการไปสู่การเปิดวันก่อนหน้านี้สูงมากวันนี้ราคาปิดและราคาปิดควรอยู่ใกล้ กับเส้นขอบช่วงการกลับรายการควรเริ่มต้นวันปัจจุบันก่อนที่เทียนวันก่อนหน้าจะถูกปิดกฎระเบียบกลยุทธ์สำหรับการซื้อมีดังต่อไปนี้ 1 ตรวจสอบให้แน่ใจว่าตลาดเปิดในด้านบน 20 และปิดในช่วงล่าง 20 ของช่วงวัน เมื่อวานนี้ 2 รอจนถึงวันนี้ S ต่ำแบ่งวันก่อนหน้าอย่างน้อยหนึ่งครั้งโดย 5 ticks.3 สั่งซื้อที่รอการสั่งซื้อที่ขอบล่างของช่วงเมื่อวานนี้ 4 เมื่อใบสั่งซื้อที่รอดำเนินการตั้งค่า StopLoss เริ่มต้นในวันที่ต่ำสุด 5 ใช้หยุดการติดตามเพื่อป้องกันกำไรที่ได้รับกฎการเข้าสู่ระบบของอีเมลมีความคล้ายคลึง แต่แถบเมื่อวานนี้ควรรั้นคำสั่งซื้อควรอยู่ที่ขอบด้านบนของแถบขณะที่ StopLoss ควร ตามที่ Linda Raschke ควรมีขนาดใหญ่พอสมควร - มากกว่าขนาดเฉลี่ยของแถบรายวันอย่างไรก็ตามเธอไม่ได้ระบุจำนวนวันที่ควรจะเป็นประวัติศาสตร์ จะต้องคำนึงถึงเมื่อคำนวณค่าเฉลี่ยรายวันช่วงนอกจากนี้เราควรจำไว้ว่า TS ถูกออกแบบมาเฉพาะสำหรับตัวอย่างการค้าระหว่างวันที่แสดงในหนังสือใช้แผนภูมิ M15 การบล็อกสัญญาณและตัวบ่งชี้การจัดวางตามกลยุทธ์จะอธิบาย ด้านล่างนอกจากนี้คุณยังสามารถดูภาพหน้าจอที่มีผลการดำเนินงานของตัวบ่งชี้ได้อย่างชัดเจนแสดงให้เห็นถึงรูปแบบที่สอดคล้องกับกฎของระบบและระดับการซื้อขายที่เชื่อมโยงกับรูปแบบการวิเคราะห์รูปแบบควรทำให้ฉัน n การวางคำสั่งซื้อที่รอการสั่งซื้อระดับการซื้อขายที่เหมาะสมจะเห็นได้ดีขึ้นในระยะเวลา M1 รูปแบบคล้ายกับทิศทางการซื้อขายข้ามกับระยะเวลาของ M5 ระดับการซื้อขายของ M1 M1 timeframe. Signal module ให้เพิ่มการคำนวณระดับ Profit เพื่อแสดงการเพิ่มตัวเลือกใหม่ กำหนดเอง TS ไม่มีระดับดังกล่าวในรุ่นเดิมเป็นเพียงหยุดต่อท้ายจะใช้เพื่อปิดตำแหน่ง Let s ทำ Take กำไรขึ้นอยู่กับการกำหนดระดับต่ำสุดที่กำหนด TS8020ExtremumBreak เราจะคูณด้วยอัตราส่วนที่กำหนดเอง TS8020TakeProfitRatio เราจะต้อง องค์ประกอบต่อไปนี้ของโมดูลสัญญาณ feGetEntrySignal สถานะการทำงานของสัญญาณหลักสถานะการคำนวณรายการและระดับออก Stop Loss และ Take Profit รวมทั้งเส้นขอบของเมื่อวานนี้ทุกระดับได้รับผ่านทางลิงค์ไปยังตัวแปรที่ส่งผ่านไปยังฟังก์ชันในขณะที่สัญญาณ s สถานะการส่งคืนใช้รายการตัวเลือกจากบทความก่อน ENUMENTRYSIGNAL ENTRYBUY ซื้อสัญญาณ ENTRYSELL ขายสัญญาณ ENTRYNONE ไม่มี signa l สถานะ ENTRYUNKNOWN ไม่ได้นิยามไว้ PROTECTIVE_DIGORD_DIGORD_DIGORD_DIGORD_DIGORD_DIEND_DIGORD_DIEND_DIEND_DIEND_DIENT_DIEND_DIEND_DIEND_DIEND_DIEND_DIEND_DIEND_DIEND_FONTED_DIEND_DIEND_DIEND_DIEND_FONTMENT_DIEND_DIEND_DIEND_FONTMENT_DIEND_DIEND_DIEND_FONTMENT_DIEND_DIEND_FONTMENT_DIEND_DIEND_DIEND_FONTMENT_DIEND_DI ของรูปแบบของแถบที่ 1 เชื่อมโยงไปยังตัวแปร dRangeLow คู่ต่ำของรูปแบบของแถบที่ 1 เชื่อมโยงไปยังตัวแปรเพื่อตรวจสอบสัญญาณเราต้องวิเคราะห์สองบาร์สุดท้ายของ D1 ระยะเวลา Let s เริ่มต้นจากครั้งแรก มีสองเกณฑ์ 1 ขนาดแถบแตกต่างระหว่าง High และ Low ควรเกินค่าเฉลี่ยสำหรับ XX วันที่กำหนดโดย TS8020D1AveragePeriod กำหนดเองการตั้งค่า 2 บาร์ระดับการเปิดและปิดควรอยู่ที่ตรงข้ามกับช่วง 20 ของแถบหากเงื่อนไขเหล่านี้ตรงตามราคาสูงและราคาต่ำควรได้รับการบันทึกไว้เพื่อใช้งานต่อไปเนื่องจากพารามิเตอร์แถบแรกไม่เปลี่ยนแปลงภายในเครื่องหมาย วันยางไม่มีจุดในการตรวจสอบพวกเขาที่เรียกฟังก์ชันแต่ละ Let s เก็บไว้ในตัวแปรคงที่ การกำหนดค่าที่กำหนดเอง uint TS8020D1AveragePeriod 20 80-20 จำนวนวันสำหรับการคำนวณระยะ uint เฉลี่ยต่อวัน uint TS8020ExtremumBreak 50 80-20 การฝ่าฝืนขั้นต่ำของ extremum เมื่อวานนี้ใน points. static ENUMENTRYSIGNAL sePossibleSignal ENTRYUNKNOWN รูปแบบของแถบสัญญาณแรกทิศทางสัญญาณคงที่สองตัวแปรสำหรับการจัดเก็บ ระดับที่คำนวณได้ระหว่าง ticks sdEntryLevel 0, sdSL 0 sdTP 0, sdRangeHigh 0 sdRangeLow 0 ตรวจสอบแถบแรกของรูปแบบของ D1 หาก sePossibleSignal ENTRYUNKNOWN stLastD1Bar tCurrD1Bar แถบที่ 1 ไม่เปลี่ยนในวันนี้ ช่วงเฉลี่ยของวันที่สอง dAverageBarRange fdAverageBarRange TS8020D1AveragePeriod, PERIODD1 tTime. if maRates 0 maRates 0 dAverageBarRange 1 st bar ไม่ใหญ่พอ sePossibleSignal ENTRYNONE หมายถึงสัญญาณไม่มีวันนี้กลับ sePossibleSignal. double d20Percents 0 2 maRates 0 maRates 0 20 ของช่วงเมื่อวานนี้ถ้าแถบหยาบคาย maRates 0 maRates 0 d20 บาร์ของผู้ขายที่เปิดใน 20 ส่วนบนมี 0 นาที 0 d20 ผู้ขายและปิดใน 20 ต่ำต้อย maRates 0 maRates 0 d20 แถบผู้ขายปิดในด้านบน 20 maRates 0 maRates 0 d20Percents และเปิดในด้านล่าง 20 1 st bar สอดคล้องกับ เงื่อนไขกำหนดทิศทางการซื้อขายของวันนี้สำหรับรูปแบบของแถบที่ 1 sePossibleSignal maRates 0 นาที 0 ENTRYBUY ENTRYSELL ระดับรายการระดับความละเอียดอ่อนระดับต่ำสุด SEPossibleSignal ENTRYBUY ต่ำสุด 0 รูปแบบ 0 รูปแบบของแถบ 1 แถบเส้นขอบด้านล่างความสูงของจุดต่ำสุดที่สูงขึ้น 0 sdRangeLow dRangeLow maRates 0 อื่น ๆ 1 st. แถบเปิดระดับปิดไม่ตรงกับเงื่อนไข sePossibleSignal ENTRYNONE mea ns ไม่มีสัญญาณวันนี้กลับ sePossibleSignal. Listing ของฟังก์ชันสำหรับการกำหนดช่วงแถบเฉลี่ยภายในจำนวนที่กำหนดของแถบในช่วงเวลาที่ระบุเริ่มต้นจากเวลาที่ระบุ function. double fdAverageBarRange คำนวณแถบขนาดเฉลี่ย int iBarsLimit จำนวนบาร์ที่จะต้องพิจารณา ENTIMEFRAMES eTF PERIODCURRENT แถบเวลา timetime ของ datetime tTime WRONGVALUE เมื่อเริ่มต้นการคำนวณ double dAverageRange 0 variable สำหรับการสรุปค่าถ้า iBarsLimit 1 return dAverageRange. MqlRates maRates bar info array รับข้อมูลแถบจากช่วงเวลาที่ระบุหาก tTime WRONGVALUE tTime TimeCurrent int iPriceBars CopyRates สัญลักษณ์ eTF, tTime, iBarsLimit, maRates. if iPriceBars WRONGVALUE ถ้า LogLevel LOGLEVELNONE ข้อผิดพลาด Print Copy ของ PrintFormat s U FUNCTION การคืนค่า LastError dAverageRange. if iPriceBars iBarsLimit ถ้า LogLevel LOGLEVELNONE PrintFormat s CopyRates คัดลอกแถบ u ของ U FUNCTION iPriceBars, iBarsLimit ผลรวมของช่วง iBar iPriceBars ในขณะที่ iBar - 0 dAverageRange ค่าเฉลี่ยกลับ dAverageRange สอง iPriceBars. There มีเพียงหนึ่งเกณฑ์สำหรับรูปแบบของแถบที่สอง breakout ปัจจุบันของเส้นขอบช่วงเมื่อวานนี้ไม่ควรน้อยกว่าที่ระบุไว้ในการตั้งค่า TS8020ExtremumBreak ทันทีที่ถึงระดับสัญญาณสำหรับการวาง คำสั่งซื้อที่รอดำเนินการปรากฏขึ้น ตรวจสอบบาร์ 2 ปัจจุบันรูปแบบ s ใน D1 ถ้า sePossibleSignal ENTRYBUY SDSL DSL maRates 1 StopLoss ไปวันนี้สูงถ้า TS8020TakeProfitRatio 0 sdTP DTP dEntryLevel จุด TS8020ExtremumBreak TS8020TakeProfitRatio TakeProfit ผลตอบแทนเป็นฝ่าวงล้อมลดลงเห็นได้ชัด maRates 1 maRates 0 จุด TS8020ExtremumBreak ENTRYBUY ENTRYNONE. if sePossibleSignal ENTRYSELL sdSL dSL maRates 1 stopLoss ไปต่ำสุดวันนี้ถ้า TS8020TakeProfitRatio 0 sdTP dTP จุดด่างดำ TS8020ExtremumBreak TS8020TakeProfitRatio TakeProfit return คือ breakout ขึ้นอย่างเห็นได้ชัด maRates 1 maRates 0 Point TS8020ExtremumBreak ENTRYSELL ENTRYNONE บันทึกสองฟังก์ชันที่กล่าวถึงข้างต้น feGetEntrySignal และ fdAverageBarRange และกำหนดเอง การตั้งค่าที่เกี่ยวข้องกับการรับสัญญาณไปยังไฟล์ไลบรารี mqh รายชื่อเต็มแนบอยู่ด้านล่าง Let s ชื่อไฟล์และวางไว้ในไดเร็กทอรีที่เหมาะสมของโฟลเดอร์ข้อมูลเทอร์มินัล MQL5 รวมทั้งสัญญาณ Expert. Indicator สำหรับการซื้อขายด้วยตนเองเช่นเดียวกับ EA, ตัวบ่งชี้ i s ใช้โมดูลสัญญาณที่อธิบายไว้ด้านบนตัวบ่งชี้ควรแจ้งให้ผู้ประกอบการค้าทราบเมื่อได้รับสัญญาณตำแหน่งคำสั่งซื้อที่รอดำเนินการและระบุระดับการคำนวณการสั่งซื้อตำแหน่ง Take Profit และ Stop Loss ผู้ใช้สามารถเลือกวิธีการแจ้งเตือนหน้าต่างป๊อปอัปมาตรฐานอีเมล์ การแจ้งเตือนหรือการแจ้งเตือนผลักดันคุณสามารถเลือกทั้งหมดพร้อมกันหรือชุดค่าผสมที่คุณต้องการได้อีกวัตถุประสงค์หนึ่งคือรูปแบบประวัติการซื้อขายตาม 80-20 TS ตัวบ่งชี้คือการเน้นแถบรายวันที่สอดคล้องกับเกณฑ์ของระบบและพล็อตการคำนวณการซื้อขาย level lines แสดงให้เห็นว่าสถานการณ์เกิดขึ้นเมื่อเวลาผ่านไปอย่างไรเพื่อความชัดเจนยิ่งขึ้นให้ทำดังนี้ดังต่อไปนี้เมื่อราคาแตะเส้นสัญญาณจะถูกแทนที่ด้วยบรรทัดคำสั่งที่รอดำเนินการเมื่อใบสั่งซื้อที่รอดำเนินการถูกเปิดใช้งานบรรทัดจะถูกแทนที่ด้วย Take Profit และ สายการหยุดขาดทุนเส้นเหล่านี้ถูกขัดจังหวะเมื่อราคาแตะที่ใบสั่งซื้อแบบปิดคำสั่งนี้ทำให้ง่ายต่อการประเมินประสิทธิภาพของการซื้อขาย กฎของระบบและกำหนดสิ่งที่สามารถปรับปรุงได้ให้เริ่มต้นด้วยการประกาศบัฟเฟอร์และพารามิเตอร์การแสดงผลของพวกเขาก่อนอื่นเราต้องประกาศบัฟเฟอร์สองชุดด้วยพื้นที่แนวตั้งที่กรอกข้อมูลการวาดภาพข้อแรกคือการเน้นแถบบาร์เต็มวันของวันก่อนหน้า ในขณะที่อีกจุดหนึ่งคือการเน้นด้านในเฉพาะเพื่อแยกออกจากด้านบนและด้านล่างของช่วง 20 ที่ใช้ใน TS หลังจากนั้นให้ประกาศบัฟเฟอร์สองชุดสำหรับเส้นสัญญาณหลายสีและบรรทัดคำสั่งที่รอดำเนินการ DRAWCOLORLINE สีของพวกเขาขึ้นอยู่กับ ทิศทางการซื้อขายมีสองเส้นอื่น ๆ ใช้ Proft และ Stop Loss ด้วยสีที่เหลือ DRAWLINE เดียวกันพวกเขาจะใช้สีมาตรฐานเดียวกันกับที่กำหนดให้พวกเขาใน terminal ทุกประเภทการแสดงผลที่เลือกยกเว้นสายง่ายต้องสอง buffer แต่ละ, ดังนั้นโค้ดมีลักษณะดังนี้ ตัวบ่งชี้สถานที่ให้บริการ 10 ตัวชี้วัดคุณสมบัติ 6 ตัวบ่งชี้ทรัพย์สิน 1 แถบคุณสมบัติของคุณสมบัติของรูปแบบ indicatortype1 การชี้บ่งชี้สถานที่ให้บริการ 1 clrDeepPink clrDodger ตัวบ่งชี้คุณสมบัติของแถบสีฟ้า bandwidth1 1. ตัวบ่งชี้คุณสมบัติ 2 แถบที่ 1 ของคุณสมบัติของรูปแบบ indicatortype2 การชี้วัดคุณสมบัติการวาดภาพ 2 clrDeepPink clrDodgerBlueDiggerBlue property indicatorwidth2 1. signallabel3 indicatorlabel3 Signal ตัวบ่งชี้คุณสมบัติ 3 ตัวชี้วัดคุณสมบัติ 3 ตัวบ่งชี้คุณสมบัติ 3 ตัวบ่งชี้ทรัพย์สิน 4 ตัวบ่งชี้ทรัพย์สิน 4 ตัวบ่งชี้ทรัพย์สิน 4 ตัวบ่งชี้คุณสมบัติระดับ 4 ตัวชี้วัดคุณสมบัติของ DRAWCOLORLINE 4 ตัวบ่งชี้ทรัพย์สิน STYLEDASHDOT clrDeepPink clrDodger ตัวบ่งชี้คุณสมบัติของแถบสีฟ้า 2 ตัวบ่งชี้คุณสมบัติ 2 ตัวบ่งชี้คุณสมบัติ 5 ตัวชี้วัดคุณสมบัติ DRAWLINE 5 ตัวชี้วัดคุณสมบัติของ DRAWLINE 5 ตัวชี้วัดคุณสมบัติของ CRAWMING 5 propertylabel6 ใช้เวลา ตัวบ่งชี้คุณสมบัติของทรัพย์สิน DRAWLINE ตัวบ่งชี้สถานที่ให้บริการ 6 ตัวชี้วัดคุณสมบัติ STYLEDASHDOTDOT6 ตัวบ่งชี้สถานที่ให้บริการ clrLime6.6 ให้ข้อมูลแก่ผู้ค้าที่มีความสามารถในการปิดใช้งานการกรอกข้อมูลแถบแรกของรูปแบบรายวันเลือกตัวเลือกการแจ้งเตือนสัญญาณและจำกัดความลึกของประวัติการตั้งค่าการตั้งค่าระบบการซื้อขายทั้งหมดจากสัญญาณ นอกจากนี้ยังมีการรวมไว้ที่นี่ในการทำเช่นนี้เราจำเป็นต้องระบุตัวแปรที่ใช้ในโมดูลก่อนโดยเบื้องต้นแม้ว่าบางส่วนจะใช้เฉพาะในอีเอและไม่จำเป็นต้องใช้ตัวบ่งชี้ รวมถึง Signal Expert Signal 80- 20 80-20 สัญญาณ TS module. input bool ShowOuter true แถบที่ 1 ของรูปแบบแสดงช่วงป้อนข้อมูลเต็ม bool ShowInner true แถบที่ 1 ของรูปแบบแสดงพื้นที่ด้านในการป้อนข้อมูล bool AlertPopup true การแจ้งเตือนแสดงป๊อปอัป - ขึ้นหน้าต่างเข้า bool AlertEmail เท็จแจ้งเตือนส่งสายป้อนข้อมูลอีเมล AlertEmailSubj การแจ้งเตือนอีเมลหัวข้อการป้อนข้อมูล bool AlertPush true การแจ้งเตือนส่งการแจ้งเตือน push. input uint BarsLimit 2000 ประวัติความลึกของรูปแบบในปัจจุบัน TF bars. ENUMLOGLEVEL LogLevel LOGLEVELNONE โหมดการบันทึก double buff1stBarOuter, buff1stBarOuterZero, buffers สำหรับการวางแผนแบบเต็มรูปแบบของแถบที่ 1 bar buff1stBarInner buff1stBarInnerZero บัฟเฟอร์สำหรับการวางแผนภายใน 60 รูปแบบของแถบ 1 bar buffSignal buffSignalColor บัฟเฟอร์บรรทัดสัญญาณ buffEntry buffEntryColor รอการสั่งซื้อบัฟเฟอร์บรรทัด buffSL buffTP StopLoss และ TakeProfit บรรทัดบัฟเฟอร์ gdExtremumBreak 0 TS8020ExtremumBreak ในสัญลักษณ์ราคา int giD1AveragePeriod 1 ค่าที่ถูกต้อง f หรือ TS8020D1AveragePeriod giMinBars WRONGVALUE จำนวนบาร์ที่กำหนดขั้นต่ำสำหรับการคำนวณใหม่ OnInit ตรวจสอบพารามิเตอร์ TS8020D1AveragePeriod ที่ป้อน TS1206D1AveragePeriod การแปลงจุดไปเป็นราคาสัญลักษณ์ gdExtremumBreak TS8020ExtremumBreak กำหนดจำนวนบาร์ที่ต้องการขั้นต่ำสำหรับการคำนวณจำนวนบาร์ของ TF ปัจจุบัน ภายในวัน giMinBars int 86400 PeriodSeconds ตัวบ่งชี้บัฟเฟอร์วัตถุประสงค์ 1 st bar เต็มรูปแบบสี่เหลี่ยมผืนผ้า SetIndexBuffer 0 buff1stBarOuter, INDICATORDATA PlotIndexSetDouble 0 PLOTEMPTYVALUE 0 SetIndexBuffer 1 buff1stBarOuterZero, INDICATORDATA ตารางด้านในของแถบด้านใน 1 รูปสี่เหลี่ยมผืนผ้า SetIndexBuffer 2 buff1stBarInner, INDICATORDATA PlotIndexSetDouble 1 PLOTEMPTYVALUE 0 SetIndexBuffer 3 buff1stBarInnerZero, INDICATORDATA สายสัญญาณ SetIndexBuffer 4 buffSignal, INDICATORDATA PlotIndexSetDouble 2 PLOTEMPTYVALUE 0 SetIndexBuffer 5 buffSignalColor, INDICATORCOLORINDEX. บรรทัดคำสั่งที่รอดำเนินการ SetIndexBuffer 6 buffEntry, INDICATORDATA PlotIndexSetDouble 3 PLOTEMPTYVALUE 0 SetIndexBuffer 7 buffEntryColor, INDICATORCOLORINDEX บรรทัด SL SetIndexBuffer 8 buffSL, INDICATORDATA PlotIndexSetDouble 4 PLOTEMPTYVALUE 0. TP บรรทัด SetIndexBuffer 9 buffTP, INDICATORDATA PlotIndexSetDouble 5 PLOTEMPTYVALUE 0.IndicatorSetInteger INDICATORDIGITS ตัวเลข IndicatorSetString INDICATORSHORTNAME 80-20 TS. Place รหัสโปรแกรมหลักเพื่อในตัวฟังก์ชั่น OnCalculate จัดวง สำหรับ iterating มากกว่า timeframe ปัจจุบันบาร์ s จากอดีตไปในอนาคตค้นหาพวกเขาสำหรับสัญญาณโดยใช้ฟังก์ชันจากโมดูลสัญญาณประกาศและเริ่มต้นตัวแปรที่จำเป็นโดยใช้ค่าเริ่มต้น Let s กำหนดแถบห่วงที่เก่าแก่ที่สุดสำหรับการคำนวณครั้งแรกพิจารณา user - กำหนดความลึกของประวัติที่กำหนดไว้ BarsLimit สำหรับการโทรตามมาบาร์ทั้งหมดของวันปัจจุบันแทนที่จะเป็นแถบสุดท้ายจะถูกคำนวณใหม่เนื่องจากรูปแบบสองแท่งเป็นของแผนภูมิ D1 โดยไม่คำนึงถึงกรอบเวลาปัจจุบันนอกจากนี้เราควรป้องกันด้วยเช่นกัน เรียกภูตผีถ้าเราไม่ดำเนินการบัฟเฟอร์ตัวบ่งชี้ที่ถูกต้องในระหว่างการเริ่มต้นใหม่ on แล้วไม่มีการเติมเต็มพื้นที่ที่เกี่ยวข้องอยู่บนหน้าจอเมื่อเปลี่ยน timeframes หรือสัญลักษณ์การล้างบัฟเฟอร์ควรถูกผูกไว้กับฟังก์ชัน OnCalculate แรกหลังจากการเริ่มต้นตัวบ่งชี้อย่างไรก็ตามตัวแปร prevcalculated มาตรฐานไม่เพียงพอสำหรับการกำหนดถ้าการเรียกเป็นครั้งแรก หนึ่งเนื่องจากอาจมีศูนย์ไม่เพียง แต่ระหว่างการเรียกฟังก์ชันครั้งแรกเท่านั้น แต่ยังรวมถึงการเปลี่ยน checksum Let s ใช้เวลาพอสมควรในการแก้ปัญหานี้โดยการสร้างโครงสร้างที่ไม่ได้รับผลกระทบจากการตั้งค่าตัวแปรที่คำนวณไว้ล่วงหน้าเป็นศูนย์โครงสร้างคือการจัดเก็บและประมวลผล ข้อมูลที่ใช้บ่อยในตัวบ่งชี้ - ธงของ OnCalculate ฟังก์ชั่นการเปิดตัวครั้งแรก - เคาน์เตอร์ของแถบคำนวณที่ไม่ได้ตั้งค่าเป็นศูนย์เมื่อมีการเปลี่ยนแปลงการตรวจสอบ - ธงของการเปลี่ยน checksum - ธงของจุดเริ่มต้นของแถบใหม่ - เวลาสตาร์ทบาร์ปัจจุบันโครงสร้างที่รวมข้อมูลทั้งหมดนี้จะประกาศในระดับโลกควรจะสามารถรวบรวมหรือนำเสนอข้อมูลจากในตัวหรือ c ฟังก์ชั่น ustom ให้ชื่อโครงสร้างนี้ Brownie สามารถวางไว้ที่ส่วนท้ายของรหัสตัวบ่งชี้โครงสร้างวัตถุระดับโลกเดียวที่ชื่อ goBrownie จะถูกประกาศว่ามีเป็น well. struct BROWNIE datetime tLastBarTime เวลาของแถบประมวลผลล่าสุด iP วนคำนวณจำนวนของการคำนวณ บาร์บูล bFirstRun เปิดตัวครั้งแรกธงบูล bHistoryUpdated ประวัติการอัพเดทธงบูล bIsNewBar บาร์เปิดใหม่ค่าเริ่มต้น flag. BROWNIE tLastBarTime 0 iPrewCalculated WRONGVALUE bFirstRun bIsNewBar จริง bHistoryUpdated false. void fReset บูล bResetFirstRun ค่าเริ่มต้นที่แท้จริง tLastBarTime 0 iPrewCalculated WRONGVALUE ถ้า bResetFirstRun bFirstRun ชุดจริงกับศูนย์ถ้า มีสิทธิ์ bIsNewBar true bHistoryUpdated false. void fUpdate int iNewPrewCalculated ธง WRONGVALUE ของฟังก์ชัน OnCalculate built-in first call ถ้า bFirstRun iPrewCalculated 0 bFirstRun false แถบใหม่ datetime บาร์ tThisBarTime TimeCurrent - รอบระยะเวลา TimeSeconds bIsNewBar tLastBarTime tThisBarTime ปรับปรุงเวลาบาร์ปัจจุบันถ้า bIsNewBar tLastBarTime tThisBarTime. if iNewPrewCalculated - 1 มีการเปลี่ยนแปลงใด ๆ ในประวัติศาสตร์ bHistoryUpdated iNewPrewCalculated 0 iPrewCalculated WRONGVALUE ใช้ prewcalculated ในกรณีที่ OnCalculate 1 st call ถ้า iPrewCalculated WRONGVALUE iPrewCalculated iNewPrewCalculated หรือหากไม่มีการอัพเดตประวัติอื่นถ้า iNewPrewCalculated 0 iPrewCalculated iNewPrewCalculated BROWNIE goBrownie. Let s แจ้ง Brownie ของตัวบ่งชี้ de-initialization event. void OnDeinit const int เหตุผล goBrownie fReset แจ้ง Brownie ถ้าจำเป็นจำนวนข้อมูลที่เก็บไว้โดย Brownie สามารถขยายได้ถ้าฟังก์ชันหรือชั้นเรียนที่กำหนดเองต้องการราคาวอลุ่มหรือแถบปัจจุบันของ spread value เปิดสูงต่ำปิด tickvolume ปริมาณการแพร่กระจายจะสะดวกกว่า เพื่อใช้ข้อมูลสำเร็จรูปจากฟังก์ชัน OnCalculate และส่งผ่านทาง Brownie แทนที่จะใช้สำเนาเวลา CopyOpen CopyHigh ฯลฯ หรือ CopyRates จะช่วยประหยัดทรัพยากรของซีพียูและช่วยลดความจำเป็นในการจัดการประมวลผลข้อผิดพลาดของฟังก์ชันภาษาเหล่านี้ให้ s กลับไปที่ฟังก์ชันตัวบ่งชี้หลักประกาศตัวแปรและเตรียมอาร์เรย์โดยใช้โครงสร้าง goBrownie ดูข้อมูลดังนี้ฟีดข้อมูล felddate prevcalculated Feed Brownie. int iPeriodBar 0 ตัวนับเสริม iCurrentTFBar ratestotal - int บาร์ดัชนีแถบปัจจุบันของลูป TF ปัจจุบันเริ่ม datetime คงที่ stLastD1Bar 0 เวลาของแถบประมวลผลล่าสุดของคู่ของ D1 บาร์รูปแบบของ 2 nd บาร์ int คง si1stBarofDay 0 ดัชนีของวันปัจจุบัน s bar. if แรก goBrownie bFirstRun ล้างบัฟเฟอร์ในช่วงเริ่มต้นอีกครั้ง ArrayInitialize buff1stBarInner, 0 ArrayInitialize buff1stBarInnerZero, 0 ArrayInitialize buff1stBarOuter, 0 ArrayInitialize buff1stBarOuterZero, 0 ArrayInitialize buffEntry, 0 ArrayInitialize buffEntryColor, 0 ArrayInitialize buffSignal , 0 ArrayInitialize buffSignalColor, 0 ArrayInitialize buffTP, 0 ArrayInitialize buffSL, 0 stLastD1Bar 0 0 si1stBarofDay อื่น datetime tTime TimeCurrent ต่ำลึกอีกครั้งการคำนวณ - จาก ratestotal วัน iCurrentTFBar ก่อนหน้า - บาร์สัญลักษณ์ PERIODCURRENT tTime - tTime 86400 tTime - 1 ENUMENTRYSIGNAL eSignal ENTRYUNKNOWN สัญญาณ double dSL WRONGVALUE SL ระดับ dTP WRONGVALUE ระดับ TPDevel WRONGVALUE ระดับรายการ dRangeHigh WRONGVALUE dRangeLow WRONGVALUE เส้นขอบของรูปแบบช่วงแถบ 1 bar datetime tCurrD1Bar 0 รูปแบบปัจจุบันของแถบ D1 บาร์ s 2 บาร์ tD1BarToFill 0 D1 แถบเวลาที่จะเติมเต็มรูปแบบ s 1 st bar ตรวจสอบให้แน่ใจดัชนีเริ่มต้นการคำนวณใหม่อยู่ในช่วงที่ยอมรับ iCurrentTFBar int fmax 0 fmin iCurrentTFBar, ratestotal - giMinBars. while iCurrentTFBar ratestotal IsStopped ลูปของโปรแกรมหลักจะอยู่ที่นี่ตรวจสอบการปรากฏตัวของสัญญาณเมื่อ iterating ในช่วงเวลาปัจจุบัน bars. eSignal feGetEntrySignal Time iCurrentTFBar, dEntryLevel, dSL, dTP, dRangeHigh, dRangeLow ถ้า eSignal 1 ยังคงไม่มีสัญญาณในระหว่างวันที่แถบเป็นของหากมีสัญญาณในแถบวันแรกของวันใหม่ช่วงของแถบรายวันก่อนหน้า ควรจะเติมค่าของตัวแปร tD1BarToFill ของชนิด datetime ใช้เป็นค่าสถานะถ้ามีค่าเท่ากับ WRONGVALUE ไม่จำเป็นต้องกรอกข้อมูลแถบนี้สายสัญญาณควรเริ่มต้นที่แถบแรกเดียวกัน แต่ให้ขยายไปยังช่วงสุดท้าย บาร์ของวันก่อนหน้าสำหรับการรับรู้รูปแบบที่ดีขึ้นตั้งแต่การคำนวณของเส้นสัญญาณรวมทั้งเส้นและสีเติมสำหรับแถบรุกและหยาบคายจะแตกต่างกันให้เราทำสอง blocks. tCurrD1Bar ที่คล้ายกัน เวลา iCurrentTFBar เวลา iCurrentTFBar 86400 เริ่มต้นของวันบาร์เป็นถ้า stLastD1Bar tCurrD1Bar tD1BarToFill เวลา iCurrentTFBar 1 เวลา iCurrentTFBar 1 86400 si1stBarofDay iCurrentTFBar อื่นบาร์ tD1BarToFill WRONGVALUE วันก่อนหน้านี้ไม่มีการบรรจุใหม่ต้อง stLastD1Bar tCurrD1Bar remember. if tD1BarToFill WRONGVALUE กรอกวันก่อนหน้า s D1 บาร์ iPeriodBar iCurrentTFBar ถ้า dEntryLevel dRangeHigh ถ้า ShowOuter ขณะ --iPeriodBar 0 ถ้าเวลา iPeriodBar tD1BarToFill ทำลาย buff1stBarOuterZero iPeriodBar dRangeLow buff1stBarOuter iPeriodBar dRangeHigh ถ้า ShowInner iPeriodBar iCurrentTFBar ขณะ --iPeriodBar 0 ถ้าเวลา iPeriodBar tD1BarToFill ทำลาย buff1stBarInnerZero iPeriodBar dRangeLow 0 2 dRangeHigh dRangeLow buff1stBarInner iPeriodBar dRangeHigh 0 2 dRangeHigh dRangeLow จุดเริ่มต้นของสายสัญญาณจากแถบล่าสุด buffSignal iCurrentTFBar buffSignal iCurrentTFBar 1 dRangeLow gdExtremumBreak buffSignalColor iCurrentTFBar buffSignalColor iCurrentTFBar 1 0 อื่น ถ้า ShowOuter ขณะ --iPeriodBar 0 ถ้าเวลา iPeriodBar tD1BarToFill ทำลาย buff1stBarOuterZero iPeriodBar dRangeHigh buff1stBarOuter iPeriodBar dRangeLow ถ้า ShowInner iPeriodBar iCurrentTFBar ขณะ --iPeriodBar 0 ถ้าเวลา iPeriodBar tD1BarToFill ทำลาย buff1stBarInnerZero iPeriodBar dRangeHigh 0 2 dRangeHigh dRangeLow buff1stBarInner iPeriodBar dRangeLow 0 2 dRangeHigh dRangeLow เริ่มต้นของสัญญาณ บรรทัดจากวันก่อนหน้า s buffSignal ล่าสุด iCurrentTFBar buffSignal iCurrentTFBar 1 dRangeHigh gdExtremumBreak buffSignalColor iCurrentTFBar buffSignalColor iCurrentTFBar 1 1 else continue. All เส้นเค้าโครงที่เหลือจะถูกวางแผนภายในวงเวลาปัจจุบันของแถบ iteration วนเวียนตามที่กล่าวมาแล้วสายสัญญาณควรสิ้นสุด ที่แถบที่ราคาสัมผัสนั้นบรรทัดคำสั่งที่รอดำเนินการควรเริ่มต้นที่แถบเดียวกันและสิ้นสุดในแถบที่ติดต่อกับราคาเกิดกำไรกำไรและหยุดขาดทุนบรรทัดควรเริ่มต้นที่แถบเดียวกันเค้าโครงของรูปแบบคือ เสร็จสิ้น a แถบที่ราคาแตะหนึ่งในนั้น สายสัญญาณจนโดนบาร์ iPeriodBar iCurrentTFBar ถ้า dEntryLevel dRangeHigh ขณะ iPeriodBar ratestotal ถ้าเวลา iPeriodBar tCurrD1Bar 86,399 แบ่ง buffSignal iPeriodBar dRangeLow gdExtremumBreak buffSignalColor iPeriodBar 0 ถ้า dRangeLow gdExtremumBreak iPeriodBar ต่ำทำลายอื่นในขณะที่ iPeriodBar ratestotal ถ้าเวลา iPeriodBar tCurrD1Bar 86,399 แบ่ง buffSignal iPeriodBar dRangeHigh gdExtremumBreak buffSignalColor iPeriodBar 1 หากมีการแตกหักของ iPrAdHard สูงขึ้น บรรทัดเริ่มต้นจนถึงขีดโดยแถบถ้า dEntryLevel dRangeHigh ในขณะที่ iPeriodBar เป็นคะแนนถ้า Time iPeriodBar tCurrD1Bar 86399 break buffEntry iPeriodBar dRangeLow buffEntryColor iPeriodBar 0 ถ้า dRangeLow สูง iPeriodBar ถ้า buffEntry iPeriodBar 1 0 เริ่มต้นและสิ้นสุดในแถบเดียวขยายโดย 1 บาร์เพื่อ buffEntry ที่ผ่านมา iPeriodBar 1 dRangeLow buffEntryColor iPeriodBar 1 0 แบ่งอื่นในขณะที่ iPeriodBar ratestotal ถ้าเวลา iPeriodBar tCurrD1Bar 86,399 แบ่ง buffEntry iPeriodBar dRangeHigh buffEntryColor iPeriodBar 1 ถ้า dRangeHigh ต่ำ iPeriodBar ถ้า buffEntry iPeriodBar 1 0 เริ่มต้นและสิ้นสุดในวันที่บาร์เดี่ยวขยายจาก 1 แถบที่ผ่านมา buffEntry iPeriodBar 1 dRangeHigh buffEntryColor iPeriodBar 1 1 พัก TP and SL lines till one of them is crossed by a bar if dEntryLevel dRangeHigh SL is equal to the Low since the beginning of a day dSL Low ArrayMinimum Low si1stBarofDay, iPeriodBar si1stBarofDay. while iPeriodBar ratestotal if Time iPeriodBar tCurrD1Bar 86399 break buffSL iPeriodBar dSL buffTP iPeriodBar dTP if dTP High iPeriodBar dSL Low iPeriodBar if buffSL iPeriodBar 1 0 start and end on a single bar, extend by 1 bar to the past buffSL iPeriodBar 1 dSL buffTP iPeriodBar 1 dTP break else SL is equal to the High since the beginning of a day dSL High ArrayMaximum High si1stBarofDay, iPeriodBar si1stBarofDay. while iPeriodBar ratestotal if Time iPeriodBar tCurrD1Bar 86399 break buffSL iPeriodBar dSL buffTP iPeriodBar dTP if dSL High iPeriodBar dTP Low iPeriodBar if buffSL iPeriodBar 1 0 start and end on a single bar, extend by 1 bar to the past buffSL iPeriodBar 1 dSL buffTP iPeriodBar 1 dTP break. Let s place the call code of the fDoAlert signal notification function out of the loop I n fact, it has slightly wider opportunities as compared to the ones involved in this indicator the function is able to work with audio files meaning that this option can be added to custom settings The same is true for the ability to select separate files for buy and sell signals Function listing. void fDoAlert Function for sending signals and notifications string sMessage, alert message bool bAlert true show a pop-up window bool bSound false play a sound file bool bEmail false send an eMail bool bNotification false send a push notification string sEmailSubject eMail subject string sSound sound file static string ssPrevMessage there was silence previous alert message static datetime stPrevTime previous alert bar time datetime tThisBarTime TimeCurrent PeriodSeconds PeriodSeconds current bar time. if ssPrevMessage sMessage stPrevTime tThisBarTime another and or 1 st at this bar. remember ssPrevMessage sMessage stPrevTime tThisBarTime. form a message string sMessage StringFormat s s s s , TimeToString TimeLocal , TIMESECONDS , local time Symbol symbol StringSubstr EnumToString ENUMTIMEFRAMES Period , 7 , TF sMessage message. activate notification signal if bAlert Alert sMessage if bEmail SendMail sEmailSubject Symbol sMessage if bNotification SendNotification sMessage if bSound PlaySound sSound. The code for checking the need for calling the function and forming the text for it located in the program body before completion of the OnCalculate event handler. alert iPeriodBar ratestotal 1 current bar. if AlertPopup AlertEmail AlertPush 0 return ratestotal all is disabled if buffSignal iPeriodBar 0 return ratestotal nothing to catch yet or already if buffSignal iPeriodBar High iPeriodBar buffSignal iPeriodBar Low iPeriodBar return ratestotal no signal line touching. message text string sMessage StringFormat TS 80-20 needed s s, TP s, SL s , buffSignalColor iPeriodBar 0 BuyStop SellStop , DoubleToString dEntryLevel, Digits , DoubleToString dTP, Digits , DoubleToString dSL, Digits notification fDoAlert sMessage, AlertPopup, false AlertEmail, AlertPush, AlertEmailSubj. return ratestotal complete OnCalculate operation. The entire source code of the indicator can be found in the attached files The trading layout according to the system is best seen on minute charts. Please note that the indicator uses the bar data rather than tick sequences inside bars This means if the price crossed several layout lines for example, Take Profit and Stop Loss lines on a single bar, you cannot always define which of them was crossed first Another uncertainty stems from the fact that the start and end lines cannot coincide Otherwise, the lines from the buffer of DRAWLINE and DRAWCOLORLINE types will simply be invisible to a user These features reduce the layout accuracy b ut it still remains quite clear. Expert Advisor for testing the 80-20 trading strategy. The basic EA for testing strategies from the book Street Smarts High Probability Short-Term Trading Strategies was described in details in the first article Let s insert two significant changes in it First, the signal module is to be used in the indicator as well meaning it would be reasonable to set trading levels calculation in it We have already done this above Apart from the signal status, the feGetEntrySignal function returns order placement, Stop Loss and Take Profit levels Therefore, let s remove the appropriate part of the code from the previous EA version adding the variables for accepting levels from the function and edit the function call itself The listings of the old and new code blocks can be found in the attached file strings 128-141.Another significant addition to the basic EA code is due to the fact that, unlike the previous two, this TS deals with a short-term trend It assumes that t he roll-back happens once a day and is unlikely to be repeated This means that the robot has to make only one entry ignoring the existing signal all the rest of the time until the next day The easiest way to implement that is to use a special flag static or global variable of bool type in the program memory But if the EA operation is interrupted for some reason the terminal is closed, the EA is removed from the chart, etc , the flag value is lost as well Thus, we should have the ability to check if today s signal was activated previously To do this, we may analyze the history of trades for today or store the date of the last entry in the terminal global variables rather than in the program Let us use the second option since it is much easier to implement. Provide users with the ability to manage one entry per day option and set an ID of each launched version of the robot it is needed to use global variables of the terminal level. input bool OneTrade false One position per day input uint MagicNumber 2016 EA magic number. Let s add the variables necessary to implement one entry per day option to the program s global variables definition block Initialize them in the OnInit function. string gsPrefix identifier of super global variables bool gbPositionToday false , gbPendingToday false. Create a prefix of super global variable names gsPrefix StringFormat SSB s u s Symbol MagicNumber, MQLInfoInteger MQLTESTER t. Has the robot worked with market or pending orders today gbPositionToday int GlobalVariableGet gsPrefix LastPositionDate TimeCurrent TimeCurrent 86400 gbPendingToday int GlobalVariableGet gsPrefix LastPendingDate TimeCurrent TimeCurrent 86400.Here the robot reads the values of global variables and compares the written time with the day start time, thus defining if the today s signal has already been processed Time is written to the variables in two places let s add the appropriate block to the pending order installation code additions highlighted. if iTry - 10 if LogLevel LOGLEVELNONE Print Pending order placing error the distance from the current price is not enough if LogLevel LOGLEVELERR PrintFormat Pending order cannot be placed at the s level Bid s Ask s StopLevel s , DoubleToString dEntryLevel, Digits , DoubleToString Digits , DoubleToString Digits , DoubleToString gdStopLevel, Digits else to update the flag GlobalVariableSet in the terminal global variables gsPrefix LastPendin gDate , TimeCurrent TimeCurrent 86400 gbPendingToday true in the program global variables. The second block is placed after the code defining a newly opened position. if PositionSelect Symbol if PositionGetDouble POSITIONSL 0.if gbPositionToday update the flag GlobalVariableSet in the terminal global variables gsPrefix LastPositionDate , TimeCurrent TimeCurrent 86400 gbPositionToday true in the program global variables. These are the only significant changes in the previous EA version code The finalized source code of the new version is attached below. Strategy backtesting. In order to illustrate the trading system viability, its authors use patterns detected on the charts from the end of the last century Therefore, we need to check its relevance in today s market conditions For testing, I took the most popular Forex pair EURUSD, the most volatile pair USDJPY and one of the metals XAUUSD I increased the indents specified by Raschke and Connors 10 times, since four-digit quotes were used when the book was written, while I tested the EA on five-digit ones Since there is no any guidance concerning the trailing parameters, I have selected the ones that seem to be most appropriate to daily timeframe and instrument volatility The same applies to the Take Profit calculation algorithm added to the original rules the ratio for its calculation was chosen arbitrarily, without deep optimization. The balance chart when testing on the five-year EURUSD history with the original rules no Take Profit. The same settings and Take Profit. The balance chart when testing the original rules on the five-year USDJPY history. The same settings and Take Profit. The balance chart when testing the original rules on the daily gold quotes for the last 4 years. The full data on the robot settings used in each test can be found in the attached archive containing the complete reports. The rules programmed in the signal module match the 80-20 trading system description provided by Linda Raschke and Laurence Connors in their book Street Smarts High Probability Short-Term Trading Strategies However, we have extended the original rules a bit The tools the robot and the indicator are to help traders draw their own conclusions concerning the TS relevance in today s market In my humble opinion, the TS needs a serious upgrade In this article, I have tried to make some detailed comments on developing the code of the signal module, as well as the appropriate robot and indicator I hope, this will help those who decide to do the upgrade Apart from modifying the rules, it is also possible to find trading instruments that fit better to the system, as well as signal detection and tracking parameters. A Profitable Forex Trading Strategy for Novice Forex Traders. In Trading Last Updated April 9th, 2015.One of the most frequent questions asked by novice Forex traders is about setting the target and collecting the profit After they learn how to locate the too strong trade setups they want to know how long th ey should hold their positions and how much profit they have to make from each trade setup. Before I answer this question and suggest you a simple and good strategy that helps you to be profitable every month, I d like to explain briefly about locating the strong trade setups and taking the positions, because many of those who read this article can be new to LuckScout, and so, they don t know what trading strategy we use to locate the trade setups. We use the combination of the strongest candlestick patterns with Bollinger Bands breakout, for the reversal and continuation trade setups This is the main trading system that we follow on LuckScout As they are directly connected to the buyers and sellers mentality and psychology the strong candlestick patterns are the most reliable signals They become even stronger when they are combined with Bollinger Bands If you like to learn about our trading system in details, please follow this article Become A Profitable Forex Trader In 5 Easy Steps. No w, let s talk about the position management strategy I assume that you have already learned a trading system which is most probably the one I explained above. The question that most LuckScout followers ask us after learning a trading system is that how long they should hold the positions, and where they have to set their target orders Holding the positions and maximizing the profit is harder than locating the strong trade setups and taking the positions That s why we try to simplify it as much as we can. I am used to take two positions with the same stop loss, when I locate a strong trade setup The first position s target is usually x5 larger than the stop loss Depend on the condition, I sometimes set the target a little tighter for example x3, but in most cases it is x5 When the first position hits the target, I move the stop loss of the second position to breakeven and hold it. The second position has no target order I hold it till a strong reversal signal forms, or something happens th at make me close the position I check too many factors to decide whether I should still hold the second position or close it If I want to explain all of these factors to LuckScout followers who are mostly new to Forex trading, it makes them overloaded and confused, specially because, as novice traders they have to focus on learning the trading system and locating the strong trade setups first So, I prefer not to focus on maximizing the profit, and make the LuckScout followers only focused on mastering the trading system However, still they need to know how long they have to hold their positions Should they take two or more positions also and do the same as what I do If so, then how long they have to hold the second position. These are the questions that have to be answered, and as the instructor that have introduced a trading system to you, I have to be able to give you a good solution that not only helps you to make profit, but also prevents you from getting confused. It is not a good i dea to do what I do, because as I mentioned above, I consider too many factors to hold my second position, and if I want to teach you those factors, it will make problems and it is even possible that you give up on trading, because it makes you overloaded and confused Holding the positions and maximizing your profit is too experience dependent and you will master it in long term You cannot learn it along with the learning of the trading system. On the other hand, novice traders haven t built their patience yet, and it is a little hard for them to hold their positions like what professional traders do They want to take their profit within a shorter time, and see that it is possible to make money through Forex trading So, here is a simple solution that a novice trader who is also a close friend made me figure out. Martin is a retired engineer who wants to make money through stock and Forex trading I taught him the trading system and asked him to demo trade to master the trading system and repeat his success for 6 consecutive months before he starts live trading read this about this method He is really good in locating the strong trade setups now, but he has problems in holding his positions So, he decided to try the 1 0 5 positions to see whether he could grow his account or not In case of a short trade setup, he took a position and set the stop loss above the high price of the candlestick that formed the trade setup, and in case of a long trade setup, he took a position and set the stop loss below the low price of the candlestick that formed the trade setup Then he set a x0 5 target It means the target size was 1 2 of the stop loss size. He has been testing this for the past several months, and the result has been good so far When I checked his account statement I found out that although he could even go for 1 1 positions SL TP , and so, make twice of the profit he made, he has been growing his account slowly and steadily which is great for a new trader. So, I suggest no vice traders not to think about maximizing their profit for now, because as I mentioned, it is hard and complicated Also, setting the x5 or x10 targets and moving the stop loss to breakeven or using the trailing stop loss can take you out at breakeven or with a too small profit in most cases Instead, you can choose one of the below options at least for now that you are working to master your trading system. Wait for the strong trade setups to form and then. Take two positions with the same stop loss and x0 5 or x1 target for the first position and x2 for the second one Move the stop loss of the second position to breakeven when the first position hits the target Please note that you have to split your risk between these two positions For example, if you want to take a 2 risk, then you have to take two 1 positions. Take two positions with the same stop loss and x0 5 target for the first position and x1 for the second one To give enough room to the price fluctuation, you d better not to mov e the stop loss to breakeven when the first position hits the target. Take just one position with a x0 5 or x1 target to keep your trading even simpler. As a trader who trades the daily, weekly and monthly time frames at LuckScout we only follow the long time frames , you will learn to hold your positions for a longer time, the more you trade and the more experienced you become At the meantime that you are practicing to master your trading system, you can be happy with smaller profits, but later you will become able to achieve even x10 or x15 trades Keep in your mind that if you take the strong trade setups and then set a x1 target, you will be profitable at the end of the month, even if only 50-55 of your positions hit the target This is what Martin has been doing on a demo account during the past few months, and now he is about to test it on a small live account. This was just a solution for those who are confused about closing their positions and collecting their profit I know that on most of the sites and trading courses it is advised that traders not to go for less than 1 5 positions This is true, but it seems it cannot be recommended to novice traders who have to be focused on locating the strong trade setups first, and have not built their patience and confidence yet When they see they can make profit, they become confident and will keep on working, and will become able to make larger profit. Please note that taking 1 1 or 1 0 5 positions that will be closed sooner, doesn t mean that you can over-trade and take weak trade setup You will have a too low success rate if you do it. Join Our 20,000 Loyal Followers Now t survive for a long haul if he is unable to maximize his profits At best, he is a break-even trader and consider the time investment, not worthy at all so maximizing profits is a serious topic and every trader should have that skillset no matter you are new or experienced, the sooner the better Trade management including risk management and profit exit m anagement Risk management is easy while profit management a little bit tricky but applying the right method, still manageable Our goal is to capture the big chunk of favored price movement, nothing is more painful than you let go your profits I don t use any indicator in my trading including BB I don t trust BB breakout as well because it involves parameter setting and it is lagging We may have breakout on 20,2 but nothing on 30,2 40,2 whatsoever My SOP is easy, scale out at 1 1 target with partial portion, remaining set to break even, to me it is just an indicator that 1 1 has been reached, then look for if there is any continuation set up forms, if yes scale in again and adjust stop and let run, if no, consider to trail the remaining, thinking is that if I trail it, how much profit can we preserve, if too small not worthy just don t trail, leave room for reaming to breathe waiting for another continuation set up forms, if no set up forms and remaining got stopped out at break even th at is fine The tip is your trailing technique, don t use any indicator-based or fixed dollar amount or fixed percent model they are useless and don t consider market condition ATR, BB are some of them, all indicator only tell us what has happened, what has happened don t indicate anything about the future As a trader, we trade most likely to happen in the future but don t just blindly trade what has already happened and believe it will continue. I respect your trading beliefs and I totally agree that Bollinger bands are lagging indicator as any other indicator. However, what I don t agree with is this statement you made all indicator only tell us what has happened, what has happened don t indicate anything about the future. The reason I disagree is to trade any instrument, you only base your decision on historical price action, so even candlesticks are lagging indicators, i e, it only tells you what HAPPENED in the time frame you choose to look at, candlesticks don t tell you the future ei ther. The way I see it, is candlesticks and bollinger bands are only tools to help us figure out what is most likely going to happen We don t trade one indicator in isolation of the other, we combine them to give us a higher chance of success. Even traders who boast about using pure price action and nothing else, are using a lagging indicator candlesticks. Just remember that as soon as you see a tick in price, it already is in the past, therefore lagging. Thank you Youness. You are right Who cares what is leading or lagging A too strong signal like what was formed by 2014 05 08 candlestick on EUR USD daily chart was the beginning of a 3300 pips downtrend so far There are so many other examples that we followed, listed on. A too strong movement sometimes becomes started with a too strong or strong trade setup And this is what we need to enter the market We have been doing this for years and it has worked relatively good so far I think it will keep on working, because it is based on the psycho logy of the markets participants who move the price. Hi Youness and Chris. I totally agree with your points The reason I don t use indicators is because of their parameter setting like I said we may get BB breakout on 20,2 but got nothing happened on 25,2 or 30,2 that could possibly result in our different trading decisions I just don t find it convincing with such statement Because a lot of people watching using 20MA or 200MA No offense, it s just my thoughts. Well said I do really feel that you mentioned above and I am also learning toward it Mastering in profit taking is not easy, it was tricky. Hi my approach to TP Open 2 positions with same stoploss First position TP is 1x SL and if first TP is hit I will move second position to breakeven Then when it moves in my direction for around 200 pips I put trailing stop with 50 or 60 pips and leave it Sometimes not many it moves over 300 pips before hitting trailing stop leaving me with another 240-250 pips Thats daily price action. This is go od but trailing with 50 pips or 60 pips should be justify why is that any logical reason In trading I try to take out personal emotions like I feel because market doesn t care about your feelings entry at all. Hi Allen Wu I am still not professional trader and also still afraid to lose too many pips You see if a trend is too strong it can accommodate a tight trailing stop, and if you made maybe another 150 or 200 pips before it turns against you, then you would have made 100 to 150 pips with 50 pip trailing stop while you would have break even with 100 or 150 pip trailing stop I m still learning and experimenting also. And that is together with my first position TP of around 100 pips. Thank you very much, Chris That s the article I was looking for. So, for a beginner is better to take one position at time, right When the a trader become an expert, they can start to take more than one position at the same time We can also trade two or more currency pair simultaneously, if we find more than one strong trade setup Am I right. A 1 1 position, means the take profit is the same at the stop loss, right. And a 1 5 position, means that the take profit is 5 times higher than the stop loss Please, tell me if I said something wrong Thanks a lot for your help. You are welcome. for a beginner is better to take one position at time, right. This is one of the options you have You have to do it specially if your account is small. A 1 1 position, means the take profit is the same at the stop loss, right. And a 1 5 position, means that the take profit is 5 times higher than the stop loss. Thanks a lot for your answer We can also trade more than a currency at time, right Oh wait, you call a position, the trade of a single currency pair, even if we trade more than one lot at time So, if we trade two currency pairs, it means we have two open positions Am I right Thank you. You are welcome. Yes, you can trade more than a currency pair at a time You can have multiple positions. In another post you had mentioned that all currencies are correlated to a certain degree and you have to take only the one that looks stronger, and forget about the rest. But here you have mentioned you can trade more than a currency pair at a time. Does that mean we can take more than one positions if the trade set ups are formed in different currency pairs. I just wanted to confirm. When many of the pairs form too strong setups at the same time, we should take only one of them, because this can be because of a common reason which can also make the price go against us the next day. Many thanks for this article It s great to learn new knowledge from your various subjects. Best regards, Merry Burhan.

Comments

Popular posts from this blog

Cel Mai Mare Castig Pe อัตราแลกเปลี่ยน

ผู้ประกอบการค้า Forex คำจำกัดความของผู้ประกอบการ: ความมุ่งมั่นในการดูแลและให้บริการทางการเงิน - การกระทำ, การบังคับใช้, การทำให้เป็นไปได้ ในด้านการเงินผู้ค้าคือผู้ที่ซื้อและขายเครื่องมือทางการเงินเช่นหุ้นพันธบัตรสินค้าโภคภัณฑ์และสัญญาซื้อขายล่วงหน้า ในการซื้อขาย, การค้าการค้า, การค้า, การค้า, การค้า, การค้า, การค้า, การค้า, การค้า, การค้า, การค้า, การค้า, การค้า, การค้า, การค้า, การค้า, การค้า, การตลาด, การค้า, การค้า, การค้า, การค้า, การค้า, (ผู้ประกอบการแลกเปลี่ยนเงินตราต่างประเทศ - Forex Trader - ดูที่ปัจจัยต่างๆที่มีอิทธิพลต่อเศรษฐกิจในท้องถิ่นและอัตราแลกเปลี่ยนแล้วใช้ประโยชน์จากการ misvaluations ใด ๆ ของสกุลเงินโดยการซื้อและขายในตลาดแลกเปลี่ยนเงินตราต่างประเทศที่แตกต่างกัน) Traderul Forex este persoana ดูแล obtine กำไร din tranzactii speculative cu bunuri financiare. ผู้ประกอบการค้าที่ไม่หวังผลกำไร forex folkseste ควบคุม calculatorul, urmareste cotatiile valutare และ desfasoara tranzactii. Scopul Unui Trader Forex Obtinerea unui เป็นไปตามเงื่อนไขของลูกค้าโดยไม่ได้รับอนุญาต เจสสิก้...