Question on making code in ZeroCode
  #1 (permalink)  
Old 07-25-2005, 11:51 PM
Sophomore
 
Join Date: Jul 2005
Posts: 60
Thanks: 8
Thanked 20 Times in 9 Posts
TurboTrader24 is a jewel in the roughTurboTrader24 is a jewel in the roughTurboTrader24 is a jewel in the roughTurboTrader24 is a jewel in the rough
Default 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
Reply With Quote
  #2 (permalink)  
Old 07-26-2005, 01:44 AM
scorpion's Avatar
Administrator
 
Join Date: Aug 2004
Posts: 1,974
Thanks: 119
Thanked 383 Times in 152 Posts
scorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to behold
Send a message via MSN to scorpion Send a message via Yahoo to scorpion
Default

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.
__________________
Make easy pips with the Advanced Economic Calendar for Forex Trading.

Last edited by scorpion : 07-26-2005 at 01:46 AM.
Reply With Quote
Thanks
  #3 (permalink)  
Old 07-26-2005, 02:06 AM
Sophomore
 
Join Date: Jul 2005
Posts: 60
Thanks: 8
Thanked 20 Times in 9 Posts
TurboTrader24 is a jewel in the roughTurboTrader24 is a jewel in the roughTurboTrader24 is a jewel in the roughTurboTrader24 is a jewel in the rough
Default Thanks

Thanks Scorpion Yoa have an awesome system........Thanks again

Mike
Reply With Quote
  #4 (permalink)  
Old 07-26-2005, 02:55 AM
Sophomore
 
Join Date: Jul 2005
Posts: 60
Thanks: 8
Thanked 20 Times in 9 Posts
TurboTrader24 is a jewel in the roughTurboTrader24 is a jewel in the roughTurboTrader24 is a jewel in the roughTurboTrader24 is a jewel in the rough
Default

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
Reply With Quote
  #5 (permalink)  
Old 07-26-2005, 07:53 AM
scorpion's Avatar
Administrator
 
Join Date: Aug 2004
Posts: 1,974
Thanks: 119
Thanked 383 Times in 152 Posts
scorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to behold
Send a message via MSN to scorpion Send a message via Yahoo to scorpion
Default

TT, could you explain a bit more? I can't understand what u're saying.
__________________
Make easy pips with the Advanced Economic Calendar for Forex Trading.
Reply With Quote
  #6 (permalink)  
Old 07-26-2005, 01:55 PM
Sophomore
 
Join Date: Jul 2005
Posts: 60
Thanks: 8
Thanked 20 Times in 9 Posts
TurboTrader24 is a jewel in the roughTurboTrader24 is a jewel in the roughTurboTrader24 is a jewel in the roughTurboTrader24 is a jewel in the rough
Default

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.
Reply With Quote
  #7 (permalink)  
Old 07-28-2005, 03:18 PM
scorpion's Avatar
Administrator
 
Join Date: Aug 2004
Posts: 1,974
Thanks: 119
Thanked 383 Times in 152 Posts
scorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to behold
Send a message via MSN to scorpion Send a message via Yahoo to scorpion
Default

Hey, it should be something like this:

BUY LOGICS: (Buy if WMA crosses up SMA and passes Sar)
AND MA (2) Previous <= MA (3) Previous
AND MA (2) Current > MA (3) Current
AND MA (2) Current > SAR (1) Current

SELL LOGICS: (Sell if WMA crosses down SMA and passes Sar)
AND MA (2) Previous >= MA (3) Previous
AND MA (2) Current < MA (3) Current
AND MA (2) Current < SAR (1) Current

Hope I understand your statement well.
__________________
Make easy pips with the Advanced Economic Calendar for Forex Trading.

Last edited by scorpion : 07-28-2005 at 03:22 PM.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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

Registered members have access to special online forex currency trading tools, software, mt4 expert advisors and indicators. Register now

Main Menu

Economic Forecast