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 9:14 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Adx Ea
PostPosted: Tue Jun 12, 2012 1:00 am 
Offline

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

I can not continue where the fault lies.

If want to Average Directional Mov. +> Average Directional Mov go long.

Thank Pit


Attachments:
Adx.mol [5.05 KiB]
Downloaded 509 times
Top
 Profile  
 
 Post subject: Re: Adx Ea
PostPosted: Tue Jun 12, 2012 8:59 am 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
You need to change the expert advisor logic. Currently you have something that can be read as Buy if indicator value > indicator value, since indicator value = indicator value, it won't trade
if you want to trade if it increases in your condition (in the TA), do shift=2 > shift=1 so it read as
Buy if indicator value bar 2> indicator value bar 1

Please take a look at the examples page, pay attention to how the trading conditions in the TA icons are built.
http://www.molanis.com/products/molanis ... rs-for-mt4

ADX has a number of signals, given by the mode see http://docs.mql4.com/constants/lines
Main is the common one, you may want to change it


Top
 Profile  
 
 Post subject: Re: Adx Ea
PostPosted: Tue Jun 12, 2012 9:10 pm 
Offline

Joined: Sat May 12, 2012 10:47 am
Posts: 34
Hi
'm Not clear.

Mode Plus (Shift 2)> Mode Plus (Shift 1) does not

Mode Plus (Shift2)> Mode minus (Shift1) not

Can you upload a sample time.

Thank Pit


Top
 Profile  
 
 Post subject: Re: Adx Ea
PostPosted: Wed Jun 13, 2012 9:44 am 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
I think is better that you read the user guide in the pages about crossover - it explains shift and how you can compare values. See molanis.com/support/manuals

In a TA use the same indicator, same signal, use shift 2 (bar 2) and shift 1 (bar 1)
i.e adx shift 1 > adx shift 2 then buy

Try doing it and if you still have issues post your strategy file (.mol)


Top
 Profile  
 
 Post subject: Re: Adx Ea
PostPosted: Fri Jun 15, 2012 10:06 pm 
Offline

Joined: Sat May 12, 2012 10:47 am
Posts: 34
Hi
But this is only if you do sell order to sell order is not only a signal.

lg Pit


Top
 Profile  
 
 Post subject: Re: Adx Ea
PostPosted: Sat Jun 16, 2012 9:04 am 
Offline

Joined: Sun Jun 19, 2011 9:38 pm
Posts: 270
START: Trade or Alert--determines whether the EA trades or alerts.

TA's: All conditions remain the same for both Trade and Alert.

_________________
I'm not a programmer, but I play one on TV.


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