hello my friends.
any one can help me to find the mql file of this indicator?
thanks a lot.
any one can help me to find the mql file of this indicator?
Attached File(s)
thanks a lot.
I will code your pivot EAs for no charge 25 replies
I will code your scalping EAs for no charge 163 replies
Oanda MT4 - Indicators and EAs not showing 2 replies
EAs and indicators relating to moutaki... 22 replies
InterbankFX has loaded its MT4 platform with custom EAs, indicators and scripts 1 reply
Dislikedhello my friends. any one can help me to find the mql file of this indicator? {file} thanks a lot.Ignored
Disliked{quote} Hi Metatrader or anyone else, Many thanks for the offer. Can you please code an EA for the Solar Wind Joy indicator (Period 35, Smooth 10 - MT4 5 digit broker) >0 + 1 bar closed Buy trade and <0 + 1 bar closed Sell trade. Previous trade shall be closed on the counter trade and vice versa. I also attach a screenshot. Cheers. {file} {file} {image}Ignored
DislikedCan you recommend or make multicurrency scanner on chart to use a custom indicator with buffers signal (buffer 0 - buy signal, buffer 1 - sell signal)? I think the attached indicator can be used to remake (I want the signals be sent not in alerts or email, but be on the chart, for example, as green and red squares or dots). {file}Ignored
//+------------------------------------------------------------------+ //| SilverTrend_Signal.mq5 | //| Ramdass - Conversion only | //+------------------------------------------------------------------+ #property copyright "SilverTrend rewritten by CrazyChart" #property link "http://viac.ru/" //---- indicator version #property version "1.00" //---- drawing the indicator in the main window #property indicator_chart_window //---- two buffers are used for calculation and drawing the indicator #property indicator_buffers 2 //---- only two plots are used #property indicator_plots 2 //+----------------------------------------------+ //| Bearish indicator drawing parameters | //+----------------------------------------------+ //---- drawing the indicator 1 as a symbol #property indicator_type1 DRAW_ARROW //---- red color is used for the indicator bearish line #property indicator_color1 Red //---- indicator 1 line width is equal to 4 #property indicator_width1 4 //---- displaying the bearish label of the indicator line #property indicator_label1 "Silver Sell" //+----------------------------------------------+ //| Bullish indicator drawing parameters | //+----------------------------------------------+ //---- drawing the indicator 2 as a line #property indicator_type2 DRAW_ARROW //---- lime color is used as the color of the bullish indicator line #property indicator_color2 Lime //---- indicator 2 line width is equal to 4 #property indicator_width2 4 //---- displaying the bullish label of the indicator line #property indicator_label2 "Silver Buy" //+----------------------------------------------+ //| Indicator input parameters | //+----------------------------------------------+ input int RISK=3; input int NumberofAlerts=2; //+----------------------------------------------+ //---- declaration of dynamic arrays that //---- will be used as indicator buffers double SellBuffer[]; double BuyBuffer[]; //---- int K,SSP=9; int counter=0; bool old,uptrend_; //---- declaration of the integer variables for the start of data calculation int StartBars; //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ void OnInit() { //---- initialization of variables of the start of data calculation StartBars=SSP+1; //---- set SellBuffer[] dynamic array as an indicator buffer SetIndexBuffer(0,SellBuffer,INDICATOR_DATA); //---- shifting the start of drawing the indicator 1 PlotIndexSetInteger(0,PLOT_DRAW_BEGIN,StartBars); //--- create a label to display in DataWindow PlotIndexSetString(0,PLOT_LABEL,"Silver Sell"); //---- indicator symbol PlotIndexSetInteger(0,PLOT_ARROW,108); //---- indexing the elements in the buffer as timeseries ArraySetAsSeries(SellBuffer,true); //---- set BuyBuffer[] dynamic array as an indicator buffer SetIndexBuffer(1,BuyBuffer,INDICATOR_DATA); //---- shifting the start of drawing the indicator 2 PlotIndexSetInteger(1,PLOT_DRAW_BEGIN,StartBars); //--- create a label to display in DataWindow PlotIndexSetString(1,PLOT_LABEL,"Silver Buy"); //---- indicator symbol PlotIndexSetInteger(1,PLOT_ARROW,108); //---- indexing the elements in the buffer as timeseries ArraySetAsSeries(BuyBuffer,true); //---- setting the format of accuracy of displaying the indicator IndicatorSetInteger(INDICATOR_DIGITS,_Digits); //---- name for the data window and the label for tooltips string short_name="SilverTrend_Signal"; IndicatorSetString(INDICATOR_SHORTNAME,short_name); //---- } //+------------------------------------------------------------------+ //| Custom indicator iteration function | //+------------------------------------------------------------------+ 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[]) { //---- checking the number of bars to be enough for the calculation if(rates_total<StartBars) return(0); //---- declarations of local variables int limit; double Range,AvgRange,smin,smax,SsMax,SsMin,price; bool uptrend; //---- calculations of the necessary amount of data to be copied //---- and the 'limit' starting index for the bars recalculation loop if(prev_calculated>rates_total || prev_calculated<=0)// checking for the first start of the indicator calculation { K=33-RISK; limit=rates_total-StartBars; // starting index for calculation of all bars } else { limit=rates_total-prev_calculated; // starting index for calculation of new bars } //---- indexing elements in arrays as timeseries ArraySetAsSeries(high,true); ArraySetAsSeries(low,true); ArraySetAsSeries(close,true); //---- restore values of the variables uptrend=uptrend_; //---- main indicator calculation loop for(int bar=limit; bar>=0; bar--) { //---- store values of the variables before running at the current bar if(rates_total!=prev_calculated && bar==0) { uptrend_=uptrend; } Range=0; AvgRange=0; for(int iii=bar; iii<=bar+SSP; iii++) AvgRange=AvgRange+MathAbs(high[iii]-low[iii]); Range=AvgRange/(SSP+1); //---- SsMax=low[bar]; SsMin=close[bar]; for(int kkk=bar; kkk<=bar+SSP-1; kkk++) { price=high[kkk]; if(SsMax<price) SsMax=price; price=low[kkk]; if(SsMin>=price) SsMin=price; } smin=SsMin+(SsMax-SsMin)*K/100; smax=SsMax-(SsMax-SsMin)*K/100; SellBuffer[bar]=0; BuyBuffer[bar]=0; if(close[bar]<smin) uptrend=false; if(close[bar]>smax) uptrend=true; if(uptrend!=old && uptrend==true) { BuyBuffer[bar]=low[bar]-Range*0.5; if(bar==0) { if(counter<=NumberofAlerts) { Alert("Silver Trend ",EnumToString(Period())," ",Symbol()," BUY"); counter++; } } else counter=0; } if(uptrend!=old && uptrend==false) { SellBuffer[bar]=high[bar]+Range*0.5; if(bar==0) { if(counter<=NumberofAlerts) { Alert("Silver Trend ",EnumToString(Period())," ",Symbol()," SELL"); counter++; } } else counter=0; } if(bar>0) old=uptrend; } //---- return(rates_total); } //+------------------------------------------------------------------+ //+------------------------------------------------------------------+
DislikedHi guys, I've gone through this thread and seen posts & comments from as far back as 2008 (when I was still barely leaving high school). I feel really honoured to be able to learn from everyone here, and grateful to you all who contribute here. I have come into a bit of a challenge. I have created an EA that GETs from a website using WebRequest(), and then processes the data to help make trades. However, I would like to process the data from the website visually into an indicator so that I can see the graphical representation of the data LIVE on...Ignored
DislikedHi guys, I've gone through this thread and seen posts & comments from as far back as 2008 (when I was still barely leaving high school). I feel really honoured to be able to learn from everyone here, and grateful to you all who contribute here. I have come into a bit of a challenge. I have created an EA that GETs from a website using WebRequest(), and then processes the data to help make trades. However, I would like to process the data from the website visually into an indicator so that I can see the graphical representation of the data LIVE on...Ignored
#include <files/file.mqh> void OnStart() { CFile f; int file_open_flags = FILE_CSV|FILE_READ|FILE_SHARE_READ|FILE_WRITE|FILE_SHARE_WRITE; int h = f.Open("file.csv", file_open_flags, ','); }
Disliked{quote} The reason you can't do webrequests from an indie is because all indicators run round-robin on a single thread so a hung request would block and freeze the platform. If all you are trying to do is visualize your data then perhaps you should consider python instead. Python would make light work out of this task. If you still want to continue down the road of hacking the terminal to be used for data-vis then your next step would be opening files as read/write/share. #include <files/file.mqh> void OnStart() { CFile f; int file_open_flags =...Ignored
Disliked{quote} It may be because of only 4 posts - suggest posting some complementary comments here and there to rack up some more posts - if does not work - > Ask twee - https://www.forexfactory.com/tweeIgnored
Disliked{quote} Hi Nicholishen, thank you for your response. I don't have much of an experience with Python. Could you please suggest any educational materials or articles that would help me achieve this task. I'm more than willing to learn. Also, if I understand you properly, your solution is that I use Python code to include an indicator in my EA, and use that for data visualization? I would really appreciate if you could explain further so I can break into steps. Thank youIgnored
DislikedHi, Can someone help me with my indicator idea. I have attached what I have so far. The idea is to create either a red box or a green box depending on whether the daily candle associated is bullish or not. What I have seems to work but I am sure that there is a better way to code it, and I want to learn proper habits. Also, the indicator does not seem to work in the mt4 strategy tester environment. I seem to remember custom indicators working in the strategy tester when I was testing EA's. Is there a way to make it work in the strategy tester? {file}...Ignored
#property strict #property indicator_chart_window #define DAYS_TO_PLOT 9 #define PADDING 10 #include <arrays/arrayobj.mqh> #include <chartobjects/chartobjectstxtcontrols.mqh> class TrendBox : public CChartObjectRectLabel { public: bool create(int num_days_ago, int size=25) { string name = "__trendbox__" + string(num_days_ago); int x_px = num_days_ago * size + PADDING; double open = iOpen(_Symbol, PERIOD_D1, num_days_ago); double close = iClose(_Symbol, PERIOD_D1, num_days_ago); color col = (close >= open) ? clrGreen : clrRed; bool parent_create = CChartObjectRectLabel::Create( ChartID(), //long chart_id, name, //const string name, 0, //const int window, x_px, //const int X, PADDING, //const int Y, size, //const int sizeX, size //const int sizeY ); parent_create &= ( this.Anchor(ANCHOR_RIGHT_UPPER) && this.Corner(CORNER_RIGHT_UPPER) && this.BackColor(col) ); return parent_create; } }; 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[]) { static CArrayObj garbage_collector; static datetime calc_day = 0; datetime current_day = iTime(_Symbol, PERIOD_D1, 0); if (calc_day != current_day) { calc_day = current_day; garbage_collector.Clear(); for (int i=DAYS_TO_PLOT; i>0; --i) { TrendBox *tb = new TrendBox(); garbage_collector.Add(tb); if (!tb.create(i)) { printf("Error creating chart object. Error=%d", GetLastError()); } } } return rates_total; }
DislikedWow thanks for your speedy and most excellent help Nicholisten. I will study what you have sent me to figure it all out. I already want to add variables for number of days to do and maybe later add week and month boxes. Thanks again.Ignored