RSI - MQL II Indicator Statement Problem
  #1 (permalink)  
Old 07-16-2005, 03:16 PM
Sophomore
 
Join Date: Jun 2005
Posts: 48
Thanks: 0
Thanked 0 Times in 0 Posts
Dave77 is a jewel in the roughDave77 is a jewel in the roughDave77 is a jewel in the roughDave77 is a jewel in the rough
Red face RSI - MQL II Indicator Statement Problem

I am trying to modify an existing MQL program to include a buy and
sell conditon based upon the RSI levels > 25 and < 75. When I try to
set it up under the Calculate indicators' value in the program the rsi
indicator setup asks for 2 time periods: rsi1_0 =
iRSIEx(5,10,0,PRICE_CLOSE,0).

The RSI(5) is what I want, but the second time period (10) I do not
understand why I need it? My logic statement was to be: If rsi1_1<25
and rsi1_0>25 buy.

How do I get the program to do what I want it to do?

I am a newbee to MQL. Could somebody assist me please!

Sincerely,

Dave

ddiebold@sbcglobal.net
713-977-1892
Reply With Quote
  #2 (permalink)  
Old 07-16-2005, 03:36 PM
scorpion's Avatar
Administrator
 
Join Date: Aug 2004
Posts: 1,922
Thanks: 97
Thanked 361 Times in 147 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

Dave, try iRSI(5,0) instead of iRSIEx(5,10,0,PRICE_CLOSE,0).

Quote:
My logic statement was to be: If rsi1_1<25
and rsi1_0>25 buy.
In ZeroCode, _1 suffix means previous bar close price and _0 means current price. Maybe you should use rsi1_0 < 25 if you prefer current RSI value.
__________________
Make easy pips with the Advanced Economic Calendar for Forex Trading.
Reply With Quote
  #3 (permalink)  
Old 07-16-2005, 11:33 PM
Sophomore
 
Join Date: Jun 2005
Posts: 48
Thanks: 0
Thanked 0 Times in 0 Posts
Dave77 is a jewel in the roughDave77 is a jewel in the roughDave77 is a jewel in the roughDave77 is a jewel in the rough
Thumbs up

Thank You Scorpion. You are such a blessing!

Dave
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
ATR MQL II Custom Indicator Request Dave77 Indicators 0 08-08-2005 07:11 AM


All times are GMT. The time now is 02:24 AM.
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