HosseinKOGO
HosseinKOGO
HosseinKOGO
Added topic 2 questions about being a Seller
Hi there, I have 2 questions: First: does MQL4/MQL5 market open to Sellers of Iran? Second: Could a seller define a discount code in MQL market for his products? So each buyer that has the code would be able to put the code and take the discount
HosseinKOGO
Added topic How can I prevent saving/retrieving GVs during backtests?
Hi friends, I've noticed when I use GVs in my code, They does save when I do backtest . How can I prevent saving and also retrieving GVs during backtest while they are permitted to save and retrieve in Live trading? Any idea
HosseinKOGO
Added topic Is it possible to Comment on other charts in multi currency EA?
Hi friends, For example my EA trades 4 different pairs by just putting it on EURUSD. I know how to use Comment for current chart, but in my case is it possible to use Comment function for 3 other charts? As always, your advice is greatly appreciated
HosseinKOGO
Added topic Why GlobalVariableGet() does not work in this code?
Hi, I have an array BuyClosePrice[i][x] which "x" dimension represents the symbol in this multi currency EA, and "i" dimension represents the position between that same symbol closed orders(through Buys). I set GVs by this code: GlobalVariableSet ((
HosseinKOGO
Added topic How to make sure our GVs are integrated to our EA code by backtest?
Hi all, Is it possible? Since GVs are mainly used to restore values from last run of our EA, How could it be possible to test this by backtest rather than running EA for several weeks? In other words, Is there any option to simulate the condition of
HosseinKOGO
Added topic How to retrieve values for our variables after restarting the VPS?
Hi all, Let's say I have an array which my EA put values for each element after closing each position. But when I restart my VPS , my EA put default values for each element of this array rather than recent values. Should I store the values in a file
HosseinKOGO
Added topic Is it possible to input a variable from one EA-currency into another EA-currency in multiple currency backtesting?
Hi all, Is it possible to input a variable from one EA-currency into another EA-currency in multiple currency backtesting ? I mean my EA on EURUSD fill the variable x=10 during the backtest, then send it to my EA on GBPUSD. So the GBPUSD EA been feed
HosseinKOGO
Added topic A complicated problem- Please Help!
Hi programmers, Hope you are having good days. I have a problem which I can not find my mistake, could you please point me the problem with this? It would be greatly appreciated if you give me a hand. #include "TicksInfo.mqh" CTicksInfo ticksInfo;
HosseinKOGO
Added topic How to do this in MQL4?
Hi there, Hope you are doing well. I want to detect minimum variable among several variables and add 10 to it. How can I do this in the quickest way? For example: a=2, b=5, c=9, d=11; in the above example, I want to find "d" and make it d=21; Your
HosseinKOGO
Added topic Is it possible to backtest a Demo version EA of MQL Market?
Hi there, Hope you are doing well. Is it possible to backtest a Demo version EA of MQL Market? There is a 1 year result provided by the seller but 1 year is not enough for me. I need to backtest at least 4 years on real tick data before using. Your
HosseinKOGO
Added topic how could we detect holidays by code?
Hi there, Hope you are having a nice day How can we detect future holidays by code? Should I do this by just hardcoding or is there any way to automate it for history data holidays? Your advice is greatly appreciated
HosseinKOGO
Added topic A nice idea for indicator: Does it exist already?
Hi friends, Hope you are doing well. I'm looking for such this indicator I explain below: When you open multiple orders on same chart, there would be 2 alpha horizontal lines which you could drag to different levels to see overall profit/loss and
HosseinKOGO
Added topic Protect margin against next week "Market Gap"
Hi friends, Hope you are doing well. my full question is: How to detect last tick of week for my broker to protect margin against next week possible "Market Gap". In other words by detecting this tick, my EA would be able to put TP/SL or Pending
HosseinKOGO
Added topic Why my command execute after ExpertRemove()
Hi guys, I'm confused why this happens? void deinit() {} void start() {          ExpertRemove ();          Comment ( "Hi Hossein" ); } By this code I receive the comment
HosseinKOGO
Added topic Is there any predefined variable for current drawdown?
Hi friends, Hope you are doing well. I want to tell my EA if Current drawdown<-500$, Remove the expert. But I don't know how can I calculate current drawdown or if there is any predefined variable for this. Your advice is appreciated
HosseinKOGO
Added topic How to Limit IPs that can access my MT4 account?
Hi there, Hope you're having a nice day. I've joined a new broker recently. It offers a welcome bonus but it is forbidden to use VPNs or such that tools to connect it's trading servers. However I usually use VPN in my laptop to do the rest of my
HosseinKOGO
Added topic What would happen exactly from this code?
Hello friends, Please take a look at this: BuyOrder= OrderSend ( Symbol (),OP_BUY,LotSize,Ask,Slippage, 0 , 0 , NULL ,MagicA, 0 , clrBlue ); if (BuyOrder!=- 1 ) {          Print ( " Buy Opened " ); } . . . if (
HosseinKOGO
Added topic How to access "Trade Volume"?
Hi guys, As you may know, Volume[i] indicates "tick volume" rather than " trade volume ". So we can access only to how many times the price changes. Does anyone know how to access to "Trade Volume" of each candle? Is there any way that does the
HosseinKOGO
Added topic Why my OrderSend Function does not return the order ticket number?
Hi There, As the documentation says, the OrderSend function: Ord Returns number of the ticket assigned to the order by the trade server or -1 if it fails. It should return the recent opened ticket number right? But it always return 0 for me... Here
HosseinKOGO
Added topic What will happen to the attached EA if we restart MT4?
Hi there, What would happen to the EA if we restart MT4? Imagine your EA has the variable "int Status=0;" in global area. Its value may change just in start() function , and now after a week of trading with EA you decide to restart MT4 to prepare for
123