close position in zerocode
|
|||
|
hello
I trise to put my simple ruls at zerocode i hope its o.k. i dont know if i did it right i wish i could ask somwone i need to put a closing position and i dont know how: logic: is the price line croses 3 ema 10, 25. 50 then close posotuon can somwone help me please thanks |
![]() |
Conditional Close
|
|||
|
Scorpion, How would you write your close if your EA was designed for both long and short positions. In other words, how would you write:
If Long, close when EMA(1) crosses EMA(2) to downside; else if short, close when EMA(1) crosses EMA(2) to upside; Thanks alot, freshfx |
Please check answer
|
|||
|
I think I have answered the question I asked above in the previous post.
CLOSE LOGIC AND MA(1)previous<MA(2)previous AND MA(1)current>=MA(2)current OR MA(1)previous>MA(2)previous AND MA(1)current<=MA(2)current I would appreciate comment, thanks. freshfx |
![]() |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| ZeroCode Beta 2 Status | scorpion | MetaTrader and ZeroCode | 85 | 06-21-2008 05:11 PM |
| ZeroCode Expert Running 3 Majors (?) | Scicronys | MetaTrader and ZeroCode | 8 | 12-12-2007 09:58 AM |
| RE: RSI in ZeroCode ????? | TurboTrader24 | MetaTrader and ZeroCode | 9 | 08-04-2005 04:28 AM |
| Help bulding expert In Zerocode Please | motisi2 | MetaTrader and ZeroCode | 4 | 07-29-2005 08:06 AM |
| Important: ZeroCode Header in Compiled MQL files | scorpion | MetaTrader and ZeroCode | 0 | 06-09-2005 09:59 AM |
All times are GMT. The time now is 01:04 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


