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 Mon May 13, 2024 2:10 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Bullspower + Bearspower
PostPosted: Sat Nov 10, 2012 12:46 am 
Offline

Joined: Sat May 12, 2012 10:47 am
Posts: 34
Hi
I'm a Bulls with Power + Bears Power Indicator

But Ea is long only.

Can anyone help me what's wrong.

Thanks Pit


Attachments:
Bull.mol [6.1 KiB]
Downloaded 407 times
Top
 Profile  
 
 Post subject: Re: Bullspower + Bearspower
PostPosted: Tue Nov 13, 2012 12:16 pm 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
I think it wold be better that you work with the ta+ icons instead of the mql icon. It is easier to set the trading condition in the ta icon and check better to spot for errors.
In your ea you have errors in the mql icon :
i.e. iBullsPower(Symbol(),0,13,PRICE_CLOSE,1)>iBearsPower(Symbol(),0,13,PRICE_CLOSE,1) - here you are saying if a > a which needs to be changed


Top
 Profile  
 
 Post subject: Re: Bullspower + Bearspower
PostPosted: Tue Nov 13, 2012 10:55 pm 
Offline

Joined: Sat May 12, 2012 10:47 am
Posts: 34
Hello

Do not understand the error should be higher as Bull Power Bear Power.
Then long.

It says so in the formula.

Bear Power> Bull Power then short.

Thanks Pit


Top
 Profile  
 
 Post subject: Re: Bullspower + Bearspower
PostPosted: Sat Nov 17, 2012 12:14 pm 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
Depending on the pair and timeframe most of the times Bullspower > Bearspower
You can use the indicator builder to build the indicator Bullspower - Bearspower and most of the time will be above 0

I tested your ea with EURUSD and added code to show the difference just to be sure
Print("bulls-bear=",iBullsPower(Symbol(),0,13,PRICE_CLOSE,1)-iBearsPower(Symbol(),0,13,PRICE_CLOSE,1));

For the whole year bulls>bears in the 1h chart. Your ea is fine.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 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