molanis.com/forum - Tools for MetaTrader : The place to ask about the best expert advisor builder, expert advisor downloads, and expert advisor programming

AFTER YOU REGISTER SEND US AN EMAIL TO ACTIVATE YOUR ACCOUNT - Before posting:-1- Please read the user guide -2- Try the examples -3- Search in the forum
It is currently Thu May 09, 2024 9:11 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 23 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
 Post subject: Re: Crossing above or below 3 AMs and Moving Average of Stochast
PostPosted: Tue Jul 10, 2012 9:23 am 
Offline

Joined: Sun Jun 19, 2011 9:38 pm
Posts: 270
I have no idea why this will not work. Everything looks good to me.

@ molanisfx/admin, do you you have any ideas?

_________________
I'm not a programmer, but I play one on TV.


Top
 Profile  
 
 Post subject: Re: Crossing above or below 3 AMs and Moving Average of Stochast
PostPosted: Tue Jul 10, 2012 9:44 am 
Offline

Joined: Tue Nov 22, 2011 3:28 pm
Posts: 83
RJo wrote:
I have no idea why this will not work. Everything looks good to me.


Note: The EA that passed this working properly, but it works only if the candle is above the previous and current across the candle! What I need is to make the crossing in the same K and D candle!


Top
 Profile  
 
 Post subject: Re: Crossing above or below 3 AMs and Moving Average of Stochast
PostPosted: Tue Jul 10, 2012 12:52 pm 
Offline

Joined: Sun Jun 19, 2011 9:38 pm
Posts: 270
Oh, ok. If you want to ignore the previous candle, delete your Shift 1 TA blocks.

Note that without your MA's as filters, you will be trading every time K ticks above or below D (quite often).

_________________
I'm not a programmer, but I play one on TV.


Top
 Profile  
 
 Post subject: Re: Crossing above or below 3 AMs and Moving Average of Stochast
PostPosted: Tue Jul 10, 2012 3:20 pm 
Offline

Joined: Tue Nov 22, 2011 3:28 pm
Posts: 83
I actually tried to do this, but it did not work! Do not open any order! The. Mol in this post earlier! Try and you will not work.


Top
 Profile  
 
 Post subject: Re: Crossing above or below 3 AMs and Moving Average of Stochast
PostPosted: Wed Jul 11, 2012 10:52 pm 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
You could take a look at the user guide that shows different cross overs. The issue here is that when using shift 0 you cannot look at the signal after the fact. If you use shift 0, you trade at the open of the bar when open=close=high=low, so all your indicators will be calculated using the open (the first tick); then the bar continues and receives more ticks and at the end you get the last tick (close). Mt4 plots the last tick. If you look at the chart you may think, it's not trading fine, what you see is the values at the close but you are trading at the open.
If you use shift 1 and shift 2 to define the cross, what you see in the chart really matches the trading. You need to define what is better for you, use the current or the previous bar; take into account the limitations of using shift 0


Top
 Profile  
 
 Post subject: Re: Crossing above or below 3 AMs and Moving Average of Stochast
PostPosted: Thu Jul 12, 2012 9:44 am 
Offline

Joined: Tue Nov 22, 2011 3:28 pm
Posts: 83
Actually I need to operate the crossing based on the same candle, the candle and not before, as sometimes happens and only the candle later it opens a new order, and when it opens!


Top
 Profile  
 
 Post subject: Re: Crossing above or below 3 AMs and Moving Average of Stochast
PostPosted: Thu Jul 12, 2012 11:10 am 
Offline

Joined: Sun Jun 19, 2011 9:38 pm
Posts: 270
If you don't want to wait for the next closed candle to confirm your entry, try changing Completed Bars to Every Tick in your START icon. Delete all Shift 1 TA blocks and only use Shift 0. This should trade every tick.

For the reasons molanisfx says, neither visual nor automated backtesting will be accurate.

_________________
I'm not a programmer, but I play one on TV.


Top
 Profile  
 
 Post subject: Re: Crossing above or below 3 AMs and Moving Average of Stochast
PostPosted: Thu Jul 12, 2012 2:31 pm 
Offline

Joined: Tue Nov 22, 2011 3:28 pm
Posts: 83
That's how you say? Attached is the file .mol


Attachments:
Cruzamento K e D do Estocastico tick e shift 0.mol [11.7 KiB]
Downloaded 361 times
Top
 Profile  
 
 Post subject: Re: Crossing above or below 3 AMs and Moving Average of Stochast
PostPosted: Fri Jul 13, 2012 10:51 am 
Offline

Joined: Sun Jun 19, 2011 9:38 pm
Posts: 270
No. You had 2 buy conditions negating each other, and 2 sell conditions negating each other. Delete entire Shift 1 TA for BUY, and delete entire Shift 1 TA for SELL (see attached). Your START icon looks ok.

Reminder: Use your MA's to filter your entries, otherwise you will be in and out every few milliseconds.


Attachments:
Cruzamento K e D do Estocastico tick e shift 0.mol [7.65 KiB]
Downloaded 360 times

_________________
I'm not a programmer, but I play one on TV.
Top
 Profile  
 
 Post subject: Re: Crossing above or below 3 AMs and Moving Average of Stochast
PostPosted: Fri Jul 13, 2012 3:12 pm 
Offline

Joined: Tue Nov 22, 2011 3:28 pm
Posts: 83
So ... what I need is this: If the line 'K' is above the 'D' and then cross below the line 'D' Sell. Or if you happen to be selling a cross in the same candle, the candle and not later. Vice vesa to buy. Is it possible? Buy or sell only at the crossing of these lines!

If I leave only sell if the line 'K' is below the 'D' without crossing each candle every tick or open a new order, and that's not good!

I think I understand.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 23 posts ]  Go to page Previous  1, 2, 3  Next

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by Molanis © 2009