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

MQL4 Indicators Converting C++ Java Forex

Job finished

Execution time 54 minutes
Feedback from customer
Great!

Specification

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.


Responded

1
Developer 1
Rating
(253)
Projects
358
49%
Arbitration
24
25% / 50%
Overdue
80
22%
Free
2
Developer 2
Rating
(88)
Projects
143
39%
Arbitration
21
19% / 48%
Overdue
30
21%
Free
Similar orders
Converting an ex4 file to mq4 .I'm looking for good developer who is expert in reverse engineering.like stoploss,Take profit. Trailing,breakeven,news filter and other inputs to be added. Further details will be discussed later
Trading ea 300 - 5000 USD
I need an EA for both MT4 and MT5 that can work on both demo and live account with this features : 1. Trading 24/7 2. Connected to the news 3. Pauses during high effective news 4. Has a footprint tool for accurate signals 5. Always aims foe a higher profit 6. High frequency Scalping 7. Auto lot size 8. Capable to work on 1000$ capital and less 9. zero losses 10. Works on any chart 11. When it is installed in any
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
The ZONE RECOVERY/HEDGING STRATEGY will be on a timeframe where each strategy is independent and pending orders should be placed at the high and low of the candlestick. If it is a buy, then the pending order at the high of the candlestick will be triggered, and if it is a sell, then the pending order at the low of the candlestick will be triggered. If the market breaks the high of the candlestick, then the pending
Hi, i want to create EA that using martingale and hedge system working on metatrader 4 and has some options to be manually changed in the bot options i need expert in this strategy to do this job note that strategy is very simple no indicator needed unless moving average
I have two not very sophisticated bots that need to be converted from python to MQL5. The bots are very similar, they use 99% of the same methodology, the only difference being that one is a trend-following bot, and the other is a mean reversion bot. I need the parameters to be at the top of the script so that they can be easily changed and optimised. The entire codebase is already done in python (sl,tp, trailing
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
The specifications cover 3 requests: 1- Addition of a Trailing Take Profit function 2- Addition of opening orders according to a decreasing distance (20, 15, 10, 5...pips) 3- Addition of a function that allows choosing a fixed, increasing, or decreasing take profit
Job Description: We are seeking an experienced EA programmer to create an EA that utilizes SnR + Trendlines + Multi timeframe confluence Project Requirements: - Support and Resistance, Open Close levels/kissing candles/Rejection block, Support broken becomes Resistance(SbR), Resistance broken becomes Support(RbS), Quasimodo Levels, Asian Range, London Killzone, London Open, New York Killzone, New York Open
Dear Freelancers, I'm seeking a skilled MT4/MT5 developer to collaborate on a valuable trading indicator. Project Description: I'm looking to develop a powerful Elliott Wave indicator compatible with the MT4 and MT5 trading platforms. This indicator will be based on the highly successful [LuxAlgo] indicator currently available on TradingView. Key Features: In-indicator Alerts: The ability to receive pop-up

Project information

Budget
30 - 35 USD
For the developer
27 - 31.5 USD
Deadline
to 3 day(s)