Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.
From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.
Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
Elite Section
Get access to private discussions, specialized support, indicators and trading systems reported every week.
Advanced Elite Section
For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
Hello,
I hope, someone can help me. I have written an Indicator - now I want to build an EA with it.
The Indicator calculates two momentums.
The first Indicator-Buffer is called "MomBurst", the second one is"Momdt".
As you can see in the graphes, if both of them turn up under the range<300 its time to go long. If both of them turn down over the range>300 its time to go short.
Can someone help me, creating an EA with this?
I don´t know, how to generate the signals.
If someone could code that, i would be very happy.
Here is the source:
=====================
//+------------------------------------------------------------------+
//| First_Indicator.mq4 |
//| JustY |
//| |
//+------------------------------------------------------------------+
#property copyright "JustY"
#property link ""
#property indicator_separate_window
#property indicator_buffers 2
#property indicator_color1 Red
#property indicator_color2 Silver
//---- Parameter
extern int time1 = 3;
extern int time2 = 5;
extern int time3 = 7;
//----
return(0);
}
//+------------------------------------------------------------------+
//| Custom indicator iteration function |
//+------------------------------------------------------------------+
int start()
{
int counted_bars=IndicatorCounted();
//----Check for Errors
if (counted_bars<0) return(-1);
//----last countet bar will recountet
if (counted_bars>0) counted_bars--;
int pos=Bars-counted_bars;
double dMedian1, dMedian2, dMedian3, dResult;
Comment("Hi! I´m here on the main chart window!");
//----main calculation loop
But it looks like, that it doesn´t work.
I am not really good in programming (and english ) with arrays, thats my problem.
Do I have to put the whole operation-block in a while{...}-function, like the other calculations, too?
Just look some minutes on the indicatorwindow and you will see it.
The red one is the course-speed, the silver one is the course-acceleration.
If both are positive, you just buy, when both are negative, you go short.
Later, a filter comes into the system to reduce the fail-signals like the last one, i had markered.
But first i have to get the signals to go long/short. I can´t code it, because I don´t really understand working with arrays.
Leider bin ich kein Coder und kann Dir nicht wirklich helfen, aber wenn Du vielleicht mal einen schon vorhandenen crossover EA nimmst und den/die alten Indikatoren kickst und durch Deinen erstzt via iCustom Indicator?
Hab ich schon öfter gemacht. Ist aber nicht das, was Du wirklich willst,oder?
Ich meine bevor Du gar nicht weiterkommst...?!?
Why don't you take an already existing crossover EA and change out the indicators with your new one? For now at least.
Just look some minutes on the indicatorwindow and you will see it.
The red one is the course-speed, the silver one is the course-acceleration.
If both are positive, you just buy, when both are negative, you go short.
Later, a filter comes into the system to reduce the fail-signals like the last one, i had markered.
But first i have to get the signals to go long/short. I can´t code it, because I don´t really understand working with arrays.
I hope, now someone can help me.
You're using discretion. I can tell by looking at your chart, so it can't be automated or traded mechanically. Your first trade, a buy, would not have came until the next bar. You didn't know that the indicator turned up until the next bar. The next trade, a sell, would not have came until the close of the following bar. The red line wasn't pointing down yet. The third trade would not have came until the following bar as well. You need to be careful of this.