NO LINKS OR MQL SOURCE CODE REQUESTS. Please follow the rules.


Re: MT4 Indicator requests and ideas

#3652
In the image has an example of an indicator that sets the number of times the same color and it sends an alarm and then closes the cycle as in the photo.
Someone can create or indicate an indicator that does as in the photo where in the place of candles followed he has alternating candles.
I put the same candle indicator if anyone can convert it to alternate candles I would greatly appreciate it.

I'm trying to change this indicator that originally it alerts each color change, I want it to alert when I hear an X sequence of candles and preferably put a graphical indicator to be able to parse past charts.

Code: Select all


#property indicator_chart_window
extern string TimeFrameNote="0-CurrentTimeframe, 1-1MIN, 5-5MIN, 15-15MIN, 30-30MIN, 60-1H, 240-4H, 1440-D1, 10080-W1, 43200-MN1";
extern int  TimeFrame = 0;
extern bool Alerts_ON = true;

int
   candle = 0;

datetime LastAlarmTime;

//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init() 
  {
   LastAlarmTime = TimeCurrent();
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function                       |
//+------------------------------------------------------------------+
int deinit() 
  {
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int start()
  {
   
   int counter;
   string TimeFrameStr; 
//----
   switch(TimeFrame)
     {
      case 0 : TimeFrameStr="Period "+Period(); break;
      case 1 : TimeFrameStr="Period_M1"; break;
      case 5 : TimeFrameStr="Period_M5"; break;
      case 15 : TimeFrameStr="Period_M15"; break;
      case 30 : TimeFrameStr="Period_M30"; break;
      case 60 : TimeFrameStr="Period_H1"; break;
      case 240 : TimeFrameStr="Period_H4"; break;
      case 1440 : TimeFrameStr="Period_D1"; break;
      case 10080 : TimeFrameStr="Period_W1"; break;
      case 43200 : TimeFrameStr="Period_MN1"; break;
     }   
   RefreshRates();
  // int secondsleft = Time[0]+Period()*60-TimeCurrent();
  // int SecondsElaps = TimeCurrent()-Time[0];

   if( LastAlarmTime < Time[0] && Alerts_ON && ChangeColorOk() != "" ){
    Alert( ChangeColorOk() + " " + Symbol() + " " + TimeFrameStr );
    PlaySound("alert.wav");
    LastAlarmTime = Time[0];
   }  
   return(0);
  }
//+------------------------------------------------------------------+
string ChangeColorOk(){
 
 
 string str="";
   if( iClose(Symbol(),PERIOD_CURRENT,1)< iOpen(Symbol(),PERIOD_CURRENT,1) && 
       iClose(Symbol(),PERIOD_CURRENT,2)> iOpen(Symbol(),PERIOD_CURRENT,2 ) )
       {
    candle++;}   
   if( iClose(Symbol(),PERIOD_CURRENT,1)> iOpen(Symbol(),PERIOD_CURRENT,1) && 
       iClose(Symbol(),PERIOD_CURRENT,2)< iOpen(Symbol(),PERIOD_CURRENT,2 ) )
       {
    candle++;}
    if (candle == 2){
    string srt = "8 Velas em sequência";
    candle = 0;
    return(str);}   
   else candle = 0;
return(str);
}

Original code:

Code: Select all

#property copyright "Copyright © 2016 shahed58"
#property link      ""

#property indicator_chart_window
extern string TimeFrameNote="0-CurrentTimeframe, 1-1MIN, 5-5MIN, 15-15MIN, 30-30MIN, 60-1H, 240-4H, 1440-D1, 10080-W1, 43200-MN1";
extern int  TimeFrame = 0;
extern bool Alerts_ON = true;
extern string SoundWAV = "woody2.wav";

datetime LastAlarmTime;

//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init() 
  {
   LastAlarmTime = iTime(Symbol(),TimeFrame,0);
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator deinitialization function                       |
//+------------------------------------------------------------------+
int deinit() 
  {
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int start()
  {
   
   int counter;
   string TimeFrameStr; 
//----
   switch(TimeFrame)
     {
      case 0 : TimeFrameStr="Period "+Period(); break;
      case 1 : TimeFrameStr="Period_M1"; break;
      case 5 : TimeFrameStr="Period_M5"; break;
      case 15 : TimeFrameStr="Period_M15"; break;
      case 30 : TimeFrameStr="Period_M30"; break;
      case 60 : TimeFrameStr="Period_H1"; break;
      case 240 : TimeFrameStr="Period_H4"; break;
      case 1440 : TimeFrameStr="Period_D1"; break;
      case 10080 : TimeFrameStr="Period_W1"; break;
      case 43200 : TimeFrameStr="Period_MN1"; break;
     }   
   RefreshRates();
  // int secondsleft = Time[0]+Period()*60-TimeCurrent();
  // int SecondsElaps = TimeCurrent()-Time[0];

   if( LastAlarmTime < Time[0] && Alerts_ON && ChangeColorOk() != "" ){
    Alert( ChangeColorOk() + " " + Symbol() + " " + TimeFrameStr );
    PlaySound(SoundWAV);
    LastAlarmTime = iTime(Symbol(),TimeFrame,0);
   }  
   return(0);
  }
//+------------------------------------------------------------------+
string ChangeColorOk(){
 string str="";
   if( iClose(Symbol(),PERIOD_CURRENT,1)< iOpen(Symbol(),PERIOD_CURRENT,1) && 
       iClose(Symbol(),PERIOD_CURRENT,2)> iOpen(Symbol(),PERIOD_CURRENT,2 ) ){
    str = "RED";   
   }    
       
   if( iClose(Symbol(),PERIOD_CURRENT,1)> iOpen(Symbol(),PERIOD_CURRENT,1) && 
       iClose(Symbol(),PERIOD_CURRENT,2)< iOpen(Symbol(),PERIOD_CURRENT,2 ) ){
    str = "GREEN";   
   }    
 return str;     
}
Captura de tela_2018-06-24_17-41-04.png
Captura de tela_2018-06-24_17-39-43.png

Re: MT4 Indicator requests and ideas

#3653
PROSPECTING HELP.
I have tried to adapt this indicator to search for the moves in higher ADR charts over 100 pips: (EA, EC, EJ, GA, GC & GU).
As I am not a coder I cannot get it to change and 'lose' the other currencies.
QUESTIONS.
1. Can someone adapt this indicator so that it only shows the pairs above? or
2. Is there a strength prospector that can be adapted for specific pairs?
The idea is simple to get the biggest moves on the biggest moving charts.
Help much appreciated.
TEAMTRADER
CurrencyMeterSMALL.mq4
(80.26 KiB) Downloaded 474 times

Re: MT4 Indicator requests and ideas

#3654
Hi @mrtools Sir,

Sir needed the options present in MHL average oscillator to DPO indicator in terms of display as option...
2018-06-28_14-26-46.jpg
Could this Display as be added to DPO indicator??
Please do the needful Sir..
DPO.mq4
(1.54 KiB) Downloaded 367 times
MHL average oscillator 1.1.mq4
(9.32 KiB) Downloaded 402 times
Your dedication to the craft of trading is constantly tested by the demons of fear and greed

Re: MT4 Indicator requests and ideas

#3655
hey guys,

simple request: what is the best indicator plotting horizontal line(s) at session's open (e.g. London) ? Need it to be adjustable, with alert suite when price drops below/above. I'm sure it's been done and posted. Thank you.


Re: MT4 Indicator requests and ideas

#3656
Dearest Mrtools
"PA i-cai dsjma alerts"
This is one of your posted ver indicator since long ago (2011)
do you think new 9 MA methods can be added,if possible
regards
EURUSDH1.png
p.png
PA i-cai dsjma alerts.ex4
(43.84 KiB) Downloaded 451 times
Indicator is just a tool.

Use it only if it can benefit you. Leave it if you don't know how to use it optimally.

Re: MT4 Indicator requests and ideas

#3657
mntiwana wrote:
Fri Jun 29, 2018 4:58 am
Dearest Mrtools
"PA i-cai dsjma alerts"
This is one of your posted ver indicator since long ago (2011)
do you think new 9 MA methods can be added,if possible
regards
Replace the jurik with the ma's?

Re: MT4 Indicator requests and ideas

#3660
Ajiboyf wrote:
Fri Jun 29, 2018 4:57 pm
Hell All,
TGIF, Mr Tools,
Please assist to at arrows to the PTL Histogram, if you have time please add latest price and MA Methods if practicality allows.
The indicator needs arrows.
As far as adding the latest prices and ma methods due to the way the indicator calculates it's not possible. about the arrows isn't the lines enough?


  1. Similar Topics

    1. Double Heading + Zigzag swing trading binary & forex ideas

      12 Replies 6529 Views

      by sal, Sun Dec 20, 2020 10:08 pm in Trading Systems

      12 Replies
      6529 Views
    2. Support Resistance strategy & Ideas

      9 Replies 2900 Views

      by sal, Sun Jul 18, 2021 10:29 pm in Trading Systems

      9 Replies
      2900 Views
    3. Forex News Indicator MT4 and MT5

      0 Replies 434 Views

      by pruso, Thu Aug 26, 2021 8:14 pm in Commercial Services

      0 Replies
      434 Views

Return to “MT4 Indicators”

Users viewing this forum: alextschem, andrei-1, Austin3, axelush, BOLBAM, bubu3088, cheburashka, CommonCrawl [Bot], KDBrown, kvak, lyo99, mrtools, myrel, Nadir CHAABANE, naluvs01, ossy123, Packman, Rabi, rnicholas, rogerha, talaate, Telegram [Bot], Thangarasu, twix, yoki and 60 guests