Expert Advisors and Automated Trading - page 84

I was trying to find out open, high, close, low prices of a candle with the Heiken Ashi formula. Using a daily chart, heiken ashi close and low prices calculation gives correct results but from open and high prices calculation getting incorrect results. Have I applied the wrong formula? Could
hi at MQL4 the send order was very simple orderticket= OrderSend ( _Symbol ,OP_SELL,orderlot,Bid, 10 ,stoploss,takeprofit, _Symbol ,magicNM); i wirte this and i get the order ticket and i set the magic number now i try to move for MQL5 and i dont understand how i send a order and
Hi I'm not so sure of what to do with this data. I have this graph: I understand what is normalization as a formula, and the bell curve, but dont know when to buy or sell watching this... can some one explain this for me please
Hi, I currently have an EA that opens and closes positions based on some indicators. The problem I am having is that when testing it on the Strategy Tester, when openingn a position (for example a buy order) if the price is 1.08931 it buys it at a price of 1.08946 (for example). I get that this is
If I generate an EA automatically with the MQL5 Wizard, where should I incorporate the lot/volume martingale logic
I am pretty new to coding. I was trying to cut and paste code for putting an expiration date and/or locking the ea to a specific account #... Can anyone show me how to do that or just do it? Here is the code that i tried. I have an mt4 and mt5 EA.. On all threads that i have read people say that it
Hi, I want to start an expert and this expert starts other expert or a service. It is possible? I think it's only possible using DLL. If I create a DLL, is it possible to simultaneously call several other experts or several other services and have all them running simultaneously, or will it be
Please...have an idea on how i can convert my code to mt5 ea robot and trade succesfully.... The Code is develop on chatgbt with my best indicator, i just need it to be runing as ea robot..Any Help
I have really struggled to find any information to help me resolve my issue, so am hoping someone on the forum can. I have written an MQL5 script to create custom symbols and load tick data into them from csv files. int numTicksLoaded = CustomTicksReplace ( "AUDNZD_T_SVS"
Hi all -- is there a straightforward way to find out the name of a class during run-time? I hoped MQL would have some predefined macro akin to __FILE__ or __FUNCTION__ but, alas, there is no __CLASS__... Predefined Macro Substitutions - Named Constants - Constants, Enumerations and Structures - MQL5
Hi, is there an EA out there that will move my SL to BE when TP1 has been hit and then SL to TP1 when TP2 has been reached etc. Thanks
There is a EA that i downloaded from MQl5. I changed some settings and added 2 inicators to it, it seems very profitable now. Can someone rescripts that Ea with the new indicators added
Hello, is there something like this? Whenever i open a trade and set my stop loss, i want it to be fix so that i cannot change it. It would psychologically help me, so that i am not even tempted to change it and increase losses... thanks your your help
Hi everyone, I am a beginning EA creator and trying to figure out the very basics of creating an EA with MQL5/python. To start off, my EA should place an order when dragging it on the graph and close the trade if it did not hit the SL or TP within 10 seconds (keep in mind I just built this EA for
Hi im new here. first of all, just wanted to say thanks to this comunity, youve allready helped me a lot from just reading passed thread. is there a way to gather data, like any variable inside my code, from each pass and then output it to the result table, or at least print it on the journal with
Hello, With this code: request = { "action" : MetaTrader5. TRADE_ACTION_PENDING , "symbol" : "BTCUSD", "volume" : 0.01, "type" : mt5.ORDER_TYPE_BUY, "price" : round (price, 3 ), "type_filling" : MetaTrader5. ORDER_FILLING_RETURN
Hello I have the following code of which am expecting that on BUY ORDER its sets the SL and TP according to the ASK price and on SELL its sets SL AND TP according to BID PRICE. Everytime i run the bot is report INVALID stops //define Ask, Bid Ask = NormalizeDouble ( SymbolInfoDouble ( _Symbol
hi I don't know much about mql5, but need help on how to approach this. I whant to make a deep learning EA, that has; 1º The first inputs ohlc 2º Theese inputs are used as inputs in all the oscilators, indicatos 3º The outputs of 2º) are used as the input layer of the deep learnig ... and so on as
Hello I have written a trading program in mql5 I want to know why it is not compiling please I would appreciate if a person can tell me the problem with it I wrote a trading program but it's not compiling , can you help me check it to see the errors and let me niw why it's not compiling , if
Hello, I would like to have an OBV Indicator that I can choose to add or remove from OBV based not only in close price but also be able to change it to open, high and low. Does anyone have this modified indicator that could share or even help me out on changing the attached code? Thanks in advance
[Deleted]
There is a way in MT5 to apply the optimized parameters/inputs to the expert advisor and then save it as a set file or do I need to set them manually one by one
[Deleted]
double Buffer[][], handle[][]; if ( CopyBuffer (handle[][], 0 , 0 , 1 ,Buffer)==- 1 ) Print ( "Failed to Copybuffer " , GetLastError ()); If i have 2d or 3d array how do i copy buffer to it Note : above code wont compile, its for reference what i am trying to do
Hey guys, wondering if anyone has any clue how to integrate the LR Correlation statistic into the ontester using CTradeStatistics. Here's my code: //+------------------------------------------------------------------+ //| macdrsiadx.mq5 | //|
[Deleted]
  OpenCL  (12   1 2)
Can any one coding OpenCL to any EA ?I pay money for it
Hey guys I am debugging my MQL5 source code . What does the file , function and line block indicate
Someone had the experience to try to move object and it not obey and return success? The follow expert do not move the lines... how to report a bug to metaquotes? HLineCreate and HLineMove has been based on the documentation page of OBJ_HLINE . Metatrader version is from april 4 2023. string ativo=
Hi, I'm using MT5 terminal build 1730 64-bit. I'm running EA in strategy tester (visual mode). This EA has panel with buttons BUY and SELL for manual trading. Why buttons aren't changing state (pressed or not) when I'm clicking it during testing as it works in MT4?
Hi All, I've been trying to open a chart and then plot a moving average from inside a script. This is my simple code: void OnStart () { long _chart = ChartOpen ( "AUDUSD.a" , PERIOD_H1 ); int _myMA= iMA ( Symbol (), PERIOD_H1 , 21 , 0 , MODE_SMA , PRICE_CLOSE ); ChartIndicatorAdd (_chart, 0
hello friends, can anyone help me to solve my problem? I've made an ea using an ea generator and the ea is ready, but when I backtest it in Metatrader, why doesn't it work? please enlighten me
  Help with an ea  (1)
import MetaTrader5 as mt5 from datetime import datetime , time, timedelta # connect to MetaTrader 5 if not mt5.initialize(): print("initialize() failed") mt5.shutdown() exit() # set up the trade parameters symbol = "GBPJPY" lot_size = 1 stop_loss_pips = 20 # switch to the daily timeframe