- พฤศจิกายน 20, 2013
- โพสโดย: ทีมงาน Forex Wiki
- หมวดหมู่: ฟรี Forex EA
ชื่อ: |
|
||
ผู้เขียน: | systrad5 (2006.09.08 14:46) | ||
คะแนน: | 11 | ||
ดาวน์โหลดแล้ว: | 9216 | ||
ดาวน์โหลด: |
|
||
Green above Red -> ขึ้น.
Red above Green -> ลง. Periods that seem useful are 4, 16, 128. Value is calculated as follows: ขึ้น (สีเขียว) = ((สูง - เปิด) + (ปิด - ต่ำ))/2, averaged for the selected period; ลง (สีแดง) = ((เปิด - ต่ำ) + (สูง - ปิด))/2, averaged for the selected period. This may have another name or be similar to an existing indicator. I've made up the name drive. Please drop me an email if you've run into a similar indicator before - [email protected] |
|||
2 ความคิดเห็น หากต้องการโพสต์ความคิดเห็นใหม่, โปรด เข้าสู่ระบบ หรือ ลงทะเบียน
I like it. On EURUSD 1H, it's giving better exit signals than my current indicators.
16.07.2011 08:30 maj1es2tic
#property indicator_separate_window #property indicator_buffers 2 #property indicator_color1 Green #property indicator_color2 Red //---- input parameters extern int Depth = 16; //---- buffers double UpBuffer[]; double DownBuffer[]; //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ int init() { //---- additional buffers SetIndexStyle(0, DRAW_LINE); SetIndexBuffer(0, UpBuffer); SetIndexStyle(1, DRAW_LINE); SetIndexBuffer(1, DownBuffer); //---- name for DataWindow and indicator subwindow label string short_name = "Drive(" + ความลึก + ")"; IndicatorShortName(short_name); SetIndexLabel(0, "DriveUp"); SetIndexLabel(1, "DriveDn"); //---- return(0); } //+------------------------------------------------------------------+ //| | //+------------------------------------------------------------------+ int start() { int i, เจ; double UpCnt, DnCnt; ถ้า(บาร์ <= Depth + 10) return(0); //---- last counted bar will be recounted int counted_bars = IndicatorCounted(); int limit = Bars - counted_bars; ถ้า(counted_bars > 0) limit++; //---- Load prices into CBuffer[0] สำหรับ(i = 0; ฉัน < ขีด จำกัด; ฉัน ++) { UpCnt = 0; DnCnt = 0; สำหรับ(j = 0; เจ < ความลึก; j++) { UpCnt = UpCnt + (สูง[i+j] - เปิด[i+j]) + (คหรือ[i+j] - ต่ำ[i+j]); DnCnt = DnCnt + (เปิด[i+j] - ต่ำ[i+j]) + (สูง[i+j] - ปิด[i+j]); } UpBuffer[ฉัน] = (UpCnt / (2 * ความลึก)) / จุด; DownBuffer[ฉัน] = (DnCnt / (2 * ความลึก)) / จุด; } return(0); } //+------------------------------------------------------------------+
|