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 Sat May 11, 2024 11:07 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Got My Answer already
PostPosted: Thu May 26, 2011 5:59 pm 
Offline

Joined: Fri Feb 04, 2011 9:48 pm
Posts: 114
Location: Canada
Got my answer already thanks

_________________
Building a future with automated trading


Last edited by AlGer on Thu Oct 25, 2012 11:06 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Breakout System
PostPosted: Thu Oct 25, 2012 11:07 am 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
In a breakout system you need to capture when the price is above (or below) a price channel or some combination of indicators. For mt5 we have some examples that use an adx or price channel. In the examples, the close price is compared to the price of the channels.
In your strategy you have a couple of errors:
-You compare bid to a fixed price. You should compare it to an indicator or price level.
-Using bid may not be the best option since you trade bars
-You trade bars and compare two ma indicator, they have the same period but calculated using the open price and close price. This is ok but you cannot do that comparison in the current bar. If you trade bars, the trading conditions are evaluated when the first tick of the bar is received. This tick is the open price. Your ma conditions are calculating the ma value using the open price (since at open price, open price of bar = close price of bar because the bars is not formed). If your indicators use the close price, most of the time you need to calculate the indicator value in the previous bar (use shift =1)


Last bumped by AlGer on Thu Oct 25, 2012 11:07 am.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

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