Recoding MT4 Entropy Indicator or Fixing an Entropy Indicator from the C Language

MQL4 Indicadores Conversão C++ Java Forex

Trabalho concluído

Tempo de execução 54 minutos
Comentário do cliente
Great!

Termos de Referência

I have three versions of an Entropy indicator, but they have problems and need fixing.

One entropy indicator, after attaching it to the chart, after an hour or two disappears.

The other two entropy indicators stays at zero.

I have attached a picture to show what I mean.


So, they need to be remade from the C Language or recoded.


What is Entropy?  "Entropy is a well-known measure of disorder or unavailability of energy in a (closed) system. More entropy generally means less predictability, hence one often tries to minimize it":


Here is the C language program of it:

http://www.foretrade.com/entropy.htm

Definition from http://mathworld.wolfram.com/Entropy.html


The source C code for this indicator which can be compiled with any (free) C compiler:


#include "math.h"

#include "stdlib.h"


__declspec(dllexport) void Entropy (double *price, double *entropy, long int size, long int numbars)

{

double *in, *out, P, G;

long int i,j;

double sumx = 0.0;

double sumx2 = 0.0;

double avgx = 0.0;

double rmsx = 0.0;


in=price;

out=entropy;


for (i=0; i<size; i++)

{

if (i < numbars+1) *out = 3.4e38;

else 

{

sumx = sumx2 = avgx = rmsx = 0.0;

for (j=0;j<numbars+1;j++)

{

sumx += log(*(in-j) / *(in-j-1)) ;

sumx2 += log(*(in-j) / *(in-j-1)) * log(*(in-j) / *(in-j-1));

}

if (numbars==0) 

{

avgx = *in;

rmsx = 0.0;

}

else 

{

avgx = sumx / numbars;

rmsx = sqrt(sumx2/numbars);

}


P = ((avgx/rmsx)+1)/2.0;

G = P * log(1+rmsx) + (1-P) * log(1-rmsx);

*out=G;

}

in++; out++;

}


Here are three failed attempts at making the Entropy indicator attached.  They either disappear and show only previous data, or they are stuck at zero while the previous bars display the correct value of entropy.


Respondido

1
Desenvolvedor 1
Classificação
(253)
Projetos
358
49%
Arbitragem
24
25% / 50%
Expirado
80
22%
Livre
2
Desenvolvedor 2
Classificação
(88)
Projetos
143
39%
Arbitragem
21
19% / 48%
Expirado
30
21%
Livre
Pedidos semelhantes
I am looking for someone who has experience working with the ZigZag indicator. I want to create a multi timeframe dashboard scanner based on ZigZag. I will explain more in private messages. if you feel capable & interest with that,please pm me for more details. thanks
Hello, I have indicators for tradestation written in easylanguage and I need them in tradingview pinescript. So I need someone to convert these tradestation indicators to tradingview. Do you think you can help me with that
Excellent trade 30 - 50 USD
I need an expert robot developer that will create a robot using 4 indicators to generate signal for the robot to execute,it should be solely based on candle stick period analysis and the robot will be made to allow indicators parameters adjustment and user input example "parameters optimization" or "hyperparameter optimization as the terminology might be, please I need it urgently, the interested developer should
Hello, I need a professional programmer to help me design an EA that can be able to take trades towards a market direction with accurate prediction. This EA should be able to identify the market trend direction and take multiple trades towards the direction and also able to close the trades together when market wants to reverse at the best profit level. The input at the beginning will be for the EA to be input with a
Hello, i am looking for a very skilled developer, who is an Expert in object orientated programming in MQL5. I have some indicators (MQL4 and MQL5), which i like to translate them into separate classes. Then all classes should be included into an Expert Adivsor. I have developed a comprehensive and complex strategy, which i would like to have as an EA. Therefore you should have deeper knowledge in OOP-MQL5 and have a
hey friends, I am looking to build a smart trading robot, for the capital market. He knew how to trade in all the different types of trade. Example - in shares, currencies, index, indices, ETFs, funds, commodities, options, futures and so on. Suitable for trading on all stock exchanges in the world. It will be possible to install the trading robot in the MetaTrader 5 trading software. But it will also be possible to
I am seeking a skilled developer to create a web application that monitors and displays statistics for MT4/MT5 trading accounts, similar to Myfxbook. The application will collect account and trade data from MT4/MT5 platforms, process and analyze this data, and present it through a user-friendly interface
i Want to convert this Trading View Code to Mt4 Indicator indicator("NEOM Smart Money Concepts ", "NEOM Smart Money Concepts " , overlay = true , max_labels_count = 500 , max_lines_count = 500 , max_boxes_count = 500 , max_bars_back = 500) //-----------------------------------------------------------------------------{ //Constants //-----------------------------------------------------------------------------{ color
Hello Amazing developer am looking for profitable EA for mt4 and made for some past year and i will be looking forward for your bid if you have mt4 EA let Negotiate in the contact box best regards
Hello Amazing developer am looking for profitable EA for mt4 and made for some past year and i will be looking forward for your bid if you have mt4 EA let negotitate in the contact box best regartds

Informações sobre o projeto

Orçamento
30 - 35 USD
Desenvolvedor
27 - 31.5 USD
Prazo
para 3 dias