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 Fri May 17, 2024 3:14 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Refrencing a horizontal line
PostPosted: Thu Apr 05, 2012 9:45 am 
Offline

Joined: Tue Nov 29, 2011 10:57 am
Posts: 6
Hi there, I have an indicator which paints horizontal lines at the open, high, and low of the previous day on the current days chart. I was wondering how to go about referencing a price point in relation to one of the lines. For example: I want to go long 10 pips above the high and short 10 pips below the low. I've been trying to find a way to set it to buy when price hits "indicator" mode 1 +10 pips. Is this possible?

Thanks for your help,
-Cole Stanford


Top
 Profile  
 
 Post subject: Re: Refrencing a horizontal line
PostPosted: Thu Apr 05, 2012 10:00 am 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
The fast way is to use the mql icon, import the indicator and add the 10 pips there. The long way is to use the indicator builder and create a new indicator that shows the line + 10 pips, then import it into the strategy builder.
Most likelly your ea will turn to be a multi timeframe ea since your lines will come from different timeframes so just remember that you cannot backtest it in mt4.


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:  
Powered by Molanis © 2009