Re: MT4 Indicator requests and ideas

3311
Dimitri wrote: Fri Apr 20, 2018 12:43 am Dear Friend,
Thank You for your prompt reaction. I am attaching a picture to show an approach of the "Angles". If there is any other question please info.
Best Regards
Dimitri
Dearest Mladen, MrTools & Mntiwana,
I would very much appreciate any answer (positive or negative) to above request.
Thank you again for any reply.
Best Regards
Dimitri


Re: MT4 Indicator requests and ideas

3314
Dimitri wrote: Fri Apr 27, 2018 8:50 pm Dear Mntiwana,
I would like to ask you if there is any Indicator that "Calculates the Candle BODY Size" and draw two lines, one for the "Biggest" and the other for the "Smallest" Body Size for the last "x" periods (candles) ... ????
Thank for your attention and reply.
Best Regards
Dimitri
Do you means like this
other wise post a picture of your idea,mind reading is really hard
Attachments
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

3315
Dear Mntiwana,
Thank you for your reply. I am attaching the requested picture. The requested Indicator, must show, in separate window, two lines. One line will represent the "Biggest Body Size" and the other will draw the "Lowest Body Size", for the requested period of time, in our case period is 20. So we must find the Biggest and the Smallest BODY for the period (Bars) we are interested. The lines will represent the "Biggest" and the "Smallest" Body Size for the requested period. Hope it is enough clear, in case there is any additional question please ask ....
Thank you any way for your cooperation and interest.
Best Regards
Dimitri
Attachments


Re: MT4 Indicator requests and ideas

3316
Dimitri wrote: Sat Apr 28, 2018 4:30 am Dear Mntiwana,
Thank you for your reply. I am attaching the requested picture. The requested Indicator, must show, in separate window, two lines. One line will represent the "Biggest Body Size" and the other will draw the "Lowest Body Size", for the requested period of time, in our case period is 20. So we must find the Biggest and the Smallest BODY for the period (Bars) we are interested. The lines will represent the "Biggest" and the "Smallest" Body Size for the requested period. Hope it is enough clear, in case there is any additional question please ask ....
Thank you any way for your cooperation and interest.
Best Regards
Dimitri
This one was posted by bilbao in back dates - but it is not what you required - :)
Attachments
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

3317
Can someone please fix this. Thanks.


Code: Select all

//+------------------------------------------------------------------+
//|                                                Corrected SMA.mq4 |
//|                                      Copyright © 2007, Amir Aliev |
//|                                       |
//+------------------------------------------------------------------+
#property copyright "Copyright © 2007, Amir Aliev"
#property link      ""
//----
#property indicator_chart_window
#property indicator_color1 Red
//---- input parameters
extern int MA_Ticks = 10000;
extern int MA_Shift = 0;
extern int MA_Start = 500;
//---- indicator buffers
double ExtMapBuffer[];
double ExpVolBuffer[];
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int init()
  {
//----
   SetIndexStyle(0, DRAW_LINE);
   SetIndexShift(0, MA_Shift);
   IndicatorBuffers(2);
//---- indicator buffers mapping
   SetIndexBuffer(0, ExtMapBuffer);
   SetIndexBuffer(1, ExpVolBuffer);
   SetIndexDrawBegin(0, 0);  
//---- initialization done
   return(0);
  }
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int start()
  {
   int counted_bars = IndicatorCounted();
   int rest  = Bars - counted_bars;
   int restt = Bars - counted_bars;
   double sum;                               
   int ts;                                   
   int evol;                                 
   int volsum;
   int j;
//----
   while(restt >= 0)
     {
       volsum = 0;
       for(int k = 0; k < 30; k++) 
           volsum += iVolume(NULL, 0, restt + k*24); 
       ExpVolBuffer[restt] = volsum / 30;
       restt--;
     }
//----
   while(ExpVolBuffer[rest] == 0 && rest >= 0) 
       rest--;
   rest -= MA_Ticks / 200;
   if(rest > MA_Start) 
       rest = MA_Start;  
//----
   while(rest >= 0)
     {
       sum = 0;
       ts = 0;
       j = rest;
       while(ts < MA_Ticks)
         {
           evol = ExpVolBuffer[j];
           Print("Evol = ", evol);
           if(ts + evol < MA_Ticks)
             {
               sum += evol * Open[j];
               ts += evol;
             }
           else
             {
               sum += (MA_Ticks - ts) * Open[j];
               ts = MA_Ticks;
             }
           j++;
         }
       ExtMapBuffer[rest] = sum / MA_Ticks;
       rest--;
     }   
//----
   return(0);
  }
//+------------------------------------------------------------------+

Re: MT4 Indicator requests and ideas

3319
Hello mladen , mrtools , mntiwana , Jimmy and all...

i tried to explain with chart. it is like rate of change indicator. it will draw histogram like candlesticks.
i added also the indicator, there are lots of roc or similar indicators. but i didnt find like this.
minimum TF : D1
"0" line is open.
it will draw high/low wicks


is there any indicator like this? or is it possible to code it?


Who is online

Users browsing this forum: ChatGPT [Bot], DVanAssen, kvak, mrtools, talaate, TransparentTrader and 76 guests