Change the color of the candles Indicator For MT5
Table Of Contents:
- Change the color of the candles Indicator For MT5
- Change the color of the candles Indicator For MT5 स्थापित करना
- Change the color of the candles Indicator For MT5 पैरामीटर
- Change the color of the candles Indicator For MT5 के Change the color of the candles Indicator For MT5
- संहिता के मुख्य भाग
Change the color of the candles Indicator For MT5 यह एक शानदार उत्पादक और तकनीकी व्यापारिक उपकरण है जो व्यापारियों के लिए व्यापार के अनुभव को बढ़ाने के लिए डिज़ाइन किया गया है ताकि उन्हें बाजार का विश्लेषण करने के लिए एक आसान विधि का एहसास हो सके। यह विशेष संकेतक एक रंगीन संकेतक है जो व्यापारी को दिन के कुछ समय के दौरान अपने कैंडलस्टिक्स के रंगों को संशोधित करने की स्वतंत्रता देता है - यह कई मामलों में एक सुरुचिपूर्ण तकनीकी व्यापारिक उपकरण है, हालांकि यह व्यापारियों को संकेतों के साथ प्रदान करने के लिए डिज़ाइन नहीं किया गया था हालांकि यह था बस व्यापारियों के लिए व्यापार के अनुभव को बेहतर बनाने के लिए डिज़ाइन किया गया है। इसलिए एक संभावित शानदार अनुप्रयोग जो एक व्यापारी इस संकेतक का उपयोग करने के बारे में जा सकता है, प्रत्येक व्यापारिक सत्र के लिए एक निश्चित रंग योजना आवंटित करके है ताकि एशियाई सत्र के लिए व्यापारी के पास एक विशिष्ट रंग योजना हो, लंदन सत्र के लिए व्यापारी के पास एक और रंग योजना होगी और न्यूयॉर्क या संयुक्त राज्य अमेरिका के सत्र के लिए एक और रंग योजना होगी - इसलिए इस सरल रणनीति से व्यापारियों को विभिन्न व्यापारिक सत्रों के बीच आसानी से अंतर करने में मदद मिलेगी।
Change the color of the candles Indicator For MT5 स्थापित करना
आपके द्वारा उपर्युक्त फ़ॉर्म के माध्यम से संकेतक डाउनलोड करने के बाद आपको ज़िप-फ़ाइल को अनज़िप करना होगा। तो फिर तुम फाइल कॉपी करने की जरूरत है candles_color.mq5 फ़ोल्डर में MQL5Indicators अपने की MT5 स्थापना। उसके बाद कृपया MT5 को पुनः आरंभ करें और फिर आप संकेतक की सूची में संकेतक देख पाएंगे।
Change the color of the candles Indicator For MT5 पैरामीटर
Change the color of the candles Indicator For MT5 पास कॉन्फ़िगर करने के लिए 10 पैरामीटर हैं।
input int Start_Day=4; // Starting Day for show input int Start_Hour=6; // Starting Hour of day input int Start_Minute=0; // Starting Minute of hour input int End_Day=4; // End of Day input int End_Hour=20; // End Hour of day input int End_Minute=59; // End Hour of day input color Color_Bar_Up_1=clrPowderBlue; input color Color_Bar_Down_1=clrBisque; input color Color_Bar_Up_0=clrGreen; input color Color_Bar_Down_0=clrRed;
Change the color of the candles Indicator For MT5 के Change the color of the candles Indicator For MT5
Change the color of the candles Indicator For MT5 5 बफ़र्स प्रदान करता है।
SetIndexBuffer(0,buf_open,INDICATOR_DATA); SetIndexBuffer(1,buf_high,INDICATOR_DATA); SetIndexBuffer(2,buf_low,INDICATOR_DATA); SetIndexBuffer(3,buf_close,INDICATOR_DATA); SetIndexBuffer(4,buf_color_line,INDICATOR_COLOR_INDEX);
संहिता के मुख्य भाग
int OnCalculate(const int rates_total, const int prev_calculated, const datetime &time[], const double &open[], const double &high[], const double &low[], const double &close[], const long &tick_volume[], const long &volume[], const int &spread[]) { MqlDateTime time_now; // define time struc //In the loop we fill the data buffers and color indexes buffers for each bar for(int i=prev_calculated;i lt =rates_total-1;i++) { //Set data for plotting buf_open[i]=open[i]; buf_high[i]=high[i]; buf_low[i]=low[i]; buf_close[i]=close[i]; datetime candle_time=time[i]; TimeToStruct(time[i],time_now); // change time to struct if((time_now.day_of_week gt =Start_Day && time_now.hour gt =Start_Hour && time_now.min gt =Start_Minute) && (time_now.day_of_week lt =End_Day && time_now.hour lt =End_Hour && time_now.min lt =End_Minute)) { // if time between start day and end of day if(open[i] gt =close[i]) //if open gt = close set color index 3 buf_color_line[i]=3;//Assign the bar with color index, equal to 3 else buf_color_line[i]=2;//Assign the bar with color index, equal to 2 } // if time isn t between start day and end of day else { if(open[i] gt =close[i]) //if open gt = close set color index 1 buf_color_line[i]=1;//Assign the bar with color index, equal to 1 else buf_color_line[i]=0;//Assign the bar with color index, equal to 0 } } return(rates_total-1); } //+------------------------------------------------------------------+