How to code for Price just crosses Not Closes
|
|||
|
Quote:
|
|
||||
|
rosstodd, first setup the logics as normal.
Check for price crosses up EMA (x) (To be put in BUY logics) PriceBid <= EMA (x) Previous PriceBid > EMA (x) Current Check for price crosses down EMA (x) (To be put in SELL logics) PriceBid >= EMA (x) Previous PriceBid < EMA (x) Current Second, compile to mql. Third, make a little hack in the mql to create an adjustable pips filter. See http://www.fxfisherman.com/forums/showthread.php?t=158 That's it! hope this help. Last edited by scorpion : 07-19-2005 at 03:43 AM. |
Thank you for your help! I'll give it a try...
|
|||
|
Thank you for your help! I'll give it a try...
Do I just type this into the first logics space (this is not an option to select) Check for price crosses up EMA (x) Sorry about the simple minded questions. Another question I have is re: the MACD you have in your demo I want to have a buy when it crosses above the 0 line - and sell when it crosses below - Is this what is accomplished in the demo? Thanks again for your help... ross [quote=scorpion]rosstodd, first setup the logics as normal. Check for price crosses up EMA (x) (To be put in BUY logics) PriceBid <= EMA (x) Previous PriceBid > EMA (x) Current Check for price crosses down EMA (x) (To be put in SELL logics) PriceBid >= EMA (x) Previous PriceBid < EMA (x) Current Second, compile to mql. Third, make a little hack in the mql to create an adjustable pips filter. See http://www.fxfisherman.com/forums/showthread.php?t=158 That's it! hope this help.[/ QUOTE] |
|
||||
|
Quote:
![]() Quote:
MACD Histrogram (x) Previous <= 0 MACD Histogram (x) Current > 0 "MACD Histrogram (x) Previous <= 0" means if macd histogram in previous candle is equal or below 0. "MACD Histogram (x) Current > 0" means if macd histogram is above 0 now. These two logics to create a crossover checking. |
Thanks again!
|
|||
|
You have a great system - I really appreciate your help.
I Tried to make a simple EA that just buys when price crosses EMA (x) and sells when crosses EMA (x) Just to see if it would work and add the other criteria later. I put it on a chart and tried the strategy tester but it made no trades - any suggestions? Buy Logics: AND PriceBid <= MA(1) Previous AND PriceBid > MA (1) Current Sell Logics: AND PriceBid >= MA (2) Previous AND PriceBid < MA (2) Current Quote:
|
![]() |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Download ZeroCode Beta 1 | scorpion | MetaTrader and ZeroCode | 18 | 10-28-2008 07:12 PM |
| Trading E-Books Download | jgrimney | Tutorials, Tips & Tricks | 47 | 09-18-2008 09:19 AM |
| Zero code beta 2 suggestions | Belzebut | MetaTrader and ZeroCode | 0 | 06-12-2005 10:40 AM |
All times are GMT. The time now is 11:45 PM.
Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
Registered members have access to special online forex currency trading tools, software, mt4 expert advisors and indicators. Register now







)






Linear Mode

