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 Tue May 14, 2024 4:03 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Custom Indicator help
PostPosted: Mon May 06, 2013 4:41 pm 
Offline

Joined: Fri Jul 27, 2012 8:23 pm
Posts: 6
Hi

I imported the attached custom indicator in the TA box and a notice came up which has been attached.

The indicator basically displays bullish candlestick patterns and bearish patterns. So i dragged and dropped a TA box, imported the custom indi.

Under the custom field i wrote "Pattern_Recognition_Master_V3 extern bool Show_ShootStar_Alert_2 = true;"

I selected Mode 1 & Shift 0

I selected = to Current Symbol current symbol and timeframe and shift 0.

I did this because i want it to recognise the shooting start 2 pattern and execute a sell signal.

I tried flipping the mode and shift around and it just orders sells all the time, one after the other.

Any help.


Attachments:
File comment: Custom indi
Pattern_Recognition_Master_v3.ex4 [23.41 KiB]
Downloaded 461 times
File comment: Picture
Molanis Custom Indicator.png
Molanis Custom Indicator.png [ 124.34 KiB | Viewed 8229 times ]
Top
 Profile  
 
 Post subject: Re: Custom Indicator help
PostPosted: Mon May 06, 2013 5:22 pm 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
Post the indicator mq4 file for us to look how the signals come - we may be able to tell you which signals to use (or mode)
Also post the strategy file .mol for molanis


Top
 Profile  
 
 Post subject: Re: Custom Indicator help
PostPosted: Mon May 06, 2013 5:49 pm 
Offline

Joined: Fri Jul 27, 2012 8:23 pm
Posts: 6
Attached is the indicator and strategy. thanks for helping.


Attachments:
Shooting Star EA.mol [4.87 KiB]
Downloaded 468 times
Pattern_Recognition_Master_v3.mq4 [27.21 KiB]
Downloaded 539 times
Top
 Profile  
 
 Post subject: Re: Custom Indicator help
PostPosted: Mon May 06, 2013 5:52 pm 
Offline

Joined: Fri Jul 27, 2012 8:23 pm
Posts: 6
Also, this indi gives signals for around 12 different candlestick patterns. I want to be able to include all of them in my strategy. E.g sell trade shootings star, dark cloud cover etc and buy signal hammer, doji, piercing line etc.


Top
 Profile  
 
 Post subject: Re: Custom Indicator help
PostPosted: Mon May 06, 2013 9:15 pm 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
That indicator was created to show signals but do not have the code to pass the signal to an ea.
It only has 2 signals, buy and sell:
SetIndexBuffer(0, downArrow);
SetIndexBuffer(1, upArrow);


Looking at the code it seems that sell is mode 0, and buy is mode 1. Try making it show only one pattern and get the signal for that pattern using mode 0 an 1.


Top
 Profile  
 
 Post subject: Re: Custom Indicator help
PostPosted: Tue May 07, 2013 6:28 am 
Offline

Joined: Fri Jul 27, 2012 8:23 pm
Posts: 6
How do you mean? recode the indicator to show only one pattern and use that?


Top
 Profile  
 
 Post subject: Re: Custom Indicator help
PostPosted: Tue May 07, 2013 3:35 pm 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
I think the indicator has options to hide some patterns. If you hide all but one you may get it as a signal.


Top
 Profile  
 
 Post subject: Re: Custom Indicator help
PostPosted: Wed May 08, 2013 10:14 am 
Offline

Joined: Fri Jul 27, 2012 8:23 pm
Posts: 6
It has options to hide patterns. So for example i should make false the following for patterns i dont want and leave the one i do as true?

extern bool Display_ShootStar_2 = true;
extern bool Show_ShootStar_Alert_2 = true;
extern bool Display_ShootStar_3 = true;
extern bool Show_ShootStar_Alert_3 = true;
extern bool Display_ShootStar_4 = true;
extern bool Show_ShootStar_Alert_4 = true;
extern color Color_ShootStar = Red;
int Text_ShootStar = 8;

Also, what is the custom field for in the TA block? I wrote in the custom field "Pattern recognition Master_V3 extern bool Show_ShootStar_Alert_2 = true;" as i wanted it to use the shoot star 2 pattern. I'm i on the right track or do i need to write something else in the custom field?

Thanks for all your help.


Top
 Profile  
 
 Post subject: Re: Custom Indicator help
PostPosted: Wed May 08, 2013 2:59 pm 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
Yes leave only one pattern as true. The import process will tell you what is the info for the custom fields (if the indicator is well written).


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