Forum

Display Chart within chart programmatically with MQL4 as indicator

hi everyone, I'm trying to create an indicator for MT4 that displays a chart inside another chart. Goal is to directly compare two different instruments within the same (full size)window. For example main chart is EURUSD and the one to compare is USDCAD. Similar as in tradingview where you can open

ATR showing in strategy tester allthough not on chart

I'm experiencing a strange behaviour in the strategy tester on MT5 and MT4. I'm reading the ATR value with following code which works fine but all though there is no ATR indicator on the testing template and I'm reading the ATR value from inside an expert advisor, that I'm testing, the ATR indicator

trade.PositionModify deliberately sets wrong SL/TP

I'm experiencing a very strange behaviour on MT5 with trade.PositionModify() calls. I have an EA that automatically sets SL and TP for every new order, no matter whether stoplimit(= order) or market order(= position). The strange thing is, it works fine for 3 times or so, sometimes only once, then

error with negative price as stop loss on BTCUSD chart

On MT5 I have an EA running on a BTCUSD chart. When a new market or stoplimit order is opened by the user, the EA is supposed to automatically add SL and TP. All good in general but on BTCUSD it may happen that when opening a sellstop or limitsell order that it's TP goes into the negtive price

Want to use the trademark "MetaTrader™" how/where can I get permission

This is probably a bit off but maybe someone can point me towarda the right address for this question. I tried to contact Meta Quotes Ltd. directly but they do not respond. I'd like to use "MetaTrader™" as part of the name for a youtube and telegram channel that presents EAs and indicators for

Modifying Limit and stop order's SL and TP while still pending

totally stuck on this one. scenario: EA for MT5 the EA is supposed to add SL and TP as soon as a new order is entered. orders can be all possible types from market to stop/limit order. IT#d working fine with the market orders but not at all with the limit and sop orders. I permanently(since 2 days)

read dependant MA(based on other indicator) value, placed in subwindow, from EA

Hi and thank you for reading this. I'm creating an EA for MT4 that needs to read a standard moving average indicator which is placed inside a subwindow and processes the values of another indicator in the same subwindow. How can I read the MA's value from my EA? Issues are, how to find this specific

EA - vertically scaling chart in mql4

I need to scale the chart to maximum(or something below a bit below) in mql4. like when you put your mouse over the bar on the right and drag upwards. I've already tried: ChartSetInteger ( 0 , CHART_SCALE , 0 , 5 ); but this only zooms the chart and leaves the scaling as is. thanks in advance

MT4 - MT5 massive divergence regarding candle display

hey :) totsday I observed a massive ddivergence displaying candle patterns in mt4 and mt5. while mt4 shows a normal bearish trend, mt5 displays a massive gap where candle theory says to be closed again. anyway, if charts do differ so heavily which one to rely on? mt4 or mt5 or neither? please see

Issues correctly positioning arrows on chart

hey :) I have an EA that creates signals for possible buy/sell entries by placing an arrow above/under the signal candle. my issue is, that depending on the chart wjere the EA is loaded thr arrows are placed too far away or too closely. please review attached images for examples. In case of a sell