Just a question on the working of a trailing stop loss (TSL).
Do I need to be connected to the server for the TSL to execute? I have had three failed TSL's in the last two days. I execute a buy and set the TSL to 30 PIP. I shut down the PC overnight and the next morning, it had not executed...
Is there an advantage of this code or is it possible to say:
else (OrderType must bi OP_SELL)
Hello, is it possible to customize the metatrader client? we would like to put in some new functionality, like a new button where our customers get a different look - no charting, just signals, programmed in mlq. If this is impossible, is there any ability to get the interface discription how the...
Hey, Just a quick note to trading robot developers and system automators. I successfully wrapped the mtapi.dll (MetaTrader version 3.x API) ages ago for my own use, and now I'm happy to share my hard work for free. My wrapped MetaTrader v3.xx API for dotNet framework features:...
I am trying write an indicator that requires more than 8 buffers for counting. The indicator needs only 2 buffers for display, but more than 6 additional buffers are required for calculation. How do I allocate additional buffers for counting/calculation?
The DMI indicator in MetaTrader crosses and movement is not like DMI on TradeStation. The EasyLanguage code in TradeStation looks much differnet than the DMI code in MetaTrader4. Does anyone have ideas or code that mimics TradeStation DMI? Without this, I will not be able to use MetaTrader4 as my...
I've discussed this through the support email. But since english is not my native language , guess I didn't make it clear...
Anyway, please have a look at this:
In MT4, after I draw a trendline, say a Arrow Up, I can define on what timeframes it will show by changing "visualization"...
Ok. So I'm working on an expert advisor in MetaTrader 4. I left it running during the night only to find that no trades were placed. I reduced the code to only one line that executes the OrderSend function. Since then, and after reviewing the journal event logs, I found that I was running build...
I have the fallowing code:
int total = OrdersTotal();
for (int i = 0; i < total; i++)
if (OrderClosePrice() <= OrderStopLoss() + 0.0005)
OrderModify( OrderTicket(), NULL, Ask - 40 * Point, OrderTakeProfit(), 0, Aqua);...
is there a feature in metatrader that will automatically calculate and show me the pivot, support and resistance levels based on previous period price action? would be nice to have one implemented, thanks
I developed an indicator and it behaves strangely when changing the timeframe. Find below an indicator that behaves the same way.
In fact the indicator is ok in a given timeframe and while receiving live data. When changing timeframe, sometimes it continues to work properly and sometimes, the...
When compiling your moving averages custom indicator I get the following errors..
'SetIndexDigits' - function is not defined
'SetIndicatorArray' - function is not defined
C:\Program Files\MetaTrader 4\experts\indicators\moving average.mq4 (30, 4)
Thanks as always.....
Hi, I have a question about the "IsConnected" function with regards to how it works. If this function is used within an Expert, it will obviously provide "true" when MetaTrader is connected to the trading server. However, if the the connection is broken for any reason, MetaTrader won't be receiving...
I want to set up an alert in my candlesticks chart, for example in 5min chart, while the length of the coming candlestick is longer than 30 point. But there is some wrong in my programe,please correct it , or give me a new
#property copyright "mpfx"
#property link "http://www...
I'm currently running MetaTrader v1.65 and with the release of 1.66, was expecting it to carry out the automatic update. However, when I start MetaTrader up, it doesn't carry out the automatic upgrade to version 1.66. I've tried running LiveUpdate.exe manually, which just seems to exit out...
I am creating an indicator with the ARROW style. I want to place my arrows at a certain relative offset below or above the candlestick. But to be visually pleasant, I must know the vertical offset that the price chart spans. Even better, visually pleasant means for example that I should know...
How can I display the line name in the chart?
let's say I add a new horizontal line, at a given price. I want to have its name displayed just above the line.
I don't want to point it with the mouse and wait until the instant box shows me the name and the value. I want its name shown always.
I've noticed a small problem today which I suspect is a bug. If objects placed on a chart when buy/sell/limit orders are placed, are selected with the mouse cursor, the displayed popup text field displays the price level which the mouse pointer is currently on, rather than the price level...
I'm a little confused. Can someone tell me or show me some code snippets to do the following:
I would like to make an expert that would merely follow the trend based upon ASCTrend. Once a signal to buy or sell is generated, on a 15 min chart, as long as the current bar closes below the previous bar...
I notice that there are function calls to some of the indicators like iMA(), iMACD(), etc. I am creating a custom indicator. What is the procedure to add function calls that can be invoked from Expert?
Thanks for your assistance.