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 Sat Apr 27, 2024 9:26 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Multiple timeframes
PostPosted: Mon Aug 25, 2014 7:21 pm 
Offline

Joined: Mon Aug 11, 2014 9:09 pm
Posts: 6
I'm using the H1 and I want the ea to buy if the close of the H1 is less than 70% of the last weeks high-low. I can't get this to work.
(iClose(Symbol(),0,1)<(iLow(Symbol(),PERIOD_W1,1)+((iHigh(Symbol(),PERIOD_W1,1)-iLow(Symbol(),PERIOD_W1,1))*0.70)))


Top
 Profile  
 
 Post subject: Re: Multiple timeframes
PostPosted: Tue Aug 26, 2014 8:23 pm 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
Make sure you :
-attach it to the lower time frame
-have data in those time frames (especially during backtesting otherwise the price data will be treated as zero)
-Test it live and print out to the logs each part ( use the mql+ icon)


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