Hoi Cheng
Hoi Cheng
Sun Jupiter LLC
Friends 1
Hoi Cheng
Added topic .chm file in MT4
hi, I'm using MetaEditor and MT4 via Wine and whenever I try to use the offline help, it crashes everything.   Where would I locate the .chm file within the MT4 folders?  I would like to access this with a CHM viewer. Thank you
Hoi Cheng
Added topic What is the proper application of Classes in MQL4?
I've been coding for about a year now but I've coded from a procedural paradigm.  If this then that, if price does this, modifyOrder that, so to speak I noticed that MQL4 also can be an object orientated language but I just cannot conceieve
Hoi Cheng
Added topic all declared arrays into a list of arrays
Hi, at the start of my program I am declaring a bunch of arrays, and they all increment in size +1 per tick and they all maintain equal size to one another. double array1[], array2[], array3[], ..... , array99999[] void OnTick () {
Hoi Cheng
Added topic Execute after the last Tick
The OnTick() function is driven by the receiving of a new tick.  But what if I want to execute a block of code immediately after the last tick of the trading week, long before the first tick of the following trading week? Any suggestions on how
Hoi Cheng
Added topic Passing array name to function
Hello, I'm writing a function that utilizes FileWriteArray to simplify the body of my code as my program will need to utitlize this function serveral times. I am getting the errors: "bidArray - parameter conversion not allowed" "bidArray - invalid
Hoi Cheng
Added topic TestGenerator current spread
It appears the strategy tester actually uses the current spread from the broker but we know that the spread can change throughout the day.   Is there anyway to declare the spread within the code, I would be interested in setting the spread
Hoi Cheng
Added topic Error 5002
Hi , I am getting error 5002 from trying to write this filename: filename = IntegerToString (AccountNumber())+ ": " + Symbol ()+ " " +date+ " - ask.bin" ; file_handle= FileOpen (filename, FILE_WRITE | FILE_BIN ); if (file_handle!= INVALID_HANDLE ) {
Hoi Cheng
Added topic timing loops
I may consider running a lengthy For loops in my code.  Is there a function or something within MQL4 that allows you to time a block of code like %%timeit in a ipython notebook? Thanks
Hoi Cheng
Added topic MQL4 Language Fluency
A friend of mine brought to my attention the best way to learn a speaking language is just learn the 2000 most commonly used words. I've seen him pick up local languages with high competency in impressively short amounts of time. So I'm wondering
Hoi Cheng
Added topic WebRequest() cannot be executed in the Strategy Tester.... or can it?
I'm running a strategy in the tester where certain actions is supposed to call the WebRequest function and send me a Telegram message. In the MQL Reference manual, it clearly states " WebRequest () cannot be executed in the Strategy Tester " on both
Hoi Cheng
Added topic Zero-th Day
Hi, I'm learning how to play with time on MQL4.  I would like the Day to begin on Zero rather than One. For some reason the output on the comment still starts at 1 at the beginning of the week rather than 0 as intended eventhough I have the day
Hoi Cheng
Added topic Struct Array out of range?
Hi, I'm learning how to create struct arrays and so I attempted to replicate the concept from the FileWriteArray() example code in the MQL Reference. I think my logic seems sound but there may be something I'm overlooking as I'm just learning about
Hoi Cheng
Added topic FileWriteArray() creating empty .bin file
I am currently using MT4 version 4.00 build 1260 I am trying to get FileWriteArray to store all the values of an array into a .bin file The way the script is supposed to work is there is an array called secondsArray[] that stores the actual seconds
Hoi Cheng
Added topic saving backtesting charts
hi, backtesting in visual mode can take forever.  is there anyway to save the visual charts afterwards?  and I'm not talking about a picture, rather, able to load the chart entries and exits back into MT4 to be re-used again for analysis
Hoi Cheng
Added topic automatic renewals
Hi, is there a way to set up automatic renewals for a trading signal?  Thanks
Hoi Cheng
Registered at MQL5.community