Hi guys, I use a script to print a rectangle to display support and resist zones. Now my problem is that the script only prints the rectangles to the current bar because I use TimeCurrent() as the second time value. I read in another thread that a
Hey guys, I made a ColorOsMA Indicator and it works fine. Now I wanted to add two horizontal lines to the indicator. It is the first step to program my own divergence-indicator. The indicator should print the lines at the last top and the last low of
Hey guys, I just want to print some rules on the right side of the chart. But there is a problem I don't understand. Why is my string-array automatically converted to a number-array?! The compliling error occurs in the row containing ObjectSetText()
Hey coders, I want to do an order script. Right now I use the numbers 0-5 in the options to determine the type of order . Is it somehow possible to use a pulldown menu in the options from that I can choose OP_BUY, OP_SELL ... ? Sometimes the numbers
Hey coders, I made a small Moneymanagement indicator which worked fine for me. But since the new MQL4 it causes problems I can't handle. When you drag this indicator to your chart some numbers are printed on the very right side. The first number
Hey guys, can somebody tell me where the error is? Here is the code: #property indicator_chart_window #property indicator_buffers 2 #property indicator_color1 Lime #property indicator_color2 Red double SMAup[], SMAdn[];
Hi coders, as mentioned in the headline, I developed a short script. Unfortunately it doesn't work at all. Any help is very appreciated! int start() { //---- int counted_bars= IndicatorCounted (); if
Hi, can somebody tell me why this script only displays rounded, 4-decimal values, although I use a 5-digit-broker? int start() { //---- datetime drop_time = WindowTimeOnDropped (); int
Hey guys, I read many topics about opening a chart with a script or some questions about opening a chart in an EA but I couldn't find a solution. My indicator checks different pairs for different setups. When a setup is found it is displayed in a
Hi Forum, I created a small indicator printing the spread as a label-object. It works fine. I just have a technical question: The label-object is printed with every tick . Is it a problem when the object is printed and printed again? Is is
Hi Forum, I think most of you know that problem: You see a very big and choppy range in the chart window and after a successful breakout this terribly looking range becomes tiny and tradeable. Usually I compress the y-axis a little bit. That makes a
Hi Forum, I use the MetaTrader on two Monitors with many small charts. When I maximize one chart, it is stretched over two monitors and I hate that. So my idea was to create a script (which could be executed with a hot key) to stretch the active
Hi, this EA should close 50% of the position when TP1 is reached and modify the order by placing the stoploss to breakeven and setting TP2 as the take profit for the other 50%. Unfortunately it doesn't work at all... Maybe somebody could help
Hi coders, I wanted to create a script which contains user-defined colors. But there is always a compiling error. I think it is not possible to initialize an array with user-defined variables. But how can I solve this problem? When I initialize the
Hi, I use a script which needs some DLLs to work. Every time I use it, I have to confirm that importing DLLs is allowed and I have to de-select that every single DLL call must also be confirmed. So I would like to automatically have the green
Hi Forum, can someone tell me how to populate the array correct? I only get zeros as a result of test[i]. int init() { int test[]; for ( int i = 1 ; i<= 10 ; i++) {
Hi, I use a scanner in a dashboard-style like you can see in the attached image. It scans for Pinbars in all currency pairs in all timeframes. A red dash means that the last bar was a "Short-Pinbar" (long upper shadow), green means a long
Hello Foum, I use different timeframes in an indicator to make some calculations. At the moment I use all timeframes by creating two arrays like these: string Timeframe[] = { "M1" , "M5" , "M15" , "M30" , "H1" , "H4" , "D1" , "W1" }; int
Hi Forum, I wanted to print some comments on the left side of the chart but the chart is sometimes overlapping the text and make it unreadable. Therefore I wanted to hide a part of the chart by using a black object. I tried it with a rectangle but it