
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
...
human18
In my experience it is impossible to make an expert adviser based om recalculating indicator
Already been there (tried to make a couple of EAs based on such indicators) and then I realized that we (humans) really do underestimate ourselves. What is a lot of times quite easy for us (to estimate) is completely undefinable in terms of computer language yet, and that is the reason why EAs still work based on signals. But if those signals can change backwards we end up with a losing EA
I know that I am already parroting myself regarding similar subjects, but, in my opinion, recalculating indicators can be used in estimation mode only, never in signaling mode. And if we can not use them in signaling mode then that rules them out of being used in EAs
hi mladen
i want an expert adviser depending in this indicator if you don't mind
i want to test the indicator in real market movement , as you know it is very difficult if i stay all my day in from on my PC
please help me on that
regardshuman18
In my experience it is impossible to make an expert adviser based om recalculating indicator
Already been there (tried to make a couple of EAs based on such indicators) and then I realized that we (humans) really do underestimate ourselves. What is a lot of times quite easy for us (to estimate) is completely undefinable in terms of computer language yet, and that is the reason why EAs still work based on signals. But if those signals can change backwards we end up with a losing EA
I know that I am already parroting myself regarding similar subjects, but, in my opinion, recalculating indicators can be used in estimation mode only, never in signaling mode. And if we can not use them in signaling mode then that rules them out of being used in EAsthank you very match mladen, i got the idea ,, and i am really sorry to keep you busy reading my requests.
thanks a lot and i appreciated your help, and really i learn lots from you.
:)
Don't worry about "to keep you busy reading my requests.". That is sometimes the only way to learn and the willingness to learn and to really learn is, in my opinion, the best that one that decided to trade can do. That way our decisions in trading are becoming what they should be
thank you very match mladen, i got the idea ,, and i am really sorry to keep you busy reading my requests. thanks a lot and i appreciated your help, and really i learn lots from you.
Mlader.
What are the buffer for Swing and SubSwing for icustom function? The check must be done 3 bars back right?
Thank you
...
dasio
Check buffer 0 for swings. If it is different than EMPTY_VALUE then there is a swing. If it is equal to high of that bar it is an upper swing. If it is equal to low of the bar then it is a lower swing.
The same rules apply for a sub-swings except that you have to check buffer 2
Mlader.
What are the buffer for Swing and SubSwing for icustom function? The check must be done 3 bars back right?
Thank youhi,
i try to modify an indicator powered by Coders Guru for draw trendline based on TTM. Originally it draw trendline based on ZigZag.
But nothing appear when attach the indicator.
Why?
Thank you
zigzag_channels_swing.mq4
...
dasio
Change wherever you have a condition checking that goes like this : temp != 0, to temp != EMPTY_VALUE
Then you are going to get something like this :
hi,
i try to modify an indicator powered by Coders Guru for draw trendline based on TTM. Originally it draw trendline based on ZigZag.
But nothing appear when attach the indicator.
Why?
Thank you
zigzag_channels_swing.mq4Malden thank you for your support.
With the code below i want to find the "pattern in the image and if it found it open an order. But it don't work.
What's wrong? It is only a test
Thank you.
{
double temp = 0;
int count = 0;
double p1 , p2, p3, p4, p5, p6;
int back =0;
int buys=0;
int sells=0;
int res;
//get last up
for(int i = 0 ; i < 1500 ; i++)
{
temp = iCustom(NULL,0,"TTM scalper",0,i);
if (temp != EMPTY_VALUE) count = count+1;
if(count == back + 1 && temp != EMPTY_VALUE) {p1 = temp;}
if(count == back + 2 && temp != EMPTY_VALUE) {p2 = temp;}
if(count == back + 3 && temp != EMPTY_VALUE) {p3 = temp;}
if(count == back + 4 && temp != EMPTY_VALUE) {p4 = temp;}
if(count == back + 5 && temp != EMPTY_VALUE) {p5 = temp;}
if(count == back + 6 && temp != EMPTY_VALUE) {p6 = temp;}
if(count == back + 6) break;
}
if (p1p1 && p2>p3 && p5>p3 && p6<p4){
//----
for(int e=0;e<OrdersTotal();e++) {
if(OrderSelect(i,SELECT_BY_POS,MODE_TRADES)==false ) break;
if(OrderSymbol()==Symbol()) {
if(OrderType()==OP_SELL) buys++;
}
}
return(sells);
if (sells == 0){
double Stoploss = p6;
res=OrderSend(Symbol(),OP_SELL,0.10,Bid,30,Stoploss,0);}
}
return(0);
}Malden thank you for your support.
With the code below i want to find the "pattern in the image and if it found it open an order. But it don't work.
What's wrong? It is only a test
Thank you.
{
double temp = 0;
int count = 0;
double p1 , p2, p3, p4, p5, p6;
int back =0;
int buys=0;
int sells=0;
int res;
//get last up
for(int i = 0 ; i < 1500 ; i++)
{
temp = iCustom(NULL,0,"TTM scalper",0,i);
if (temp != EMPTY_VALUE) count = count+1;
if(count == back + 1 && temp != EMPTY_VALUE) {p1 = temp;}
if(count == back + 2 && temp != EMPTY_VALUE) {p2 = temp;}
if(count == back + 3 && temp != EMPTY_VALUE) {p3 = temp;}
if(count == back + 4 && temp != EMPTY_VALUE) {p4 = temp;}
if(count == back + 5 && temp != EMPTY_VALUE) {p5 = temp;}
if(count == back + 6 && temp != EMPTY_VALUE) {p6 = temp;}
if(count == back + 6) break;
}
if (p1p1 && p2>p3 && p5>p3 && p6<p4){
//----
for(int e=0;e<OrdersTotal();e++) {
if(OrderSelect(i,SELECT_BY_POS,MODE_TRADES)==false ) break;
if(OrderSymbol()==Symbol()) {
if(OrderType()==OP_SELL) buys++;
}
}
return(sells);
if (sells == 0){
double Stoploss = p6;
res=OrderSend(Symbol(),OP_SELL,0.10,Bid,30,Stoploss,0);}
}
return(0);
}[/PHP]
I try also in this way. But nothing. uff. What is wrong??
[PHP]//+------------------------------------------------------------------+
//| TTMEA.mq4 |
//| Copyright 2012, MetaQuotes Software Corp. |
//| http://www.metaquotes.net |
//+------------------------------------------------------------------+
#property copyright "Copyright 2012, MetaQuotes Software Corp."
#property link "http://www.metaquotes.net"
//+------------------------------------------------------------------+
//| expert initialization function |
//+------------------------------------------------------------------+
int init()
{
//----
//----
return(0);
}
//+------------------------------------------------------------------+
//| expert deinitialization function |
//+------------------------------------------------------------------+
int deinit()
{
//----
//----
return(0);
}
//+------------------------------------------------------------------+
//| expert start function |
//+------------------------------------------------------------------+
int start()
{
double temp = 0;
int count = 0;
double p1 , p2, p3, p4, p5, p6;
int back =0;
int buys=0;
int sells=0;
int res;
//get last up
int n = 0;
int i = 0;
double p[6];
while( n < 6) {
temp = iCustom(NULL,0,"TTM scalper",0,i);
if(temp != EMPTY_VALUE) {
p[n] = temp;
n++;
}
i++;
}
if (p[6]
p[6] && p[5]>p[4] && p[2]>p[4] && p[1]<p[3]){
//----
for(int e=0;e<OrdersTotal();e++) {
if(OrderSelect(i,SELECT_BY_POS,MODE_TRADES)==false ) break;
if(OrderSymbol()==Symbol()) {
if(OrderType()==OP_SELL) buys++;
}
}
return(sells);
if (sells == 0){
double Stoploss = p[1];
res=OrderSend(Symbol(),OP_SELL,0.10,Bid,30,Stoploss,0);}
}
return(0);
}
//+------------------------------------------------------------------+
I found the error.
It's completly wrong.
Sorry .