Expert Advisors and Automated Trading - page 90

let CryptoJS = require( "crypto-js" ); let request = require( 'request' ); let msg = "The quick brown fox jumps over the lazy dog" ; let secret = "01234567890123456789012345678901" ; let hash = CryptoJS.HmacSHA256(msg, secret) console.log(hash.toString()) let hashInBase64 =
... Improperly formatted code removed by moderator. Please EDIT your post and use the CODE button (Alt-S) when inserting code. Hover your mouse over your post and select " edit "
Dear experts, I read 3,4 form threads about position profit calculation but still can not figure out the correct formula to find profit from the price difference and SYMBOL values. My account currency is USD and here are the values from my broker for an EURUSD position: For EURUSD
Hello, I just wanted to ask some general questions about potentially selling an algorithm to a hedge fund: 1) Assuming I produced results from Jan 1st 2020 to Jan 1st 2023, what would be deemed a good yearly result? Would a 20% yearly gain be good? 2) What kind of drawdowns do most hedge funds work
How do a parse a comment to look for specific text? If my comment is RobotTrade#3, how can I have the EA look at the comment for any word that says "Trade"? To clarify, the logic might sound like "if the comment has the word "Trade" anywhere in the comment, and where capitalization is not important
hi I'm getting data from mt5 (robomarkets (RoboForex)) and the data is shown here: in the last 1000 ticks ... the high has only been higher a few times why am I getting theese results? this is what I use: mt5 with python
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
[Deleted]
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