mar
mar
Friends

Add friends via their profile or user search and you will be able to see if they are online

mar
Added topic Change timeframe of the current chart with a script doesn't work
Hi, just a few word about my idea: I want to visually backtest support and resist zones. To do that I have to go back in time and plot them. Then I scroll forward bar by bar until a line is hit. Then I decide what to do and scroll further. Just a
mar
Added topic Find objects within a defined price range
Hello, I have several horizontal lines and trendlines in a chart and I want to check if any of them is within a defined price range. Right now I check all objects in a loop if any of them is between my price levels. Is there another/easier
mar
Added topic Using a script in all opened chart windows (user32.dll)
Hi, I think most of you know that script below. You can drag it into a chart, select a timeframe and all opened chart windows will be set to this timeframe. //+------------------------------------------------------------------+
mar
Added topic Problems with MathSRand and MathRand in a script
Hi, I thought that MathRand()  returns an Integer value within the range of 0 to 32767 based on MathSrand(). Can somebody please tell me why this script always prints the same number? void OnStart ()   {    MathSrand ( Bars
mar
Added topic How do you decide if a pair is too expensive to trade (spread costs)?
Hi forum, I had a look at some exotics and noticed that they often have large spreads but their daily ranges are also much higher than the major's ranges. For example the USDMXN has around 30 pips spread but the average daily range of the last 5 days
mar
Added topic Error when placing two pending CFD orders
Hi coders, I always receive an error #130 when I place two pending CFD orders. Placing two forex orders is no problem. But when I want to trade oil, gold, dax, s&p (anything where MODE_PROFITCALCMODE = 1) only one order is sent and for the second
mar
Added topic How can I adjust a price to a multiple of Ticksize?
Hi, I plot a line into a chart and then I execute a test-script. If the horizontal line is below the price it opens a market buy order and if the line is above the current price a sell market order is placed. Sometimes I get an error #130. I read
mar
Added topic Metatrader trendline problems [no MQL4 question]
Hi,  I think most of you have experienced that the Metatrader causes problems when you plot a trendline on a specific timeframe and switch to another one. Today I noticed a very large difference in the GBPCHF. Attached you see a weekly and a
mar
Сегодня валютные торги на Московской бирже начались резким падением рубля. Курсы доллара и евро в очередной раз ставят рекорды. Так, доллар в 10:10 по мск почти дошел до 52 рублей (был на отметке в 51,9995), добавил 1,59 руб. к уровню закрытия. Евро на 10:11 по мск торговался за 64,6 руб...
mar
Added topic Help needed with coding an order-script
Hi forum, I want to do a script which places a trade according to moneymanagement rules. It should place three lines in the chart. Entry, SL and TP. Of course in different colors/styles to distinguish them. Then I want to drag them to the correct
mar
Added topic How to use an array in the OnInit() ?
Hey guys,  it seemed to be a simple thing but I don't know how to do it: I wanted to make an indicator which prints arrows above a Pinbar. Pretty easy so far. But I don't want the indicator check the whole chart with every tick. The Pinbars in
mar
Added topic Does anybody have a script which changes the symbols of all open charts?
Hey there, I only have scripts which change all timeframes or templates but I need the symbol to be changed. It is pretty annoying to change the symbol of the charts manually when using six timeframes
mar
Added topic MTF Problem with EMAs
Hi Forum, I want to check if the EMA50 is above the EMA100 in the current displayed timeframe and additionally in the D1 timeframe. The current timeframe is checked correctly but there is a problem with the D1. I think that I can't use the variable i
mar
Added topic ASCII Codes in Comment() possible?
Hi coders, I saw this part of an ASCII-Code-Table and I wanted to use the arrows in a Comment(). But the compiling doesn't work. I know that the codes are no strings but I have no idea how to use them in Comment(). If this doesn't work, is there any
mar
Added topic How to execute an EA every hour?
Hello Forum, usually I use the following code to avoid the execution of my EA on every tick because I calculate with closed bars: void OnTick() { static datetime Time0;    if (Time0 == Time[ 0 ]) return ;    Time0 = Time[ 0 ]; But
mar
Added topic Deleting text-objects doesn't work
Hey  guys, can anyone tell me what is wrong with this code? The text-objects are not deleted and I don't know why... int OnInit ()   {    for ( int i = ObjectsTotal (); i<= 0 ; i--) {       
mar
Added topic Always error #130 when OrderModify()
Hey guys, I want to do a simple thing.. Just move my stop to breakeven when the trade is the same amount of pips in profit. That's all. And whatever I try, I always get error 130 . I don't understand why this is an invalid SL? Can anyone help? void
mar
Added topic How to test a trailing-stop EA with the strategy tester?
Hi guys, I have almost never used the strategy tester and so I have some problems with testing a trailing-stop I just coded. I chose a pair, a timeframe and the dates from yesterday until today. I saw the chart opened and the first bars were printed
mar
Added topic Economic calendar as indicator for MT4
Hi guys, does anyone have a WORKING Version of an economical calendar ? I only find old threads with dead database links. Thanks
mar
Added topic Float / Double / DoubleToStr...
Hey guys, I try to optimize my indicators a little bit by implementing new MQL4 code. I have some general questions about data types. When I need a high or low of a bar, I used the data type double. But now I see that float uses only 4 bytes instead