Forum

iStochastic in MT4 workings

I am trying to understand the working under the hood of iStochastic. I loaded the native MT4 stochastic oscillator on a EURUSD D1 chart on an MT4 terminal from IG (IG demo account). I also downloaded the same data from history in excel Finding number 1: With below settings: I can see that the Main

Machine Learning Bot Architecture MQL5

Hi What architecture would you recommend for a machine learning bot in MQL5? My opinion based on my experience with python only and Oanda REST API: 1. Training independently (Python etc). Save model as REST endpoint (in my case i was saving it as a pickle file) 2. Trading logic in MQL5 and

Modify order works in Backtest and Debug but not in Live

Hi, I have a demo account in admiral and the same bot works fine when backtesting and debugging with historical data in DAX,DJI,SP500. But in live, I cannot modify the position. I get 10013 error. The code is Andrew Young's library. if (glBuyTicket > 0 ) { double openPrice =

MQL5 and Python in Metaquotes VPS

Hi. I have an ML model that I trained in Python. I want to create an MQL5 EA that will use that model to predict some values and trade. The reason I want to do it using MQL5 is so that I can deploy it using MQ VPS. Otherwise, I could do everything in Python and try to find a server to deploy it. Is

Which MT5 broker has the best quality historical data (at least 1 min)?

Hi My strategies can be backtested without much loss against 1min candles. I have tried several brokers for major and minor instruments but the best I have seen so far is FX Pro. Is there anyone who has found an MT5 broker with solid quality 1min candles historical data

Multiple instrument, timeframe, parameter sets optimization

I would like to optimize a set of parameters for multiple currencies and multiple timeframes in MT5. I don't mind using the MQL cloud or any other cloud if possible... Is there a way to do it automatically? I understand MQL5 if I could do it from the code. Is there a 3rd party software? Thanks

Refresh Prices

Hi I ran the following code just now: void OnStart () { //--- Print (Ask); Sleep ( 5000 ); Print (Ask); } And the ASK price was the same. EURUSD H1, FXPro Demo5 Is this the same for OnTick()? So, once the event handler is called Prices freeze

Indicators on current bar always updating?

Hi I would like to verify that eg iMA for close on current bar will always be recalculated for each incoming tick since each new tick is the new close value for that bar. Am I correct? Thanks PS. Is there an easy way to see the calculated values for each of my variables in an EA? I know there is

Simulate deposit withdrawal

Hi. I want to somehow simulate deposit withdrawal in MQL4. I want after a trade is closed to take any surplus above the initial deposit from balance. Ideally save this number somewhere. Any ideas

Convert ticks to M1 MT5

Hi. I have imported tick data (~12GB) from tick data suite to a custom symbol that is actually a copy of EUR_USD. I then tried to run a backtest but I got a message that there is no history. Then I got M1 data from tick data suite and imported them to MT5 for that custom symbol. I didn't get any