Create Simple MQL5 EA template with DLL ML.NET Model Builder

MQL5 Experten Integration

Spezifikation

Create Simple MQL5 EA template with DLL ML.NET Model Builder

Require MQL5 with Source code and DLL C# with Source code

Using Microsoft Visual Studio 2019 Community Edition with ML.NET Model Builder Create DLL with language C# and function check value from DLL MODEL

Create Simple EA MQL5
Create DLL C# connect to ML.NET Model Builder

MQL5 EA Trade rule simple
When DLL Return value high over XX pip from current price open trade BUY
When DLL Return value low over XX pip from current price open trade SELL

EA MQL5 ==> C# DLL ===>  ML.NET Model Builder
EA MQL5 <== C# DLL <===  ML.NET Model Builder

I can do MQL5 some, but I can not code C# I want to create DLL file for using with MQL5, So I need  C# DLL part for using with MQL5
on C# path just receive data from EA MQL5 sent to dll and put it to function

// Add input data
var input = new ModelInput();

// Load model and predict output of sample data
ModelOutput result = ConsumeModel.Predict(input);


How EA it work
When NEW BAR  EA sent data 7 value of last bar DateTime,OpenPrice,HighPrice,LowPrice,Close Price,AdjustPrice,TickVolume  to DLL calculate and get result return and result return is value price in future from DLL calculate, EA check value difference from value return from DLL and value of current price, if value difference over pips value on setting will open trade by if high open BUY and if low open sell

How to create
using Microsoft Visual Studio 2019 with install ML.NET Model Builder

What EA check each new bar?
String DateTime,double OpenPrice,double HighPrice,double LowPrice,double ClosePrice,Int TickVolume

What value new bar sent to?
String DateTime,double OpenPrice,double HighPrice,double LowPrice,double ClosePrice,Int TickVolume

When DLL got new bar value.
// Add input data
var input = new ModelInput();

What is return value?
ModelOutput result = ConsumeModel.Predict(input);


Example (idea like this, sample , you can fix correct/ change to right code)

MQL5 setting value
input BUYHighPIPs = 30;
input SELLLowPIPs = 20;


MQL5 function call
#import "MLNETModelBuilder.dll"
   double MLNETModelBuilder(String DateTime,double OpenPrice,double HighPrice,double LowPrice,double ClosePrice,Int TickVolume);
#import

MLNETModelBuilder();


DLLReturnValue = MLNETModelBuilder(NowTime,OpenPrice,HighPrice,LowPrice,ClosePrice,TickVolume)

DLLReturnValue ==> (value return from DLL calculate)
DifferenceBUY=DLLReturnValue-Ask;
DifferenceSELL=Bid-DLLReturnValue;
if(DifferenceBUY>BUYHighPIPs) m_trade.BUY()
if(DifferenceSELL>SELLLowPIPs) m_trade.SELL()

Display simple comment
show what data value sent to DLL
and What value DLL calculate and return

for sample of ML.NET Model Builder (when you create DLL work)
add ML.NET Model Builder by using any pair like EURUSD with 7 colume data DateTime,OpenPrice,HighPrice,LowPrice,ClosePrice,AdjustPrice,TickVolume  and Choose select predict with Adjust Price then add code to DLL


TESTING
EA sent value to DLL correctly
DLL got value from EA correctly
DLL return value calculate correctly
EA got value from DLL correctly

TESTING1 (offline back testing)
Back testing with Visual Mode EA display show information correct


TESTING2 (live demo)
when drop EA to chart, EA display show information correct and when NEW BAR EA got new value from DLL it work. every thing look fine.

TESTING3 (live demo)
just setting value pips difference very low 1 pip and drop EA to Live Chat and show comment data correct then EA open trade that is ok.





Ähnliche Aufträge
Hello colleagues, I have a request for development. It is required to develop a trading panel for manual trading. If you have experience in implementing similar projects, please send us estimated time frames and costs. I will be glad to hear your questions and work with you on this project. General description: It is required to develop a panel for manual trading. This is a panel with Risk Reward Tool for installing
Hello I have a EA and Custom Indicator That Someone Made for Me But I need to fix it up and get it to function properly using the customer indicator I want to fix the bug's and add a water mark to it that is all if someone could do this work asap that would be even better. EA is 3771 Lines Of Code Indicator Is 918 Lines Of Code list of things I need fixed (More then half of this is already coded in) #.1 I need the EA
Hi there Here is a video of the logic: its based on market structure and swings using validated highs and lows based on candle closure. Just in case you would like to take a look at the code/indicator here is the link: https://youtu.be/igj0OaQoM7o?si=7nigL8OU2Nt1Zxkx Let me know if you can help
Robot should have the option to either to Buy or Sell, and Buy and Sell based on selected technical indicators: PSAR, MACD, Stochastics, and Bollinger bands. Either one, all, or combination can be used to open order Lot size is either based on fixed lot, size per USD, or free margin per USD Target profit based on points and option for trail stop Stop loss is either in points or as a % of free margin Option for
Create MT5 deriv EA 30 - 35 USD
Hello . Am in need of a developer that can Create deriv EA .I need to create a Deriv Bot with Martingale 1 min candles 30 martingale plus I can change the amount of martigale with the option of 1 min up or down . Kindly bid and let discuss about the project
I need an automated EA to open positions based on the closing of a candle over/under the 50MA TP must be able to be set at specific points SP must be able to be set at previous candle open
MT4 TRADE COPIER EA 30 - 35 USD
Hello , how are you doing? Am in need of MT4 developer that can help me to develop trade copier EA for MT4 account Kindly bid for the project if it is what you can do for me thanks
I am looking for a professional developer to help me with creating a hedge grid bot. The concept is in the picture. The bot is quite simple. The bot basically opens buy and sell positions on each grid and self terminates when the upper limit (manually set is reached) 1. Set timer for new's releases (manual entry) 2. Slippage in pip's (manual entry) 3. Maximum drawdown in USD with self termination when entry
I needed to create a script based on MQL5, which depends on Stochastic and MACD indicators. Long entry should be once Stochastic lines are crossed above and MACD lines are crossed above and vice versa for short entry. If you know pine script, I have the pine script strategy code for this strategy, you can convert this into MQL5, Refer the below text file for the code
Nt8 30+ USD
I trade in NT8 and would like to code an Elliott wave measurment tool, which is very easy because I have the major Script for that.We need only to add some aspects into it. If you are interested,if you can do this do well to bid on it

Projektdetails

Budget
30+ USD
Für die Entwickler
27 USD