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 Sun May 19, 2024 12:27 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 14 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: CCI Cross Zero Line
PostPosted: Wed Feb 03, 2010 10:14 pm 
Offline

Joined: Wed Feb 03, 2010 10:09 pm
Posts: 15
Hi

The TA function could only used to validate one indicator against another, such as in the moving average example.

For most indicators, I would like to initiate a trade when the CCI cross its level, such as the zero line or whatever level we declare, say 100.

How would we code it?

Rgd


Top
 Profile  
 
 Post subject: Re: CCI Cross Zero Line
PostPosted: Wed Feb 03, 2010 10:35 pm 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
On the TA block compare your indicator to User Defined Number - UserNumber (positive and negative numbers) or User Defined Price - UserPrice (positive number). Just enter the number - zero in your case

Molanis Team


Top
 Profile  
 
 Post subject: Re: CCI Cross Zero Line
PostPosted: Thu Feb 04, 2010 12:18 am 
Offline

Joined: Wed Feb 03, 2010 10:09 pm
Posts: 15
Hi

I am looking for a crossover from below to above for buy signal.
The given solution merely tests for the current bar to be above zero.
Suppose I activate the EA and the current bar is already few days old, it initiates a buy and that not correct.

Rgd


Top
 Profile  
 
 Post subject: Re: CCI Cross Zero Line
PostPosted: Thu Feb 04, 2010 9:43 am 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
You need to use the option shift. Please look at viewtopic.php?f=6&t=13&p=49&hilit=shift#p49
Add two TA, one that looks into current bar the other one that looks into previous bar. Connect them with an AND
so: CCI Previous (Shift 1)<0 AND CCI Current (shift 0)>0
Remember that using just this condition you get too many signals i.e. when it goes from -1 to 1 and then -1. To make it better I will add another trading rule or confirmation with a different indicator.

Molanis Team


Top
 Profile  
 
 Post subject: urgent request I seek an MACD EA.But confused.
PostPosted: Thu Feb 04, 2010 2:27 pm 
Offline

Joined: Thu Feb 04, 2010 12:35 pm
Posts: 6
hello molanisx

apologize for childish querry here; I am not a programmer and an end user forex trader hence very much collapsed with coding., as I am not getting enough coders support I seek this support from you.
http://www.forexfactory.com/showthread.php?t=218637

can u make me an macd EA with the above parameters., I have posted above in the forex factory thread explaining everything I need.

I am very much confused with and I am not a programmer I need 4 TA's for and I dont know how to block them into one., and comparing macd for zero line cross finds difficult for me.,

can u help me coding them and let me learn casual at free hours , I m tight and urgent with financial needs right now.,even if u wish I can pay for this kind help through paypal.

Lack of co-ordination from coders got me here.seek help now and I will learn .

regards
nair


Top
 Profile  
 
 Post subject: Re: CCI Cross Zero Line
PostPosted: Thu Feb 04, 2010 4:14 pm 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
Really complex EAs.
Some questions come to mind:
-sl and tp hidden? you mean not sending them with the order
- ranging - trending? how do you define when is ranging or trading? with MAs?
- trend strength, how do you measure it? which scale?

Molanis has a forex consulting unit. You can contact them directly at sales at molanis.com or at http://www.molanis.com/about-molanis/contact-us


Top
 Profile  
 
 Post subject: Re: MACD Cross Zero Line
PostPosted: Thu Feb 04, 2010 10:54 pm 
Offline

Joined: Thu Feb 04, 2010 12:35 pm
Posts: 6
molanisfx wrote:
Really complex EAs.
Some questions come to mind:
-sl and tp hidden? you mean not sending them with the order
- ranging - trending? how do you define when is ranging or trading? with MAs?
- trend strength, how do you measure it? which scale?

Molanis has a forex consulting unit. You can contact them directly at sales at molanis.com or at http://www.molanis.com/about-molanis/contact-us


sl and tp will be open for brokers .,the real take profit and sl are hidden like (hide tp and sl).
ok leave about ranging and trending b'coz of the problems involved in analyzing.,Let macd alone move and work in any sort of market.
I meant that for macd will not trend above zero line and may cross several times ranging that will create a problem.,
example ; above zero line ea takes a buy order but if we fix a take profit below brokers limit 10 pip we cannot sustain and that trade will result in a stop loss., instead I use a hidden take profit and sl., regarding this I used reversal of price-a buy in case of above -when reversal is fast and happening we can control it with breakeven at entry price where we took the buy order , when the price reverses we get a breakeven stop here.

trend strength is determined with stochastics raising above 33 but needless to maintain., U CAN LEAVE THIS FACTOR TOO.,

just inputs shall have in the field as hidden take profit and hidden stop loss ,apart from real ones.reversal in case of a order reverses in the same bar where macd takes orders for buy or sell and break even at this order entry price instead of using stop loss., so that the EA will be with NO stop loss and what I mean is the perfect EA.A REAL TRADING ROBOT.

regards

Nair


Top
 Profile  
 
 Post subject: At last succeeded in a simple macd not with all feautures
PostPosted: Fri Feb 05, 2010 2:50 am 
Offline

Joined: Thu Feb 04, 2010 12:35 pm
Posts: 6
dual posting by mistake hence removed.


Last edited by nair on Fri Feb 05, 2010 2:53 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: At last succeeded in a simple macd not with all feautures
PostPosted: Fri Feb 05, 2010 2:52 am 
Offline

Joined: Thu Feb 04, 2010 12:35 pm
Posts: 6
I have created a simple macd with my great trading knowledge sooo happy about it.
THANK YOU MOLANIS FOR THIS , I HAVE TRIED EA BUILDER EARLIER., BUT THIS IS DIFFICULT ONE HAVE TO UNDERSTAND MOLANIS CLEARLY.especially for a trader and a programming newbie.

But regarding other feautures I am still confused about., Of all the EA opens up several trades if I close positions., again If I close positions if I retain the position then there would be no positions or new orders taken.

Ok there's always a loophole regarding.

anyone here can be some help if can spare some minutes.

regards
Nair


Top
 Profile  
 
 Post subject: Re: CCI Cross Zero Line
PostPosted: Fri Feb 05, 2010 9:16 am 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
Have you read the manual? The software comes with a user guide in a pdf file.

The software does not allow hedging. This means that before going long (buying a currency pair) the software will close all short positions. In the same way, before going short (selling a currency pair) the software will close all long positions.
Look at similar posts:
viewtopic.php?f=6&t=23&p=94&hilit=hedging#p94
viewtopic.php?f=2&t=15&p=59&hilit=hedging#p59

Molanis Team


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ]  Go to page 1, 2  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