Wackena,
What functions do "usestartnewbar" and "useclosesignal" have?
Thanks.
What functions do "usestartnewbar" and "useclosesignal" have?
Thanks.
tlatomi expert advisor MT4 1 reply
The Tlatomi Experience 372 replies
The Orginal Tlatomi Method - EA 14 replies
tlatomi method question 3 replies
Jaydog's Vages/Tlatomi Trades and discussion 54 replies
Open Time<o></o>
Type<o></o>
Lots<o></o>
Item<o></o>
Price<o></o>
S / L<o></o>
T / P<o></o>
Price<o></o>
Swap<o></o>
Profit<o></o>
2006.08.31 23:21<o></o>
buy<o></o>
0.10<o></o>
eurusd<o></o>
1,2818<o></o>
0,0000<o></o>
0,0000<o></o>
1,2808<o></o>
-0.40<o></o>
-10.00<o></o>
Quoting A1CruiserDislikedI installed Bogie_tlatomi_v1.0e version setting UseDots=1 and UseCross=1. Short after the installation it opened a buy trade on EURUSD though the EMA cross showed to the other direction - as far as I was able to judge.
<TABLE class=MsoNormalTable style="MARGIN-LEFT: 2.75pt; WIDTH: 432.85pt; BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width=577 border=0><TBODY><TR style="HEIGHT: 12.75pt"><TD style="PADDING-RIGHT: 3.5pt; PADDING-LEFT: 3.5pt; BACKGROUND: silver 0% 50%; PADDING-BOTTOM: 0cm; WIDTH: 81pt; PADDING-TOP: 0cm; HEIGHT: 12.75pt; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial; moz-background-inline-policy: -moz-initial" vAlign=bottom noWrap width=108>Open Time<?xml:namespace prefix = o /><o></o>
</TD><TD style="PADDING-RIGHT: 3.5pt; PADDING-LEFT: 3.5pt; BACKGROUND: silver 0% 50%; PADDING-BOTTOM: 0cm; WIDTH: 37.25pt; PADDING-TOP: 0cm; HEIGHT: 12.75pt; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial; moz-background-inline-policy: -moz-initial" vAlign=bottom width=50>Type<o></o>
</TD><TD style="PADDING-RIGHT: 3.5pt; PADDING-LEFT: 3.5pt; BACKGROUND: silver 0% 50%; PADDING-BOTTOM: 0cm; WIDTH: 36.25pt; PADDING-TOP: 0cm; HEIGHT: 12.75pt; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial; moz-background-inline-policy: -moz-initial" vAlign=bottom width=48>Lots<o></o>
</TD><TD style="PADDING-RIGHT: 3.5pt; PADDING-LEFT: 3.5pt; BACKGROUND: silver 0% 50%; PADDING-BOTTOM: 0cm; WIDTH: 40.35pt; PADDING-TOP: 0cm; HEIGHT: 12.75pt; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial; moz-background-inline-policy: -moz-initial" vAlign=bottom width=54>Item<o></o>
</TD><TD style="PADDING-RIGHT: 3.5pt; PADDING-LEFT: 3.5pt; BACKGROUND: silver 0% 50%; PADDING-BOTTOM: 0cm; WIDTH: 40.35pt; PADDING-TOP: 0cm; HEIGHT: 12.75pt; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial; moz-background-inline-policy: -moz-initial" vAlign=bottom width=54>Price<o></o>
</TD><TD style="PADDING-RIGHT: 3.5pt; PADDING-LEFT: 3.5pt; BACKGROUND: silver 0% 50%; PADDING-BOTTOM: 0cm; WIDTH: 40.35pt; PADDING-TOP: 0cm; HEIGHT: 12.75pt; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial; moz-background-inline-policy: -moz-initial" vAlign=bottom width=54>S / L<o></o>
</TD><TD style="PADDING-RIGHT: 3.5pt; PADDING-LEFT: 3.5pt; BACKGROUND: silver 0% 50%; PADDING-BOTTOM: 0cm; WIDTH: 40.35pt; PADDING-TOP: 0cm; HEIGHT: 12.75pt; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial; moz-background-inline-policy: -moz-initial" vAlign=bottom width=54>T / P<o></o>
</TD><TD style="PADDING-RIGHT: 3.5pt; PADDING-LEFT: 3.5pt; BACKGROUND: silver 0% 50%; PADDING-BOTTOM: 0cm; WIDTH: 40.35pt; PADDING-TOP: 0cm; HEIGHT: 12.75pt; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial; moz-background-inline-policy: -moz-initial" vAlign=bottom width=54>Price<o></o>
</TD><TD style="PADDING-RIGHT: 3.5pt; PADDING-LEFT: 3.5pt; BACKGROUND: silver 0% 50%; PADDING-BOTTOM: 0cm; WIDTH: 38.3pt; PADDING-TOP: 0cm; HEIGHT: 12.75pt; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial; moz-background-inline-policy: -moz-initial" vAlign=bottom width=51>Swap<o></o>
</TD><TD style="PADDING-RIGHT: 3.5pt; PADDING-LEFT: 3.5pt; BACKGROUND: silver 0% 50%; PADDING-BOTTOM: 0cm; WIDTH: 38.3pt; PADDING-TOP: 0cm; HEIGHT: 12.75pt; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial; moz-background-inline-policy: -moz-initial" vAlign=bottom width=51>Profit<o></o>
</TD></TR><TR style="HEIGHT: 12.75pt"><TD style="PADDING-RIGHT: 3.5pt; PADDING-LEFT: 3.5pt; PADDING-BOTTOM: 0cm; WIDTH: 81pt; PADDING-TOP: 0cm; HEIGHT: 12.75pt" vAlign=bottom noWrap width=108>2006.08.31 23:21<o></o>
</TD><TD style="PADDING-RIGHT: 3.5pt; PADDING-LEFT: 3.5pt; PADDING-BOTTOM: 0cm; WIDTH: 37.25pt; PADDING-TOP: 0cm; HEIGHT: 12.75pt" vAlign=bottom width=50>buy<o></o>
</TD><TD style="PADDING-RIGHT: 3.5pt; PADDING-LEFT: 3.5pt; PADDING-BOTTOM: 0cm; WIDTH: 36.25pt; PADDING-TOP: 0cm; HEIGHT: 12.75pt" vAlign=bottom width=48>0.10<o></o>
</TD><TD style="PADDING-RIGHT: 3.5pt; PADDING-LEFT: 3.5pt; PADDING-BOTTOM: 0cm; WIDTH: 40.35pt; PADDING-TOP: 0cm; HEIGHT: 12.75pt" vAlign=bottom width=54>eurusd<o></o>
</TD><TD style="PADDING-RIGHT: 3.5pt; PADDING-LEFT: 3.5pt; PADDING-BOTTOM: 0cm; WIDTH: 40.35pt; PADDING-TOP: 0cm; HEIGHT: 12.75pt" vAlign=bottom width=54>1,2818<o></o>
</TD><TD style="PADDING-RIGHT: 3.5pt; PADDING-LEFT: 3.5pt; PADDING-BOTTOM: 0cm; WIDTH: 40.35pt; PADDING-TOP: 0cm; HEIGHT: 12.75pt" vAlign=bottom width=54>0,0000<o></o>
</TD><TD style="PADDING-RIGHT: 3.5pt; PADDING-LEFT: 3.5pt; PADDING-BOTTOM: 0cm; WIDTH: 40.35pt; PADDING-TOP: 0cm; HEIGHT: 12.75pt" vAlign=bottom width=54>0,0000<o></o>
</TD><TD style="PADDING-RIGHT: 3.5pt; PADDING-LEFT: 3.5pt; PADDING-BOTTOM: 0cm; WIDTH: 40.35pt; PADDING-TOP: 0cm; HEIGHT: 12.75pt" vAlign=bottom width=54>1,2808<o></o>
</TD><TD style="PADDING-RIGHT: 3.5pt; PADDING-LEFT: 3.5pt; PADDING-BOTTOM: 0cm; WIDTH: 38.3pt; PADDING-TOP: 0cm; HEIGHT: 12.75pt" vAlign=bottom width=51>-0.40<o></o>
</TD><TD style="PADDING-RIGHT: 3.5pt; PADDING-LEFT: 3.5pt; PADDING-BOTTOM: 0cm; WIDTH: 38.3pt; PADDING-TOP: 0cm; HEIGHT: 12.75pt" vAlign=bottom width=51>-10.00<o></o>
</TD></TR></TBODY></TABLE>
I attached the screenshot and the preset file here.Ignored
double myMA1 =iMA(NULL,0,5,0,MODE_EMA,PRICE_CLOSE,0); double myMA2 =iMA(NULL,0,9,0,MODE_SMA,PRICE_CLOSE,0);
if( UD > 0 && UseDots==true) a1=1; // Buy signal = 1, Sell signal = -1 if( myMA1 >= myMA2 && UseCross==true) b1=1; // 5EMA greater than 9SMA if( m ==0 && UseStartNewBar==true) c1=1; // M=0, end of bar and start of new bar if(a1==1 && b1!=1 && c1!=1) Buy1=1; // Dot to dot if(a1==1 && b1==1 && c1!=1) Buy1=2; // Dot to dot & 5EMA/9SMA cross if(a1==1 && b1==1 && c1==1) Buy1=3; // Dot to dot & 5EMA/9SMA cross & start of new bar.
Quoting MichaelwDislikedWackena,
What functions do "usestartnewbar" and "useclosesignal" have?
Thanks.Ignored
Quoting wackenaDislikedWith the yellow line is 5EMA and white line is 9SMA, the order look premature.
I need to assure the 5EMA and 9SMA code in EA is the same as the indicator. Take a look and advise if something is different.
Inserted Codedouble myMA1 =iMA(NULL,0,5,0,MODE_EMA,PRICE_CLOSE,0); double myMA2 =iMA(NULL,0,9,0,MODE_SMA,PRICE_CLOSE,0);Ignored
QuoteDislikedBelow is the Cross code. It is fairly simple. Again, do we see anything wrong.
Inserted Codeif( UD > 0 && UseDots==true) a1=1; // Buy signal = 1, Sell signal = -1 if( myMA1 >= myMA2 && UseCross==true) b1=1; // 5EMA greater than 9SMA if( m ==0 && UseStartNewBar==true) c1=1; // M=0, end of bar and start of new bar if(a1==1 && b1!=1 && c1!=1) Buy1=1; // Dot to dot if(a1==1 && b1==1 && c1!=1) Buy1=2; // Dot to dot & 5EMA/9SMA cross if(a1==1 && b1==1 && c1==1) Buy1=3; // Dot to dot & 5EMA/9SMA cross & start of new bar.
Anything obvious?
Wackena
Quoting A1CruiserDislikedIn the meantime there is a new order on GBPUSD that is similar to that one discussed earlier:
Date: 2006.09.01
Time: 16:16 (Broker time = GMT+3)
Buy
Price: 1.8973
The 5 EMA is clearly below the 9 SMA, the UD = 1; the settings are the same (see attached files).Ignored
Quoting wackenaDislikedI'm seeing the same thing on my v1.0f $5,000 demo started 1700 EDT yesterday on 9 pairs. Even so, the account has:
Balance 5,136.59 (3 wins - 1 loss)
equity 5,305.37
Float - +168.78 (4 open orders)
I will keep reviewing EA to understand this phenomenon.
WackenaIgnored
Quoting wackenaDislikedWith the yellow line is 5EMA and white line is 9SMA, the order look premature.
I need to assure the 5EMA and 9SMA code in EA is the same as the indicator. Take a look and advise if something is different.
Inserted Codedouble myMA1 =iMA(NULL,0,5,0,MODE_EMA,PRICE_CLOSE,0); double myMA2 =iMA(NULL,0,9,0,MODE_SMA,PRICE_CLOSE,0);
Below is the Cross code. It is fairly simple. Again, do we see anything wrong.
Inserted Codeif( UD > 0 && UseDots==true) a1=1; // Buy signal = 1, Sell signal = -1 if( myMA1 >= myMA2 && UseCross==true) b1=1; // 5EMA greater than 9SMA if( m ==0 && UseStartNewBar==true) c1=1; // M=0, end of bar and start of new bar if(a1==1 && b1!=1 && c1!=1) Buy1=1; // Dot to dot if(a1==1 && b1==1 && c1!=1) Buy1=2; // Dot to dot & 5EMA/9SMA cross if(a1==1 && b1==1 && c1==1) Buy1=3; // Dot to dot & 5EMA/9SMA cross & start of new bar.
Anything obvious?
WackenaIgnored
Quoting lietuveDislikedHi, Wackena,
It is interesting to know how the boolean things are working in MQL4's nested loops, lets say if some condition is true - and that condition is inside a loop, and after the loop there is some result/output which calls to action, so the action is performed (lets say BUY), and then the next iteration of loop starts again, because the condition is still true? Right?
Well, I didn't look at the code (again too busy) but what you have posted here is a condition not of a cross of MAs, but just one beeing of a bigger value than the other. This is a condition that can last quite for a while, until next cross.
Maybe I am wrong, then I am sorry for putting my 2 pennies where they don't belong. But I would really appreciate if you'd explain it to me.
Thanks in advance, and thank you for all the work and dedication helping here.Ignored
Quoting wackenaDisliked
Afer the dot change, the cross does not need to be pending. It just needs to confirm the 5ema is above for buy and below for sell. I don't know if it's better after dot change that the cross must be pending and then wait until the cross happens. A pending cross option can be added. I will test.
Well, that's the intent. The present problem is that EA is not confirming correct MA positions be opening trade position.
WackenaIgnored
Quoting A1CruiserDislikedI installed Bogie_tlatomi_v1.0e version setting UseDots=1 and UseCross=1. Short after the installation it opened a buy trade on EURUSD though the EMA cross showed to the other direction - as far as I was able to judge.
<TABLE class=MsoNormalTable style="MARGIN-LEFT: 2.75pt; WIDTH: 432.85pt; BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width=577 border=0><TBODY><TR style="HEIGHT: 12.75pt"><TD style="PADDING-RIGHT: 3.5pt; PADDING-LEFT: 3.5pt; BACKGROUND: silver 0% 50%; PADDING-BOTTOM: 0cm; WIDTH: 81pt; PADDING-TOP: 0cm; HEIGHT: 12.75pt; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial" vAlign=bottom noWrap width=108>Open Time<?xml:namespace prefix = o /><o></o>
</TD><TD style="PADDING-RIGHT: 3.5pt; PADDING-LEFT: 3.5pt; BACKGROUND: silver 0% 50%; PADDING-BOTTOM: 0cm; WIDTH: 37.25pt; PADDING-TOP: 0cm; HEIGHT: 12.75pt; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial" vAlign=bottom width=50>Type<o></o>
</TD><TD style="PADDING-RIGHT: 3.5pt; PADDING-LEFT: 3.5pt; BACKGROUND: silver 0% 50%; PADDING-BOTTOM: 0cm; WIDTH: 36.25pt; PADDING-TOP: 0cm; HEIGHT: 12.75pt; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial" vAlign=bottom width=48>Lots<o></o>
</TD><TD style="PADDING-RIGHT: 3.5pt; PADDING-LEFT: 3.5pt; BACKGROUND: silver 0% 50%; PADDING-BOTTOM: 0cm; WIDTH: 40.35pt; PADDING-TOP: 0cm; HEIGHT: 12.75pt; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial" vAlign=bottom width=54>Item<o></o>
</TD><TD style="PADDING-RIGHT: 3.5pt; PADDING-LEFT: 3.5pt; BACKGROUND: silver 0% 50%; PADDING-BOTTOM: 0cm; WIDTH: 40.35pt; PADDING-TOP: 0cm; HEIGHT: 12.75pt; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial" vAlign=bottom width=54>Price<o></o>
</TD><TD style="PADDING-RIGHT: 3.5pt; PADDING-LEFT: 3.5pt; BACKGROUND: silver 0% 50%; PADDING-BOTTOM: 0cm; WIDTH: 40.35pt; PADDING-TOP: 0cm; HEIGHT: 12.75pt; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial" vAlign=bottom width=54>S / L<o></o>
</TD><TD style="PADDING-RIGHT: 3.5pt; PADDING-LEFT: 3.5pt; BACKGROUND: silver 0% 50%; PADDING-BOTTOM: 0cm; WIDTH: 40.35pt; PADDING-TOP: 0cm; HEIGHT: 12.75pt; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial" vAlign=bottom width=54>T / P<o></o>
</TD><TD style="PADDING-RIGHT: 3.5pt; PADDING-LEFT: 3.5pt; BACKGROUND: silver 0% 50%; PADDING-BOTTOM: 0cm; WIDTH: 40.35pt; PADDING-TOP: 0cm; HEIGHT: 12.75pt; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial" vAlign=bottom width=54>Price<o></o>
</TD><TD style="PADDING-RIGHT: 3.5pt; PADDING-LEFT: 3.5pt; BACKGROUND: silver 0% 50%; PADDING-BOTTOM: 0cm; WIDTH: 38.3pt; PADDING-TOP: 0cm; HEIGHT: 12.75pt; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial" vAlign=bottom width=51>Swap<o></o>
</TD><TD style="PADDING-RIGHT: 3.5pt; PADDING-LEFT: 3.5pt; BACKGROUND: silver 0% 50%; PADDING-BOTTOM: 0cm; WIDTH: 38.3pt; PADDING-TOP: 0cm; HEIGHT: 12.75pt; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial" vAlign=bottom width=51>Profit<o></o>
</TD></TR><TR style="HEIGHT: 12.75pt"><TD style="PADDING-RIGHT: 3.5pt; PADDING-LEFT: 3.5pt; PADDING-BOTTOM: 0cm; WIDTH: 81pt; PADDING-TOP: 0cm; HEIGHT: 12.75pt" vAlign=bottom noWrap width=108>2006.08.31 23:21<o></o>
</TD><TD style="PADDING-RIGHT: 3.5pt; PADDING-LEFT: 3.5pt; PADDING-BOTTOM: 0cm; WIDTH: 37.25pt; PADDING-TOP: 0cm; HEIGHT: 12.75pt" vAlign=bottom width=50>buy<o></o>
</TD><TD style="PADDING-RIGHT: 3.5pt; PADDING-LEFT: 3.5pt; PADDING-BOTTOM: 0cm; WIDTH: 36.25pt; PADDING-TOP: 0cm; HEIGHT: 12.75pt" vAlign=bottom width=48>0.10<o></o>
</TD><TD style="PADDING-RIGHT: 3.5pt; PADDING-LEFT: 3.5pt; PADDING-BOTTOM: 0cm; WIDTH: 40.35pt; PADDING-TOP: 0cm; HEIGHT: 12.75pt" vAlign=bottom width=54>eurusd<o></o>
</TD><TD style="PADDING-RIGHT: 3.5pt; PADDING-LEFT: 3.5pt; PADDING-BOTTOM: 0cm; WIDTH: 40.35pt; PADDING-TOP: 0cm; HEIGHT: 12.75pt" vAlign=bottom width=54>1,2818<o></o>
</TD><TD style="PADDING-RIGHT: 3.5pt; PADDING-LEFT: 3.5pt; PADDING-BOTTOM: 0cm; WIDTH: 40.35pt; PADDING-TOP: 0cm; HEIGHT: 12.75pt" vAlign=bottom width=54>0,0000<o></o>
</TD><TD style="PADDING-RIGHT: 3.5pt; PADDING-LEFT: 3.5pt; PADDING-BOTTOM: 0cm; WIDTH: 40.35pt; PADDING-TOP: 0cm; HEIGHT: 12.75pt" vAlign=bottom width=54>0,0000<o></o>
</TD><TD style="PADDING-RIGHT: 3.5pt; PADDING-LEFT: 3.5pt; PADDING-BOTTOM: 0cm; WIDTH: 40.35pt; PADDING-TOP: 0cm; HEIGHT: 12.75pt" vAlign=bottom width=54>1,2808<o></o>
</TD><TD style="PADDING-RIGHT: 3.5pt; PADDING-LEFT: 3.5pt; PADDING-BOTTOM: 0cm; WIDTH: 38.3pt; PADDING-TOP: 0cm; HEIGHT: 12.75pt" vAlign=bottom width=51>-0.40<o></o>
</TD><TD style="PADDING-RIGHT: 3.5pt; PADDING-LEFT: 3.5pt; PADDING-BOTTOM: 0cm; WIDTH: 38.3pt; PADDING-TOP: 0cm; HEIGHT: 12.75pt" vAlign=bottom width=51>-10.00<o></o>
</TD></TR></TBODY></TABLE>
I attached the screenshot and the preset file here.Ignored
Quoting lietuveDislikedAre you still unhappy about that trade?Ignored
Quoting lietuveDislikedWith all my respect to the work you've done, I should say that in regards to the mas and dots you are wrong. We've chosen this indicator, because it reacts to the market conditions better than any other that I know of; The appearance of a new dot on the chart signals the very big probability of the change in trend; the dot more often than not signals the bar where the change is going to take place. That's the beauty of Silver Trend. No doubts, that any lagging indicator, as ma, would be pointing to the direction of an old trend at that moment. So if you want MAs to confirm the change of the trend, the EA has to wait for the MAs cross to appear, quite a few bars after the dot was placed. That would be quite late entry into the market in most cases. But if after the appearance of a dot, the EA is "confirming" the trend beeing up because 5ema is above the 9sma, and initiates buy, no doubt 85% of the time it is a lost trade. If EA would wait until mas'd cross in the direction of the one indicated by the dot, in a longer TF the trade'd would be lost as well, or with a very little profit, because on the longer TF MAs are not profitable, especially in a ranging or sideways market. Try this: let's say a "sell" dot has appeared and 5ema is above 9 sma - make this a condition to sell. When the emas cross, make a 2nd sell (this time following mas signal), and exit both trades as a "buy" dot appears. At the same time EA might execute 1 trade in the direction of a dot "buy" even when the 5ema is below 9sma. But the second trade of buy should be confirmed by a cross of mas. Try this setup and see what happens. Don't believe me, just try.
And let us know the results.
Thanks again for your efforts and patience. I know you did a wonderful EA - the "Fenix", everybody is excited about it, but every EA is based on a different logic, so what is good for Fenix (multiple trades, big expose to the market, having floats) is not good for Tlatami. The style should be changed. I wonder what OrangeRoshan is dooing. He is extremely intelligent and smart man, most probably he would have something better to say than I, but even me, I know that the method is good, all we need now is - refine it the proper way. You are the person that could do it and thank you for that.
Deep regards.Ignored