Forum

Update HST File

Hello, How can I update the H4 HST File via code? As you can see the file sometimes doens't get updated even for days. Even after many candles have closed in MT4 and History center reflects new candle data. Cheers, Eashan

Error Code 6 while creating new order - How to fix

Hello, I'm getting the following error 6 in my code while creating a new order. What does the error mean and how can I fix it? Cheers, Eashan

How to subscribe to signals proportionally?

Hello, I'm looking to subscribe to a MT4 Signal but the trader has very low equity around $300. How can I subscribe to to his equity proportionally? I see no option in MT4 for this. I want to put in $600 and make my trades 2x his. Cheers, Eashan

Error Code 6 - How to fix?

Hello, I'm coding up an EA. In the EA, I get the following error while trying to modify an order: 0 12:35:41.007 Algorithm1 XAUUSD,H1: Failed. Order Modified 1.5To3 SLOrder #664704280, TPOrder #664695196, false 2025.94 2026.0. Error Code: 6 2 12:35:41.007 Algorithm1 XAUUSD,H1: ExpertRemove function

Get datetime in epoch/timestamp

Hello, I'm trying to get the opening time of a bar in timestamp/epoch. Time[0] The only solution I'm finding on MQL4 site is not using the property #strict, which I'm not liking as a solution as it'll convert all datetime to timestamps. Is there a way to print the time of a bar in timestamp? Cheers