molanis.com/forum - Tools for MetaTrader : The place to ask about the best expert advisor builder, expert advisor downloads, and expert advisor programming http://www.molanis.com/forum/ |
|
And Or and If when calculations http://www.molanis.com/forum/viewtopic.php?f=8&t=1680 |
Page 1 of 1 |
Author: | aporozny [ Thu Jul 26, 2012 12:25 am ] |
Post subject: | And Or and If when calculations |
Can you please explain how to set off a trade when say, the current candle just closed, and it has closed in the top or bottom 70% range of the candle, and the high of any of the last 5 candles was less than the high of the current candle? Thanks |
Author: | admin [ Sat Jul 28, 2012 9:36 am ] |
Post subject: | Re: And Or and If when calculations |
Let's divide it in conditions that will be join by an AND icon 1. the current candle just closed - by default if you trade bars the ea trade with the first tick after the close and 2. it has closed in the top or bottom 70% range of the candle - here you need an indicator to define the range. You can in the indicator builder create the range, something like high - low times 0.7 (you can include the abs value). Then you import it in the strategy builder and compare the close to the indicator. You can also create this condition in the mql icon and 3. the high of any of the last 5 candles was less than the high of the current candle, you need an indicator that shows the high of the last 5 candles, import it and compare it with the high. The indicator builder has an example that shows how to get the highest high. |
Page 1 of 1 | All times are UTC - 5 hours |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |