Question on making code in ZeroCode
|
|||
|
Hello all I have a question I don't understand how to do this in ZeroCode can somebody help me.....
1# I want the Parabolic Indicator to close a open trade on the last dot in the trend. I have the settings at step 0.0250 amd the max ar 0.2000 2# BUY the exchange rate when the 5 WMA crosses up past the 10 SMA 3# SELL the exchange rate when the 5 WMA crosses down past the 10 SMA 5 period WMA 10 period SMA Thanks Much Mike |
![]() |
|
||||
|
Hey,
This one is easy with ZeroCode. Firstly, setup the 3 indicators in order. 1. Parabolic SAR 2. LWMA 3. SMA Secondly, add following logics to appropriate list: BUY LOGICS: (Buy if WMA crosses up SMA) AND MA (2) Previous <= MA (3) Previous AND MA (2) Current > MA (3) Current SELL LOGICS: (Sell if WMA crosses down SMA) AND MA (2) Previous >= MA (3) Previous AND MA (2) Current < MA (3) Current CLOSE LOGICS: (Close if Par. SAR dot jumps from high to low or low to high) AND SAR (1) Previous >= High[1] AND SAR (1) Current <= Low[0] OR SAR (1) Previous <= Low[1] AND SAR (1) Current >= High[0] Finally, fill the info and click compile. That's it! Watch the Video Walkthrough: Create a simple MACD Cross expert if you don't know how to setup indicators, add logics, or compile the mql.Last edited by scorpion : 07-26-2005 at 01:46 AM. |
|
|||
|
I think I kinda understand what yousuggested did work good now if I wanted to add SAR to be part of the open where both indicators have to be inline to open......... I want to add SAR to open with LWMA and SMA on the first dot
Is this right This one is easy with ZeroCode. Firstly, setup the 3 indicators in order. 1. Parabolic SAR 2. LWMA 3. SMA Secondly, add following logics to appropriate list: BUY LOGICS: (Buy if WMA crosses up SMA) AND MA (2) Previous <= MA (3) Previous AND MA (2) Current > MA (3) Current AND SAR (1) Current <= Low[0]????????is this correct SELL LOGICS: (Sell if WMA crosses down SMA) AND MA (2) Previous >= MA (3) Previous AND MA (2) Current < MA (3) Current AND SAR (1) Current <= Low[0] ????????is this correct CLOSE LOGICS: (Close if Par. SAR dot jumps from high to low or low to high) AND SAR (1) Previous >= High[1] AND SAR (1) Current <= Low[0] OR SAR (1) Previous <= Low[1] AND SAR (1) Current >= High[0] Thanks Again |
|
|||
|
Sorry Scorpion, what I meat was
2# BUY the exchange rate when the 5 WMA crosses up past the 10 SMA and past the first dot on the Parabolic is on open trade 3# SELL the exchange rate when the 5 WMA crosses down past the 10 SMA and past the first dot on the Parabolic is on open trade Thanks Much Mike Last edited by TurboTrader24 : 07-26-2005 at 02:02 PM. |
![]() |
«
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 04:11 PM |
| ZeroCode Expert Running 3 Majors (?) | Scicronys | MetaTrader and ZeroCode | 8 | 12-12-2007 08:58 AM |
| Custom Code request : Action breakeven stop Automatic | Digs | Trading Systems | 0 | 09-24-2006 06:43 AM |
| Question on making sma wma close | TurboTrader24 | MetaTrader and ZeroCode | 1 | 08-02-2005 07:06 AM |
| Important: ZeroCode Header in Compiled MQL files | scorpion | MetaTrader and ZeroCode | 0 | 06-09-2005 08:59 AM |
All times are GMT. The time now is 10:44 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

