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

MQL5 Experts Integração

Termos de Referência

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.





Pedidos semelhantes
//Takes screenshot string imgname="image.png"; bool first=ChartScreenShot(0,imgname,1920,1080); // write the initial html code int Report_File=FileOpen("report.html",FILE_WRITE|FILE_TXT,","); FileWrite(Report_File,"<!DOCTYPE html>"); FileWrite(Report_File,"<html>"); FileWrite(Report_File,"<body>"); string timeString=TimeToString(TimeCurrent()|TIME_MINUTES); FileWrite(Report_File,"<center>Report generated at
Hello, We receive trading requests via FIX Protocol. We need a structure to manage these requests in Python MT5Manager ManagerAPI and create positions, deals and orders. What we need is NOT about the FIX Protocol. Even though we have all our permissions and pump mode is on, we are having problems while creating an order, position or deal
need to create a powershell script to auto update my Custom Symbols from .csv files. there will be a folder with many files, the script will enumerate them and crete a list -> than import that data into Custom Symbols of mt5 (/portable). please ask if something not enought clear
Hello I have an old mql4 EA file, I need to convert it to python script which can be run on tradelocker studio. You maybe need to use backtrader package of python. Time line is 5 days. Thank you
Hello ! I’m searching for a developer able to make a simple website displaying my MT5 balance account and current positions in realtime. My broker is Deriv and it proposes API, i don’t know if it is possible with MT5 API. I already have a domain, hosting and server. Don’t hesitate if you are interested, I’ll give more informations
I need a tool: Can convert any strategy of PineScript into .mql5 without bugs Automation convert for multiple strategy of PineScript files into multiple .mql5 files Programming can write in Python/C++ I have some PineScripts file to test (in attached files, with their names can find in TradingView -> Indicator -> search by name) I want to backtest all community strategy of TradingView, so that the tool need to be

Informações sobre o projeto

Orçamento
30+ USD
Desenvolvedor
27 USD