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

Auftrag beendet

Ausführungszeit 54 Minuten
Bewertung des Kunden
Great!

Spezifikation

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.


Bewerbungen

1
Entwickler 1
Bewertung
(253)
Projekte
358
49%
Schlichtung
24
25% / 50%
Frist nicht eingehalten
80
22%
Frei
2
Entwickler 2
Bewertung
(88)
Projekte
143
39%
Schlichtung
21
19% / 48%
Frist nicht eingehalten
30
21%
Frei
Ähnliche Aufträge
I already have a fully functional MT5 Expert Advisor that includes all the necessary features required for prop firm trading (risk management, drawdown control, lot sizing, etc.). However, the current entry logic is not performing well, and I am looking for an experienced MQL5 developer and strategy designer to replace or significantly improve the trade entry system. Objective: Develop and integrate a robust
Hello i need an EA automated using Supply & Demand + Shooting Star/Hammer Bot: Timeframes: H1 main, M5/M15 for entry Indicators: ATR(14 ≥0.80), Supply/Demand zones, Candlestick patterns Short Entry: 1. Price enters supply zone 2. Shooting star forms (small body, long upper wick ≥2× body) 3. ATR ≥0.80 4. Sell below shooting star low Stop Loss: above upper wick Take Profit: next support zone or 1:2 R:R Trailing Stop
Looking to buy an EA which is good, profitable and takes many trades, good for IB broker comissions, Any strategy or martingale is fine, send me a demo license file, I will backtest and purchase immediately if my team like it
Hi, Before ordering, I want to verify the quality of your ICT/SMC logic. Do you have an existing indicator or strategy (your own work) that I can test on TradingView? If yes, please provide: 1. A demo (invite-only script or video) 2. Proof it is NON-repainting (explained clearly) 3. Live or replay demonstration (not static screenshots) Specifically I want to see: * Clean swing structure (no consecutive highs/lows) *
Looking to work woth manualtraders who have a proved existing strategy. To be clear, this is not a request to develop or design a new strategy. If you already trading and have strategy that is proven, consistent, and production-ready, with at least 6 months of history performance I’m open to reviewing it immediately. Please apply only if you meet all the requirements below. Submissions without a proper introduction
Project Overview ​I am looking for a high-level Algorithmic Trader / Developer to build a sophisticated, fully automated scalping system for the Nasdaq-100 Future (NQ) . The system must integrate institutional order flow logic with market structure analysis. ​The core logic must be written in Python , acting as a central hub that bridges ATAS (as the primary data source for Order Flow) and MetaTrader 5 (as the
I have recently used an ea that was absolutely perfect however, I have since found it was not a safe source. I use IC Markets raw spread ECN accounts and the bot I would like is a gold + btc trader (other forex are also fine) that trades extremely high lots, whilst trading extremely high frequency. I am happy to take a bot that already exists if this has an account I can view read only for true results
I am looking for an experienced MQL5 developer to build a fully automated trading bot (Expert Advisor) for MetaTrader 5 . The bot will focus on trend-following scalping and must be designed to trade XAUUSD and BTC on the M1 timeframe . The objective is to create a stable and efficient EA that can open multiple trades per day while managing risk using proper stop-loss, take-profit, and trailing stop
https://www.mql5.com/en/market/product/157084?source=Site+Profile+Seller . THE INDICATOR MUST read pairs on the market watchlist and be able to display them on the chart as inverted or non inverted. under settings Give an option to display the indicator on the main window or indicator window. *this is important* add a price line to the indicator please i am not accepting any concepts or anything similar. i want the
[Automatic Level Detection Group] - Enable Auto Detection: Yes/No - Number of Levels Required: (Number) 3-5 - Lookback Bars: (Number) 100-200 - Minimum Touches for Strong Level: (Number) 2 - Use Zig Zag Algorithm: Yes/No - Use Level Clustering: Yes/No - Max Cluster Distance (points): (Number) [Display and Drawing Group] - Resistance Line Color: (Color) - Support Line Color: (Color) - Show Info Labels: Yes/No - Lines

Projektdetails

Budget
30 - 35 USD
Ausführungsfristen
bis 3 Tag(e)