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 Apr 29, 2024 7:27 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: 2 signals only 1 mode
PostPosted: Mon Jun 24, 2013 4:14 am 
Offline

Joined: Wed May 29, 2013 3:21 pm
Posts: 3
Hello ,
I would like to follow the buy/sell signal of this indicateur in order to trigger a Long or Short entry ; but I don't know how to use the TA block and also to chose the right setting (ask , close number...?).Furthermore , this indicator has only one mode.
How could I do ? Many thanks for you reply


Attachments:
JJN-Nugget.mq4 [5.3 KiB]
Downloaded 660 times
Top
 Profile  
 
 Post subject: Re: 2 signals only 1 mode
PostPosted: Mon Jun 24, 2013 10:01 am 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
This indicator was created to show the signal and to to share it with an ea.
Here is some code from the indicator
if(ValSum[0]<(High[0]+Low[0])/2)
{
ObjectSet("NuggetDirection",OBJPROP_XDISTANCE,PosX+5);
ObjectSetText("NuggetDirection","BUY",28,"Lucida Sans Unicode",BuyColor);
ObjectSetText("NuggetLevel","above "+DoubleToStr(lastprice,DisplayDecimals),9,"Lucida Sans Unicode",BuyColor);
}
In plain English :
if the signal <(High[0]+Low[0])/2) then paint Buy

Unfortunately you need to add some code to use it with an ea. The only easy work around I see is:
-create an indicator with the strategy builder with the equation (High[0]+Low[0])/2)
-import both indicators into a TA and build something like if the signal <(High[0]+Low[0])/2) then Buy
For both indicator use mode 0 to get the right signal. To learn about importing indicators see page 36 of the user guide here http://www.molanis.com/images/stories/m ... de_MT4.pdf


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