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
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
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. //+------------------------------------------------------------------+
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
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
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
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
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
Сегодня валютные торги на Московской бирже начались резким падением рубля. Курсы доллара и евро в очередной раз ставят рекорды. Так, доллар в 10:10 по мск почти дошел до 52 рублей (был на отметке в 51,9995), добавил 1,59 руб. к уровню закрытия. Евро на 10:11 по мск торговался за 64,6 руб...
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
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
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
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
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
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
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--) {
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
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
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