Forum

Object creation not working properly on OnInit function

Hi everyone, I am seeking for a bit of help again as I could not find any related topics. (I may have missed it...). I am currently working on a panel to help me to visually track profit, daily drawdown... of different charts. So far so good, but I have encountered a minor issue. I am creating

Swap conversion formula

Hi, Fist of all thank you for everyone's help in the past, this forum has been very beneficial to me. I did research on the forum but I could not find an answer to my questions, please send me a link to the post if it already has been answered before. I basically want to convert every swap modes

Class declaration issue

Hello everyone, I'd like some help regarding a class declaration, I basically want to declare a new class on a global scope to be used in different functions, but this class uses variables as parameters that may not be correctly initialised until the OnInit() function, is there a way to declare a

Problem with WebRequest().

Hello everyone, First thank you for your time and effort to just simply having a look to my problem. To try to make it short I just want to parse some data from a webpage to integrate it in my EA further down the line but I can't manage to parse it for any reason. I just simply follow the

Close 50% of an order

Hi, I struggle to partially close an order to 50%, I would like some help please. I've highlighted in yellow where I think the problem comes from but I can't think of anything else to get arount it. I keep having this error 131 which is Invalid trade volumes but I can't tell why... Hope that someone

OrderModify() Problem

Hi everyone, I need some help please to finish this EA. I am struggling to basically modify a pending order (SL and TP) only once at the next open bar. //+------------------------------------------------------------------+ //| Simple strategy.mq4 | //|

Creating a SP500 (scalping) strategy.

Hi everyone, I would like to share my scalping strategy on the SP500. I would like as well any feedback, I am open for any constructive criticits. Ideally, by sharing this WE could try to create a profitable strategy, I'm willing to see what are your opinions and even sharing your own strategy if

EA working on Backtest but not on real account.

Hi, I would like some help please, like the title says my EA work perfectly fine on backtest but not on real account . I don't receive any error message from the terminal, except from "2021.02.19 17:55:27.350 SP 500 TR STOP TEST 2 [SP500],M5: zero divide in 'SP 500 TR STOP TEST 2.mq4' (145,52)"

Trouble with getting a monthly/weekly profit with an EA.

Hi, I would like some help to create an indicator which can show monthly/weekly profit. I've got only basics on programming and found some similar topics but none of them really helped me. I found out that the best way to do it is to use iTime() which i struggle to get my head around. Can anyone