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

Lavoro terminato

Tempo di esecuzione 54 minuti
Feedback del cliente
Great!

Specifiche

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.


Con risposta

1
Sviluppatore 1
Valutazioni
(253)
Progetti
358
49%
Arbitraggio
24
25% / 50%
In ritardo
80
22%
Gratuito
2
Sviluppatore 2
Valutazioni
(88)
Progetti
143
39%
Arbitraggio
21
19% / 48%
In ritardo
30
21%
Gratuito
Ordini simili
Hi! Thank you for your time. I'd like someone to code some horizontal indicator trendlines on MT5 please. The lines are to identify key times on the chart at current or last price at 1 hour and below time frames for all charts. Please refer to the attach picture as an example of what I'm after. As you'll see in the example there are small labelled boxes for "Futures", "Forex" and "Price Levels". These represent
This is based on a 180-day/30-day Exponential Moving Average when they cross. The entry will be when a counter-trend candle is exceeded by a trend candle and close to the 30-day moving average indicator line without touching it. Stop loss will be 2 pips below the prior counter trend candle. Trading long is when the price increases and the 30-day moving average crosses upward into the 180-day moving average. Trading
I would like to collaborate with a professional for this work, I have one indicator that is written in pine script (tradingview) language, I would like it to be converted to MQL5, that will further lead in making of trading bot according to conditions I will share with you the indicator file
I would like to collaborate with a professional for this work, I have one indicator that is written in pine script (tradingview) language, I would like it to be converted to MQL5, that will further lead in making of trading bot according to conditions I will share with you the indicator file
Hello, I am seeking a professional and experienced developer who specializes in converting Pine Script (TradingView) indicators to MQL5. I have an indicator written in Pine Script that I need to be converted to MQL5 for use on the MetaTrader 5 platform. This project will also involve further development of a trading bot based on specific conditions, which I will share once we discuss the initial conversion
Hello, i have this EA attached but its not working as it should on demo account. When using the strategy tester its different and good but on demo account its opens randomly orders any lot amount and not as it should be. You should check the EA and modify it so its working in demo account correctly as in the strategy tester. You can test it in EURUSD H1 for the last 4 months (default settings). Thank you
The EA is not working properly and I'm looking for a talented developer to fix all the bugs that's preventing it to work properly. I can provide a demo account for both of us to monitor while testing the finish product
The goal is that if SL changes, TP1 and only TP1 changes by the same distance as SL. If there's also TP2, TP3 or TP4, then those levels aren't modified
EA's logic and trade 100 - 1200 USD
Good day, I hope this message finds you well. I would like to request the development of an Expert Advisor (EA) for MetaTrader, based on two specific indicators: the Trend Path indicator and the Diamond Reversal indicator. Below are the details for the EA's logic and trade execution criteria: Sell Trade Criteria: Indicators and Signals: Trend Path Indicator : Shows a red trend. Diamond Reversal Indicator : Provides a
Pls the bot take trade from any arrow indicator on the chart with buffer value buy or sell to place trade . The bot have 5 indicator filter to filter trade like rsi , sma , awesome oscillator, parabolic sar and ichimoku before the bot place trade. pls for detail about the bot and filter pls check the screenshot file

Informazioni sul progetto

Budget
30 - 35 USD
Per lo sviluppatore
27 - 31.5 USD
Scadenze
a 3 giorno(i)