Multi Timeframe Indicators - page 1205

 

That such people,


Someone can help me with this indicator, I would like to be able to edit it, but I will not do it, since I am not a programmer,


And it is so that you can mark the Profile Timeframe in H4, H1, 30m, 15m, 5m, and not only stay in the daily, weekly and monthly,


Clear that if it is not possible, just maybe get up to H4, H1,


I would greatly appreciate it.

 
please can you make this indicator Macd_with_crossing_v1.0m MTF? Draw Vertical Lines when candle closes. Will be highly Appreciated
 

Welcome,

  • Usually people who can't code don't receive free help on this forum, though it could happen if you are lucky, be patient.
  • If you show your attempts and describe well your problem, you will most probably receive an answer from the community.
  • If you don't want to learn to code, nothing bad, you can either look at the Codebase if something free already exists, or in the Market for paid products (sometimes free also).
  • Finally, you also have the option to hire a programmer in the Freelance section.
Good luck.
 
wiLson_djfx:

Try this one.


Wilson

This is the same indicator which I had posted dude. I wanted a Multi Symbol indicator.

 

True strength index

Could someone make this true-strength-index indicator into a multi time frame ver.

I have searched and could not find one,

Thanks in advance.

Files:
 

I'm trying to build an indicator that will alert me when a candle reaches a set size across multiple currency pairs and timeframes. With some prior assistance I managed to get it working across two timeframes on one currency pair (https://www.mql5.com/en/forum/207073). I've searched the forum and thought it was more appropriate to post in this thread for some further assistance/direction.

In time I'm hoping to add further indictors (such as ADX) to this indictor.

Thank you for your help.

Indictor alert multiple currency pairs and timeframes
Indictor alert multiple currency pairs and timeframes
  • 2017.07.03
  • www.mql5.com
I'm trying to build an indicator that will alert me when a candle reaches a set size across multiple currency pairs and timeframes...
Files:
 
greenpar :

I'm trying to build an indicator that will alert me when a candle reaches a set size across multiple currency pairs and timeframes. With some prior assistance I managed to get it working across two timeframes on one currency pair (https://www.mql5.com/en/forum/207073). I've searched the forum and thought it was more appropriate to post in this thread for some further assistance/direction.

In time I'm hoping to add further indictors (such as ADX) to this indictor.

Thank you for your help.

I fixed your program.

For multi-time frame and multi-pair, use the for loop as shown below.

However, since other parts will be changed, it is necessary to make substantial corrections.

 for ( int i = 0 ; i < 3 ; i++)
{
   for ( int j = 0 ; j < 3 ; j++)
   {
     double candleLow, candleHigh;
        candleLow = iLow (currencyPairs[i], timeFrame[j], 0 );
        candleHigh = iHigh (currencyPairs[i], timeFrame[j], 0 );
        range = int ((candleHigh - candleLow) / _Point );
        candleTime = iTime (currencyPairs[i], timeFrame[j], 0 );
   }
}
Files:
 
Naguisa Unada:

I fixed your program.

For multi-time frame and multi-pair, use the for loop as shown below.

However, since other parts will be changed, it is necessary to make substantial corrections.


Thank you once again for your help. I've incorporated the changes you outlined but I'm still having problems/errors (see attached file). It would be great if I could get some further guidance.

Thank you.

 
greenpar :

Thank you once again for your help. I've incorporated the changes you outlined but I'm still having problems/errors (see attached file). It would be great if I could get some further guidance.

Thank you.

I uploade a fixed program and a complete sample.
 
Naguisa Unada:
I uploade a fixed program and a complete sample.

Thank you once again for your help, I've rolled the changes in as suggest (see attached file and code below). I'm still getting numerous errors when compiling (see attached image of compile errors), I suspect it is to do with highlighted lines in the code below.

Please keep in mind that I am looking to incorporate other timeframes, currency pairs, and also other indicators eventually (such as ADX), within this indicator file.

Any further assistance would be greatly appreciated.

#property description   "Indicator alerts when candle size is larger than CandlePoint value for specified period"
#property strict

#property indicator_chart_window
#property indicator_buffers 0
#property indicator_plots 0


//+------------------------------------------------------------------+
//| Declaring Constants                                         |
//+------------------------------------------------------------------+
#define RESET 0

//+------------------------------------------------------------------+
//| Enumeration for the indication of operation                                         |
//+------------------------------------------------------------------+


//+------------------------------------------------------------------+
//| Input parameters of the indicator                                           |
//+------------------------------------------------------------------+
//--- Candle point size
input uint CandlePointM1 = 5;                   // Minimum candle points for Period M1
input uint CandlePointM5 = 5;                   // Minimum candle points for Period M5
int timeFrame[] = {PERIOD_M1, PERIOD_M5, PERIOD_H1};
string currencyPairs[] = {"AUDCAD", "AUDNZD", "AUDJPY", "AUDUSD"}

//+------------------------------------------------------------------+
//| Custom indicator initialisation function                                            |
//+------------------------------------------------------------------+
int OnInit()
{
return(INIT_SUCCEEDED);
}

//+------------------------------------------------------------------+
//| Deinitialisation                                            |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
{
}

//+------------------------------------------------------------------+
//| Custom 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[])


//+------------------------------------------------------------------+
//| Candle size indicator                                               |
//+------------------------------------------------------------------+
{
int range;
static datetime alertBar[] = {0, 0, 0}; // used for one alert/bar
datetime candleTime[3];

for(int i=0; i<3; i++)
        {
        for (int j=0 ;j<3 ;j++)
                {
                double candleLow, candleHigh;
                candleLow = iLow(currencyPairs[i],timeFrame[j],0);
                candleHigh = iHigh(currencyPairs[i],timeFrame[j],0);
                range = int((candleHigh-candleLow)/_Point);
                candleTime[j] = iTime(currencyPairs[i],timeFrame[j],0);

if (alertBar[j] != candleTime[j])
        {
        if (timeFrame[j] == PERIOD_M1 && range>int(CandlePointM1))
                {
                        Alert(currencyPairs[i], "PERIOD_M1", "candle >", CandlePointM1, "points");
                        alertBar[j] = candleTime[j];
                }
                if (timeFrame[j] == PERIOD_M5 && range>int(CandlePointM5))
                        {
                        Alert(currencyPairs[i], "PERIOD_M5", "candle >", CandlePointM5, "points");
                        alertBar[j] = candleTime[j];
                        }
                }
        }
}


Files:
Reason: