Forex Factory (https://www.forexfactory.com/)
-   Platform Tech (https://www.forexfactory.com/forum/69-platform-tech)
-   -   I will code your EAs and Indicators for no charge (https://www.forexfactory.com/thread/166758-i-will-code-your-eas-and-indicators-for)

mchl13 Oct 19, 2020 5:53am | Post# 40461

1 Attachment(s)
can someone make an MTF version of the attached Volatility-pivot indicator

Thank you in advance
Volatility.Pivot.mq4

areteus Oct 19, 2020 5:55am | Post# 40462

{quote} "stochastic divergence mtf alerts nmc 2" Try this of Mladen's extremely extended ver regarding divergences - almost mtf (not interpolated yet) draw lines identifier capable (means users can apply multiple instances by differing ID,by adding any name or number) choice for ma methods for signaling notification included too latest mt4 compatible ver the lowest sw in picture {image} {image} {image} {file}
Would ypu please post the indicator or show the adress of the indicator to download?

dajo77 Oct 19, 2020 6:10am | Post# 40463

1 Attachment(s)
Can someone drop this moving average indicator or give me the name. I saw it already somewhere but cant remember.

Thanks
Click to Enlarge

Name: Eis-xl9XsAIhSjx.jpg
Size: 105 KB

classy Oct 19, 2020 6:51am | Post# 40464

i am looking for one momentum indicator dashboard which show all pair color green red above or below 100 line

junel1988 Oct 19, 2020 7:47am | Post# 40465

{quote} I added alert that will check once per hour and if price has crossed compared to price of 1 hr ago. {file}
Thank you very much @BlueRain for your effort, I really appreciate that you took the time to code this.
I looked at the code and there's no way for me to understand how it works.

I tried it today on 21pairs.
Unfortunately, there was no alert/notification generated even though several pairs crossed the horizontal lines.
If you have the time, can you please take a look at it.

Can you please also set it to alert/notify on real-time, but limit to 1alert/hr.
I'm not sure if you have already added this option.


I found a similar indicator on AdmiralFx but it lacks the function "push notification" which I would like to have and it's in ex4 format.

AkuMK Oct 19, 2020 8:04am | Post# 40466

3 Attachment(s)
Hi and G'day.

This indicator, MA_Bbands is recalculating indicator (repaint). But, it's not so bad if we change shift to 0.
However, sometimes it gave good signal and sometimes it goes crazy, then normal back.

Below attached the .mq4 and example of live signal, I took screenshot during live chart while it's running.

Is it possible to make this indicator calculate right without go crazy and/or non-recalculate after candle close?
Or is that its nature to go crazy sometimes?

Thanks.

Its coding for fast read:
Inserted Code
//+------------------------------------------------------------------+
//|                                               MA_BBands_V3.2.mq4 |
//|                   Copyright 2005-2014, MetaQuotes Software Corp. |
//|                                              http://www.mql4.com |
//|                                        E-MAIL:[email protected]    |
//+------------------------------------------------------------------+
#property copyright   "2005-2014, MetaQuotes Software Corp."
#property link        "http://www.mql4.com"
#property indicator_chart_window
#property indicator_buffers 5
#property indicator_color1 White
#property indicator_color2 White
#property indicator_color3 Blue
#property indicator_color4 Red
#property indicator_color5 Yellow
 
#property  indicator_width1  2
#property  indicator_width2  2
#property  indicator_width3  1
#property  indicator_width4  1
#property  indicator_width5  1

extern int MAPeriod = 9 ;
extern int OsMA = 3 ;//5 
extern int HiLow_Find_Period = 3;//5;9
//-------------------------
extern double Bands_Deviations = 0.4 ; //0.5;0.8;1.0
extern int BB_Period = 20 ;
extern int Dist = 2 ;
//-------------------------
double ExtMapBuffer1[];
double ExtMapBuffer2[];
double ExtMapBuffer3[];
double ExtMapBuffer4[];
double ExtMapBuffer5[];
double ExtMapBuffer6[];
double ExtMapBuffer7[];
double Get_Point;
//-------------------
int init()
  {
  
   IndicatorBuffers(7);
   
   SetIndexStyle(0,DRAW_LINE);
   SetIndexBuffer(0,ExtMapBuffer5);   
   SetIndexStyle(1,DRAW_LINE);
   SetIndexBuffer(1,ExtMapBuffer6);     
     
   SetIndexStyle(2,DRAW_ARROW);
   SetIndexArrow(2,233);
   SetIndexBuffer(2,ExtMapBuffer3);
   SetIndexEmptyValue(2,0.0);
   
   SetIndexStyle(3,DRAW_ARROW);
   SetIndexArrow(3,234);
   SetIndexBuffer(3,ExtMapBuffer4);
   SetIndexEmptyValue(3,0.0);
   
   SetIndexStyle(4,DRAW_LINE);
   SetIndexBuffer(4,ExtMapBuffer7); 
   
   SetIndexStyle(5,DRAW_NONE);
   SetIndexBuffer(5,ExtMapBuffer1);
   
   SetIndexStyle(6,DRAW_NONE);
   SetIndexBuffer(6,ExtMapBuffer2);   
   
   
    if(Digits==2 || Digits==4) Get_Point=Point;
    else if(Digits==3 || Digits==5) Get_Point=10*Point; 
   
   return(0);
  }
//----------------------------------------
 
int deinit()
  {return(0);}
//---------------------------------------- 
int start()
  { 
  Comment( " MA_BBands_V3.2" );  
    int counted_bars=IndicatorCounted();    
    if(counted_bars<0) return(-1); 
    if(counted_bars>0) counted_bars--;
    int limit=Bars-counted_bars;   
    double OsMA_Now, OsMA_Pre; 
    
    for(int i=limit-1; i>=0; i--)    
     {           
           double MAUP1 = iMA(NULL,0,MAPeriod,-15,MODE_SMA,PRICE_HIGH,i); 
           double BB_UP = iBands(NULL,0,BB_Period,Bands_Deviations,0,PRICE_HIGH,MODE_UPPER,i+4);
           double MA_HIGH = iMA(NULL,0,HiLow_Find_Period,0,MODE_LWMA,PRICE_HIGH,i);  
           
           double MADN1 = iMA(NULL,0,MAPeriod,-15,MODE_SMA,PRICE_LOW,i); 
           double BB_DN = iBands(NULL,0,BB_Period,Bands_Deviations,0,PRICE_LOW ,MODE_LOWER,i+4);
           double MA_LOW = iMA(NULL,0,HiLow_Find_Period,0,MODE_LWMA,PRICE_LOW,i);  
           
           double SEC_UP = iMA(NULL,0,9,-7,MODE_SMA,PRICE_HIGH,i); 
           double SEC_DN = iMA(NULL,0,9,-7,MODE_SMA,PRICE_LOW,i); 
       
//--------------------------------------------------------------------        
         if (MAUP1>BB_UP) {ExtMapBuffer1[i]=MAUP1+Dist*Get_Point; BB_UP=EMPTY_VALUE ;}     
         else if (MAUP1<BB_UP) {ExtMapBuffer1[i]=BB_UP ; MAUP1=EMPTY_VALUE ;}
                              
         if( MADN1 >0.0 ) 
         {
          if ( MADN1<BB_DN)  {ExtMapBuffer2[i]=MADN1-Dist*Get_Point; BB_DN=EMPTY_VALUE ;}                        
          else if (MADN1>BB_DN) { ExtMapBuffer2[i]=BB_DN ; MADN1=EMPTY_VALUE ; }
         }
       
         if (MADN1 ==0.0 ) { ExtMapBuffer2[i]=BB_DN; MADN1=EMPTY_VALUE ;}          
//------------------------------------------------------------
//------------------------------------------------------------
 
         if (SEC_UP>ExtMapBuffer1[i]) {ExtMapBuffer5[i]=SEC_UP+Dist*Get_Point; ExtMapBuffer1[i]=EMPTY_VALUE ;}     
         else if (SEC_UP<ExtMapBuffer1[i]) {ExtMapBuffer5[i]=ExtMapBuffer1[i] ; SEC_UP=EMPTY_VALUE ;}
                              
         if( SEC_DN >0.0 ) 
         {
          if ( SEC_DN<ExtMapBuffer2[i])  {ExtMapBuffer6[i]=SEC_DN-Dist*Get_Point; ExtMapBuffer2[i]=EMPTY_VALUE ;}                        
          else if (SEC_DN>ExtMapBuffer2[i]) { ExtMapBuffer6[i]=ExtMapBuffer2[i] ; SEC_DN=EMPTY_VALUE ; }
         }
       
         if (SEC_DN ==0.0 ) { ExtMapBuffer6[i]=ExtMapBuffer2[i]; SEC_DN=EMPTY_VALUE ;}  

//------------------------------------------------------------
      
       OsMA_Now = iOsMA(NULL,0,5,9,OsMA,PRICE_CLOSE,i) ;
       OsMA_Pre = iOsMA(NULL,0,5,9,OsMA,PRICE_CLOSE,i+1) ;
//-------------------
       if((OsMA_Now>0 && OsMA_Pre<0)&&(MA_LOW < ExtMapBuffer6[i]) && (Low[i] < ExtMapBuffer6[i]))
       //if((OsMA_Now>0 && OsMA_Pre<0)&&(MA_LOW < ExtMapBuffer6[i]) && (Close[i] < ExtMapBuffer6[i]))
       {
        ExtMapBuffer3[i+1] = Low[i]-2*Get_Point;
       }
              
       if((OsMA_Now<0 && OsMA_Pre>0) && (MA_HIGH > ExtMapBuffer5[i]) && (High[i] > ExtMapBuffer5[i]))
      //if((OsMA_Now<0 && OsMA_Pre>0) && (MA_HIGH > ExtMapBuffer5[i]) && (Close[i] > ExtMapBuffer5[i]))
       {
        ExtMapBuffer4[i+1] = High[i]+2*Get_Point;
       }  
       
       ExtMapBuffer7[i]=(ExtMapBuffer5[i]+ExtMapBuffer6[i])/2.0 ;
       
        
     } 
     
        WindowRedraw();
        RefreshRates(); 
     
   return(0);
   
  } 
//--------------------------------
MA_BBands_v3.2.mq4
Click to Enlarge

Name: mb1.png
Size: 553 KB
Click to Enlarge

Name: mb2.JPG
Size: 187 KB

mntiwana Oct 19, 2020 8:31am | Post# 40467

{quote} Would ypu please post the indicator or show the adress of the indicator to download?
I do not understand you exact or you are not describing well enough,anyway indicator is there at bottom (307 downloads already)

djorshuar Oct 19, 2020 9:18am | Post# 40468

I need a coder to help me code this indicator below in a way that it only displays from left of the mt4 chart to the current time in price and not extend to the far right hand side of the mt4 chart. Thanks {file}
Someone should plz help me with this request.

talisean Oct 19, 2020 10:30am | Post# 40469

does anyone have a simple moving average or linear weighted moving average that is coded not using "iMA". i would like to see the code as i am learning mql4 and trying to build things from scratch so that i can learn well. unfortunately most mt4 indicators use the built in mql4 shortcuts which doesn't let me understand what they are doing deeply. failing that could someone code me a simple moving average or lwma that only uses "for loops" and normal "c" like functions, and not "ima" thank you.

bdunn Oct 19, 2020 11:05am | Post# 40470

{quote} Here is demo version that should work for you as sample. Please use as reference and you can fix yours. You can modify where you calculate MA to get typical_price. I just used period of 1 to get typical price MA. Or you can calcurate yourself like Typical price = (high + low + close)/3 basically, you have to have two buffers - one for red and one for green. now, check vol * typical price for privious bar and current bar. if current bar is bigger -> store in Buffer 1 ( green ) if current bar is smaller -> store in Buffer 2 ( red ) that is...
@BlueRain

Thanks mate for the help.

tommydoginti Oct 19, 2020 11:56am | Post# 40471

does anyone have a simple moving average or linear weighted moving average that is coded not using "iMA". i would like to see the code as i am learning mql4 and trying to build things from scratch so that i can learn well. unfortunately most mt4 indicators use the built in mql4 shortcuts which doesn't let me understand what they are doing deeply. failing that could someone code me a simple moving average or lwma that only uses "for loops" and normal "c" like functions, and not "ima" thank you.
Those equations are written on many webpages teaching people about how the indicators are calculated. Then you can simply translate the equation into MQL4. Just search for them.

I also practiced that by writing the equations into TradingView. ‘Cause I was to overlaying a Renko chart on time-based candle chart, so for any MAs for Renko, I had to program them manually

talisean Oct 19, 2020 12:16pm | Post# 40472

if using iMA https://docs.mql4.com/indicators/ima how would one use other prices apart from ENUM_APPLIED_PRICE https://docs.mql4.com/constants/indi...ied_price_enum ? i would like to make my own price constant to apply ie (open+close+high+low)/4. ty

yogesh0405 Oct 19, 2020 12:29pm | Post# 40473

if using iMA https://docs.mql4.com/indicators/ima how would one use other prices apart from ENUM_APPLIED_PRICE https://docs.mql4.com/constants/indi...ied_price_enum ? i would like to make my own price constant to apply ie (open+close+high+low)/4. ty
use https://www.nseindia.com/ There derivatives nifty options data

talisean Oct 19, 2020 12:40pm | Post# 40474

{quote} use https://www.nseindia.com/ There derivatives nifty options data
thankyou. i dont mean other data sources than metatrader i mean other price constants in the code apart from the ones provided in "enum_applied_price". i would like to take the data in metatrader and make my own "applied_price" and put that in iMA. ty

talisean Oct 19, 2020 1:07pm | Post# 40475

{quote} Those equations are written on many webpages teaching people about how the indicators are calculated. Then you can simply translate the equation into MQL4. Just search for them. I also practiced that by writing the equations into TradingView. ‘Cause I was to overlaying a Renko chart on time-based candle chart, so for any MAs for Renko, I had to program them manually
ty i thought as much. im just trying to shorten the learning curve as i am a very green coder

jeanlouie Oct 19, 2020 3:37pm | Post# 40476

does anyone have a simple moving average or linear weighted moving average that is coded not using "iMA"....
Get started on something yourself quickly. Start a new indicator, put in 1 buffer line, in the oncalc candle loop give that buffer the values of the close of every candle, thats the simplest buffer line that'll show up on the chart, that's a start to doing whatever you want. Next step is make your own simple moving average, every index in that buffer will have your inbuilt sma value at that index in the chart. You'll need a separate function for it, how would you do a sma function?

Yeehc Oct 19, 2020 4:32pm | Post# 40477

1 Attachment(s)
HI DEAR CODERS, anyone can modify this indicator into MTF ? Thanks!
BrainTrend2.mq4

Thiagot10 Oct 19, 2020 5:28pm | Post# 40478

1 Attachment(s)
{quote} Get started on something yourself quickly. Start a new indicator, put in 1 buffer line, in the oncalc candle loop give that buffer the values of the close of every candle, thats the simplest buffer line that'll show up on the chart, that's a start to doing whatever you want. Next step is make your own simple moving average, every index in that buffer will have your inbuilt sma value at that index in the chart. You'll need a separate function for it, how would you do a sma function?

friend can add arrow on the graph in this indicator please?

Cycle identifier wAlert.mq4
friend can add arrow on the graph in this indicator please?

solorik Oct 19, 2020 6:13pm | Post# 40479

Good day Everyone,
just need your help in a numerical indicator to draw in "Separate Window" line or histogram

with this simple equation : ( moving1 - moving2 ) / ATR

Wezsniper Oct 19, 2020 7:23pm | Post# 40480

Hello everyone and coder
Any volunteer coder can code this sample strategy as signal indicator ?

https://www.forexfactory.com/thread/...rategy-call-50


thanks a lot


© Forex Factory