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

İş Gereklilikleri

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.





Benzer siparişler
I'm looking for someone to help me implement the MetaQuotes web API in Laravel: - Create clients - Create users - Change passwords accounts - Create deposits and withdrawals I'm using a library, but it's only giving me problems
I need the following help wih the set up I have a TradingView paid license I have a script running in TradingView generating Alerts - see a screenshot example Then I have PineConnector which should be able to take those Alerts and deliver to MT4 And then there is MT4 installed with running PineConnector on it Yet somehow I cannot get those Alerts, including Trade set up, from TradingView to MT4. Please let me know if
I want to connect Python with MT5 for trading signal managing. Currently, this is solved by exporting the .csv file from Python and the MT5 EA reads it and trades based on it. After a while, MT5 does not allow me to import the .csv file from the MQL5/Files folder and the process stops. I have to restart it, so it's not stable. The data exchange sometimes stops after 4-5 hours or 30 minutes. Not so stable. I'm looking
Hello, I have an existing Expert Adviseo for Metatrader 5 that still contains a few errors. (The MQL5 code is present.) I would like to have these errors fixed. If necessary I would add a few more features to the EA
I need EA which can copy telegram signals to MT5 The EA should have the following 1. take profit 2. take loss 3. Break even 4. trailing stop 5. Stop trading if amount reaches 6. Accept buy stop , sell stop , sell limit and buy limit
I am looking for someone to help me to automate my trading from mt4/5 expert advisors and own trades to tradovate. My trades are generated by my expert in MT5, I want those trades copied to Tradovate's platform using their API to different accounts, that some programmers have suggested is a REST API and should be easily doable
I want to receive and automate trade signal on Metatrader from tradingview, but i do not have access to the indicator i am using presently now but i have an alternative indicator which i have it's source code and also works similar to it but needed to be included with this features (SL and TP logic, add code to calculate the stop-loss and take-profit levels) so it can provide me the signal i want on
I need to export from MT5 the live charts open data to excel. So the information that is on the Data Windows Must show in the excel (including the indicators value). ScreenShot of MT5 information I want: https://ibb.co/pKDxWcz So the information I want from all open tabs on the MT5
Dear Developer, I would like to hire your service for developing an algorithm for the thinkorswim platform for placing the trades in accordance with this indicator named UT Bot : https://usethinkscript.com/threads/ut-bot-for-thinkorswim.12640/. Please, see this page for the complete algorithm code for thinkorswim platform. It should enter the trade when the indicator shows the signal and then exit it and then enter
Id Like to have a web based trading journal where i can import MT4/5, excel sheet or manual input. This page will require uses to register There has to be a performance dashboard of the journal

Proje bilgisi

Bütçe
30+ USD
Geliştirici için
27 USD