Marbo
Marbo
Marbo
Added topic OrderModify() in MQL5?
Hi guys, I am migrating all my stuff from MQL4 to MQL5 and now I need to modify the stoploss of a position. I didn't find any corresponsing function to OrderModify() in MQL5. Can anyone tell me how to change the stoploss of a position when I received
Marbo
Added topic Big problems with iATR and MQL5
Hi guys, I am trying to convert all my stuff from MQL4 to MQL5 and I have a big problem with iATR (and a lot of other stuff). Firstly, the MQL5-iATR-function returns a handle. Why? It was so easy with MQL4. Just returned the number and you're done
Marbo
Added topic How can I define a default parameter for a function?
Hi guys, pretty difficult to explain in a headline. I have this function: double ClosePrice( string symbol, int timeframe, int position) {    return    iClose (symbol, timeframe, position); } And I call this function like this
Marbo
Added topic Any possibility to get the status of the crosshair?
I didn't find any ChartGetInteger() function showing if the crosshair is enabled. Are there other possibilites
Marbo
Added topic Can I check if CTRL or SHIFT is pressed when using CHARTEVENT_KEYDOWN?
Hi guys, I just used CHARTEVENT_KEYDOWN this way: if (lparam== "A" )... Is it somehow possible to check if SHIFT and A are pressed? I didn't find anything about it in the MQL4 docs
Marbo
Added topic Insert/remove indicator by CHARTEVENT_KEYDOWN possible?
Hey guys, I sometimes want to see the Bill Williams Fractal indicator in my charts and I wondered if it is somehow possible to insert it by just pressing a key. Removing it can be simply done by ChartIndicatorDelete() but I have no idea how to insert
Marbo
Added topic Script to calculate the risk of all open orders. Problems with JPY pairs.
Hi guys, can you tell me what's wrong with my calculations? Works fine on 5-digit-pairs as well as on metals but to get the correct values for JPY pairs I need to divide them by 100. But why? I thought my calculation is correct for every pair. void
Marbo
Added topic ObjectType() is always -1 although it is an existing object?!?
Hi guys, I open some charts, draw some lines and rectangles and then I drag the following script into one of the charts.  This script should print the names and types of the objects found in all charts. Interestingly, the names are all correct
Marbo
Added topic Mathematical formula problem
Hey guys, I know, it's pretty embarrassing but I can't solve this on my own. Can someone please tell me how to modify this formula, so that the result is b = .......... This is the formula: f = (a*b*c+b*d)*e/a As mentioned above, I need b. Thank
Marbo
Added topic EA's properties (allow live trading) when using the OpenChart() function are wrong
Hi, when I open a chart with the OpenChart() function the checkbox "allow live trading" in my EA's properties is always disabled. But when I open a new chart manually, the EA's properties are correct and live trading is allowed. I don't understand
Marbo
Added topic How can I convert the commission to pips/doubles to use it in my risk-management-code?
Hello forum, I have my entry and my stop-loss and I want to calculate the lot size according to my risk-management. It works fine and this is how I do it: double pipRisk = MathAbs (orderOpenPrice-orderStoploss); double lotSize  =
Marbo
Added topic Two MT4 instances (live and demo) possible with one VPS?
Hello, I never used a VPS but now I want to give it a try. My question is if I can run two MT4 instances at the same time on a VPS. The first instance should be a live account and the second one should be a demo account for testing purposes. Is that
Marbo
Added topic Pulldown menu in show_inputs within a script possible?
Hello, I just want to know if it is possible to modify this script that I don't need to type the template's name. Instead I want to define some template names like {"temp1", "temp2", "temp3"} and these should be shown in a pulldown menu. Difficult to
Marbo
Added topic Can I create an OBJ_FIBO without the 23.6% level?
Hi guys, is it somehow possible to change the default creation of an OBJ_FIBO with only 38/50/61 levels? I tried to delete one level by using OBJPROP_LEVELS but this value is always zero after creating an OBJ_FIBO. Any ideas? Maybe I can change the
Marbo
Added topic Buy stop / sell stop with a line
hi, is there any better way to place a buy stop or sell stop ? i heard about an indicator (or script?) that prints two lines. one line for the buy/sell stop and the other line for the stoploss. these lines should be easily moved like a normal
Marbo
Registered at MQL5.community
123