How can I upload my own indicator?
-
I am creating a new EA and I need an indicator that is not available on the Fxdreema list. I see I can select my personal indocators but every time I click on "click here" to do it, nothing happens. How can I upload it?
-
click here?
To add a new indicator (its input parameters actually), go to "My Indicators", then click on "Add Custom Indicator" and then on the right side you will see a button on the top. Click on it, browse to the file, load it and its parameters should appear. Then Click on "Update"
-
Ok, done. One more question, please. I read the indicator itself is not uploaded. Does it mean it must be active on my chart for the EA to use it?
-
I was saying this only as an information. The indicator must exists as an .ex4 file in /Indicators of course. Even if you manually write an EA, you don't actually need the indicator contents, you only need the name and the input parameters of the indicator. Indicators work as a separate program, they are not embedded into the EA. The EA only "calls" them, in other words - tells MT4 to load them and get the information from them - and they are automatically loaded and connected with the EA.
If you manually load and indicator to the chart, this is another instance of the indicator, but its data is not used by the EA. The EA deals with indicators automatically.
-
I have a question (more like a desperate plea for help) about custom indicators so rather than start a new thread I'll pop it here. I'm trying to create an EA which uses the output signals (are these called buffers?) from two custom indicators. I read the help about using the 'trace' block but couldn't find the block itself. I thought maybe it had been replaced with the 'Indicator tester' block but I really am a complete novice at this so didn't know what to do with it.
Anyway, one of the indicators gives out big red and green arrows (amongst other signals) and the other is a moving average indicator which changes between Green (Up), Red (Down) and Yellow (Flat) - what I'd like to do is have it so that when several of these MAs are in agreement with each other and the last big arrow signal (within X candles) the EA opens a buy/sell order and we take it from there. Seems simple enough but I can't get my head around how to make the conditions do what I need them to do.
The part of code below is for the ma in colour indi... hoepfully pasted the right bit.
//---- indicator settings #property indicator_chart_window #property indicator_buffers 3 #property indicator_color1 Yellow #property indicator_color2 Green #property indicator_color3 Red extern int MAPeriod=14; extern int MAType=1; //---- buffers double ExtMapBuffer1[]; double ExtMapBuffer2[]; double ExtMapBuffer3[]; //---- variables int MAMode; string strMAType; //+------------------------------------------------------------------+ //| Custom indicator initialization function | //+------------------------------------------------------------------+ int init() { IndicatorBuffers(3); //---- drawing settings SetIndexBuffer(2,ExtMapBuffer1); SetIndexBuffer(1,ExtMapBuffer2); SetIndexBuffer(0,ExtMapBuffer3); SetIndexStyle(2,DRAW_LINE,STYLE_SOLID,2); SetIndexStyle(1,DRAW_LINE,STYLE_SOLID,2); SetIndexStyle(0,DRAW_LINE,STYLE_SOLID,2);So at the moment I have the left operand in the condition block set to my indicators > ma in colour > selected the buffer (e.g., green) == value, numeric, 1 (right operand).... clearly this isn't right. I only have the ex4 for the other indicator so I'll try find a way to either attach it or link it here...
Thanks in advance and apologies for the headache!
-
A link to the second indi I'm trying to use http://dropcanvas.com/4nu13 - it's the HGI indicator from stevehopwoodforex, created by minds far superior to mine.
-
You know, I explain arrow indicators so often, that now I really hate to do it
Search for EMPTY_VALUE in the forum and probably you will find some of these explanations.
Unfortunately there is no built-in custom indicator (in /Indicators) that puts arrows and works as regular custom-made arrow indicators. I wanted to make and example and put it in "Examples", but what can I do. Yes, I can find some custom indicator and do it with it, but then the person who will see that example will not have this indicator installed, and I prefer all examples to be ready for testing.Yes, I renamed "Indicator tester" to "Trace". I also updated it a little bit, so now it outputs prettier information. You can always use "Trace" on the server for testing indicators, no problem at all.
Hint: For arrow indicators, if they don't work, try with Candle ID bigger than 0
-
Thank you so much for your reply. Been away but now I'm back I'll try everything you've mentioned.