Jeepack
Friends
5
Requests
Outgoing
Jeepack
Added topic Need help understanding asynchronous function call...
Hi everyone, I'm trying to better understand how an EA handles asynchronous vs synchronous function calls. I edited this post to simplify my question since I didn't get any replies. Assume I have these lines of code in an EA: void OnInit () {
Jeepack
Added topic Problem with CHARTEVENT_OBJECT_CLICK, any ideas how to fix it?
If you have a selected horizontal line underneath a button and you click on the button while your mouse is over the horizontal line that's hidden by the button, even if the button has a higher OBJPROP_ZORDER value, the click's priority will be given
Jeepack
Added topic Chart stops processing new events and ticks. Does anyone know what might be happening?
If I let my chart run with all my indicators and EA, it will sometimes stop processing new events and ticks until I force it to get unstuck by changing timeframes. 1. No errors in the log 2. MT5 is still perfectly responsive (I can draw objects on
Jeepack
Added topic SYMBOL_TRADE_TICK_VALUE_LOSS vs SYMBOL_TRADE_TICK_VALUE_PROFIT
*edit: when I posted the thread, I was confused about the correct way to calculate position size based on entry price and stop loss price, so don't take anything I say here as truth, unless someone else verifies it in the comments.*
Jeepack
Added topic VWAP Bands - Can't figure this one out...
*edit: I figured out how to do it, it's basically a weighed standard deviation formula instead of a regular standard deviation. And it uses N rather than N-1 (unlike Bollinger Bands). More details in my last reply
Jeepack
Added topic How to hide indicator plot
I want to hide/show my indicator plot based on a criteria. If I set the color to clrNONE, I still get a pop-up on mouseover of the invisible plot. That's still the simplest way to hide the indicator though so I wonder if there is a similarly simple
Jeepack
Added topic PLOT_DRAW_BEGIN vs filling start of buffer with empty values
If you don't want to waste cpu when you don't need to calculate indicator values for all available rates, is it best to fill all values you want to skip with empty values or is it better to just use PLOT_DRAW_BEGIN to set where you want to start and
Jeepack
Added topic Indicator based on other indicator and closing price, not sure how...
Hey everyone, I'm currently writing code for an indicator that uses the price[i] version of OnCalculate instead of open[i],high[i],low[i],close[i] version because that's the simplest way I found, so far, to be able to choose to apply the indicator to
Jeepack
Added topic Why learn Python if you code with Mql5?
Hi, I'm wondering if learning Python to apply for coding jobs with investment/trading firms would be worth it. As a retail trader, I work with Mql5 every day and I don't see any reasons to switch to Python. But when I look at coding job offers
Jeepack
Added topic OnInit function processed before rates info is updated... how to fix?
Hi, Sometimes, when I manually change the symbol on a chart, there's a delay between the moment the chart loads from the saved cache and the moment it updates its rates info and prints the new ticks/bars received from the server. This is rare but
Jeepack
Added topic Most efficient way to access values defined for each timeframe?
Hi, I've got different settings associated with each timeframe in MT5 so I set them up in an array like this: // timeframe specific settings double timeframe_vars[][ 3 ] = { { PERIOD_M1 , m1_setting_1
Jeepack
Added topic Depth of liquidity pool in Forex?
What is a good way to measure the depth of a Forex liquidity pool? Any metrics correlate well with that and are easy to measure in your MT5 platform or when looking at broker stats online? Like execution delay ? Depth of market? The amount of tick
Jeepack
Added topic Can a buffer update in the middle of two commands?
I've been wondering if I need to do anything about that possibility. Perhaps the odds of it happening are too small, perhaps it's theoretically impossible for a reason that I'm not aware of. And if it can be an issue, I'm wondering what I should do
Jeepack
Added topic Problem with ObjectsDeleteAll... because function uses a synchronous call? ...what to do?
Hi everyone, I don't think this has been asked yet... In the documentation on ObjectsDeleteAll(), you can read: ObjectsDeleteAll "Note: The function uses a synchronous call, which means that the function waits for the execution of all commands that
Jeepack
Added topic Speed difference if var set as global vs being passed on each call??
I have two options for my code and was wondering if I was correct in assuming the first option would be more efficient but I'm not sure why I don't see it more often, any thoughts? Is there a problem with this approach, does it make a difference
: