Indicators: Didi Index - page 2

 
Rogerio Giannetti Torres:

Eita !!!!

It's right here, click on the link in the body of this thread.

thank you.

2 questions:

- does it only work on MT5?

- does this indicator work for binary options with a short expiry time (5 minutes) for example?

Cheers

 
odilberto:

thank you.

2 questions:

- does it only work on MT5?

- does this indicator work for binary options with a short expiry time (5 minutes) for example?

Cheers

The attached code is for MT5. As for the Didi Index idea, you can apply it to other platforms, making the observations manually or automating them as the platform allows.

What do you mean by "works"? Is it in the computational sense (running without technical errors) or in the financial sense (making a profit)?

If you have a binary options broker that uses Metatrader, it will "work" in the technical sense of the word ... but whether it will make a profit is another story!

Binary options are like a casino: the banker has a statistical advantage and you have a disadvantage ... the stock market is at least fair game, in the sense that the assets are traded directly between the two sides and the broker doesn't play against you, profiting from your loss.

 
Trader_Patinhas:

The attached code is for MT5. As for the Didi Index idea, you can apply it to other platforms, making the observations manually or automating them as the platform allows.

What do you mean by "works"? Is it in the computational sense (running without technical errors) or in the financial sense (making a profit)?

If you have a binary options broker that uses Metatrader, it will "work" in the technical sense of the word ... but whether it will make a profit is another story!

Binary options are like a casino: the banker has a statistical advantage and you have a disadvantage ... the stock market is at least fair game, in the sense that the assets are traded directly between the two sides and the broker doesn't play against you, profiting from your loss.

Thanks for the tips...

thanks

 

Hello,


I am developing an ExpertAdvisor that will use the Didi index for buy and sell decisions.

I'm using the iCustom function to integrate the EA and Didi.

Didi has 3 lines/values


void CalculateDidiIndex(const int shift=0)
  {
//---
   double fast[1],mean[1],slow[1];

   if(CopyBuffer(short_handle, 0, shift, 1, fast)<=0) return;
   if(CopyBuffer(average_handle, 0, shift, 1, mean)<=0) return;
   if(CopyBuffer(long_handle, 0, shift, 1, slow)<=0) return;

   FastBuffer[shift] = fast[0]/mean[0];
   MeanBuffer[shift] = 1;
   SlowBuffer[shift] = slow[0]/mean[0];
//---
  }


My question is how to capture the SlowBuffer value (the mean I'm disregarding because it's always 1).


I'm trying to do it this way:

CopyBuffer(didiHandlerFast,0,0,20,_didiFast)


Reading the values from the _didiFast array I see that only the FastBuffer values (from DidiIndex) are in that array, where can I read the SlowBuffer values?


Thank you


Ps.: This is my first robot so I may be neglecting some obvious things.

 

Hi guys, how do I get Didi's view in bars instead of lines?

Thank you

Renato

 
can you please add arrow to the chat when it cross and alert thanks
 
Good morning! How do I install it on my mt5 mobile phone?
 
mbp16 #:
Good morning! How do I install it on the mt5 mobile phone?
Good morning.

There's no way to install it on the mobile version. On mobile phones only the native indicators....
 
this indicator is great, EXCPEPT  it does not function correctly in real time. It doesnt react right for giving real time signal.
 

Hi @Rudinei Felipetto.


I spotted a small bug in the indicator. When the scales on the charts are very small, it hides part of the lines, example:


I'm no MQL5 expert, but the problem seems to happen when you set INDICATOR_DIGITS over here:

   if(Digits()==0) IndicatorSetInteger(INDICATOR_DIGITS,6);
   else IndicatorSetInteger(INDICATOR_DIGITS,Digits());

In the print, the symbol has 2 digits only, but the values of the MA's are way bellow that, due to the normalization. If I increase the digits to 6, for example, it fix the issue. But, from what I got, there seems to be no need to set the INDICATOR_DIGITS, because MT5 would automatically handle it (am I wrong?). So, I just removed both lines and everything is working fine.

Do you think there would be a problem to remove the lines and do the fix? (I did it here and seems to be working fine on every symbol I tried so far)


Thanks for your code, great indicator and nice code.

Rudinei Felipetto
Rudinei Felipetto
  • www.mql5.com
Trader's profile