Code request HELP
  #1 (permalink)  
Old 11-29-2008, 08:03 AM
Freshman
 
Join Date: May 2008
Posts: 14
Thanks: 1
Thanked 0 Times in 0 Posts
batalhadematos is on a distinguished road
Default Code request HELP

Hi there,


I wonder if someone has some code or can develop a code with the following conditions: (trend following)



Moving Average:

- Period: 90
- Shift: 0
- Mode: Simple


The code must test the candlestick bar status for 2 different timeframes: 1H and 4H


Rules:
NO ORDER: Wait for the candlestick cross the MA on 1H time frame

BUY: When there is a candlestick totally above the MA on 1H time frame (lower price of candlestick of the closed bar above the MA) it must check on 4H timeframe if the candlestick is also totally above the MA (lower price of candlestick of the closed bar above the MA).
SELL: When the candlestick totally bellow the MA on both 1H and 4H time frames.



So, I need:
- A function that returns a value if the NO ORDER condition is found;
- A function that, when NO ORDER condition is false, returns another value when the candlestick is totally above MA on both 1H and on 4H

- A function that, when NO ORDER condition is false, returns another value when the candlestick is totally bellow MA on both 1H and on 4H



Can anyone help me?
Regards
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
request... joshua33 Indicators 0 08-28-2008 05:52 PM
Request for help to Code Interest Rate Indicator popeye Indicators 0 04-04-2008 04:08 PM
request for EA code goldstock System Coding 0 03-10-2008 04:40 PM
indicator request please knossos Indicator Coding 0 09-13-2007 04:38 PM
Custom Code request : Action breakeven stop Automatic Digs Trading Systems 0 09-24-2006 07:43 AM


All times are GMT. The time now is 07:32 PM.
Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2009, 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