2 Lampiran Hai semuanya. Bagaimana saya bisa memperbaiki masalahnya.
Ini adalah indoor yang memiliki dua buffer MA (Moving Average). Saya ingin menggambar histogram antara dua buffer di jendela terpisah seperti gambar pertama tetapi menggambar histogram lengkap yang ditunjukkan pada gambar kedua.
Kode yang Dimasukkan/ --------------------------------------------- --------------------- /| 41.mq4 |/| Ali Mojtabaei. |/| https://telegram.me/mqlbyAliMojtabaei |/ ----------------------------------------------- ------------------- hak cipta #property Ali Mojtabaei. #property tautan https://telegram.me/mqlbyAliMojtabaei #property versi 1.00 #property ketat #property indior_chart_window #property indior_buffers 2 double A # 91; # 93; # 93; # 93;; int i, batasi;/ ----------------------------------------------- ------------------- /| Fungsi inisialisasi kustom bawah |/ ----------------------------------------------- ------------------- int OnInit () {SetIndexBuffer (0, A); SetIndexBuffer (1, B); SetIndexStyle (0, DRAW_HISTOGRAM, STYLE_ LAPORAN, 1, clrYellow); SetIndexStyle (1, DRAW_HISTOGRAM, STYLE_ LAPORAN, 1, clrRed); return (INIT_SUCCEEDED); }/ ---------------------------------------------- -------------------- /| Fungsi iterasi kustom bawah |/ ----------------------------------------------- ------------------- int OnCalculate (const int rates_total, const int prev_calculated, const dattime time # 91; # 93 ;, const double open # 91; # 93; , const double high # 91; # 93 ;, const double low # 91; # 93 ;, const double close # 91; # 93 ;, const long tick_volume # 91; # 93 ;, volume panjang const # 91; # 93; , sebaran const int # 91; # 93;) {limit = (rates_total - prev_calculated); if (prev_calculated == 0) limit--; untuk (i = 0; ilt; = batas; i ) {A # 91; i # 93; = iMA (Simbol (), PERIOD_CURRENT, 10,0, MODE_SMMA, PRICE_TYPICAL, i); B # 91; i # 93; = iMA (Simbol (), PERIOD_CURRENT, 100,0, MODE_SMMA, PRICE_TYPICAL, i); } SetIndexDrawBegin (0,100); SetIndexDrawBegin (1.100); return (rates_total); }/ ---------------------------------------------- --------------------
https://www.forexfabrikasi.com/tradi...r-rallies.html
https://www.forexfabrikasi.com/gener...inary-gdp.html