Forex



Go Back   Forex Trading > Discussion Areas > Setup Questions
Forex Forum Register More recent Blogs Calendar Advertising Others Help






Register
Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.

From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.

Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
  • Elite Section
    Get access to private discussions, specialized support, indicators and trading systems reported every week.
  • Advanced Elite Section
    For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
See more

Reply
 
Thread Tools Display Modes
  #301 (permalink)  
Old 07-21-2009, 07:56 PM
Senior Member
 
Join Date: Jan 2007
Location: not so remote
Posts: 3,272
fxbs is on a distinguished road
Quote:
Originally Posted by s5804 View Post
Hello

put a Stochastic (8, 3, 1) on EUR/USD 5M and watch how the K line is sometimes on full 100.0 or min 0.0 for many bars.

This is strange!

According to the stochastic formula to get 100.0, the
(recent close - lowest low n) / (highest high n - lowest low n) > 1.0

This means that resent close must be equal or higher that highest high n.
However this is occasionally one bar, but rarely for many bars in a row.
After checking the bars very carefully maybe the recent bars high was the highest, but the recent close is bellow the bars high...?

The Stochastic.mq4 code looks correct
for(k=(i+Slowing-1);k>=i;k--)
{
sumlow+=Close[k]-LowesBuffer[k];
sumhigh+=HighesBuffer[k]-LowesBuffer[k];
}

Therefore I have no idea why the chart is showing this long periods of 100.0 or 0.0.

I appreciated very much for help to understand what is going on.
Thank you in advance
do you mean " long periods of 100.0 or 0.0." when sto price field cl-cl?
Attached Images
File Type: gif sto pf.gif (24.0 KB, 442 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #302 (permalink)  
Old 07-21-2009, 09:17 PM
Junior Member
 
Join Date: Jun 2007
Posts: 5
s5804 is on a distinguished road
I use close-close.

Your picture demonstrates the 100.0 and 0.0 periods.

Attached is a picture I just made from EUR/USD with stoch 8,3,3 cl-cl setting.
Only the K line is visible.

I can't get my head around why the K line bottom on 0.0 when the recent close is not the lowest low of the period.
Attached Images
File Type: png Picture.png (36.2 KB, 315 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #303 (permalink)  
Old 07-21-2009, 10:01 PM
Senior Member
 
Join Date: Jan 2007
Location: not so remote
Posts: 3,272
fxbs is on a distinguished road
Quote:
Originally Posted by s5804 View Post
I use close-close.
I can't get my head around why the K line bottom on 0.0 when the recent close is not the lowest low of the period.
is it not?
sto cl-cl hhll.gif

hhll & cc:
sto cl-cl hhl2l.gif

Last edited by fxbs; 07-21-2009 at 10:05 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #304 (permalink)  
Old 07-21-2009, 10:11 PM
Junior Member
 
Join Date: Jun 2007
Posts: 5
s5804 is on a distinguished road
I am guessing the meaning of cl-cl (can't find it in the manual)

cl-cl means that the stock formula is using the highest close and lowest close, instead of the highest high and highest low.

I can verify this with my own calculations of, K% lines with smoothing 1.
However how is the smoothing calculated?

Example,
K% values for 8,3,1 are, 0.6428, 0.5, 0.0
To get the smoothed value for K% 8,3,3 on shall 3 period SMA of K% above.

(0.6428 + 0.5 + 0.0) / 3 = 0.3809

However the Meta Trade 4 chart has the value 0.4285

What am I missing with the smoothing?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #305 (permalink)  
Old 07-21-2009, 10:23 PM
Junior Member
 
Join Date: Jun 2007
Posts: 5
s5804 is on a distinguished road
From the code I now understand how the smoothing is done

while(i>=0)
{
double sumlow=0.0;
double sumhigh=0.0;
for(k=(i+Slowing-1);k>=i;k--)
{
sumlow+=Close[k]-LowesBuffer[k];
sumhigh+=HighesBuffer[k]-LowesBuffer[k];
}
MainBuffer[i]=sumlow/sumhigh*100;
i--;
}

dividing the sum of low with the sum of highs is something else than an SMA.

I am curious is the Meta Trader Stochastic.mq4 very special or is this approach common in most other charting products.
The smoothing seems to be far of from the normal documentation about full stochastic.

THX
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #306 (permalink)  
Old 07-21-2009, 10:57 PM
Senior Member
 
Join Date: Jan 2007
Location: not so remote
Posts: 3,272
fxbs is on a distinguished road
everyting right with mt4 sto:
stock sto (mt4 custom ind folder) w price cc mod
or u can do:
PHP Code:
  KFull[i] = iStochastic(NULL,TimeFrame,KPeriod,DPeriod,Slowing,MAMethod,PriceField,Ln1Mode,y);
(
double iStochasticstring symbolint timeframeint %Kperiodint %Dperiodint slowingint methodint price_fieldint modeint shift
Attached Images
File Type: gif sto cl-cl.gif (16.0 KB, 423 views)
Attached Files
File Type: mq4 Stochastic_cc.mq4 (3.8 KB, 38 views)

Last edited by fxbs; 07-21-2009 at 11:15 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #307 (permalink)  
Old 07-22-2009, 08:24 AM
Junior Member
 
Join Date: Jun 2007
Posts: 5
s5804 is on a distinguished road
Quote:
Originally Posted by fxbs View Post
everyting right with mt4 sto:
I agree. Just another endless example of where proper documentation (with beginners in mind) would have helped.

Thanks for bringin me up to speed.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #308 (permalink)  
Old 07-22-2009, 08:42 AM
Senior Member
 
Join Date: Jan 2007
Location: not so remote
Posts: 3,272
fxbs is on a distinguished road
most of the time- no documentation whatsoever
like this-http://codebase.mql4.com/ru/5775 nobody knows what it is (and where it came from)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #309 (permalink)  
Old 07-22-2009, 11:18 AM
camisa's Avatar
Senior Member
 
Join Date: Dec 2005
Location: Portugal
Posts: 349
camisa is on a distinguished road
Quote:
Originally Posted by fxbs View Post
most of the time- no documentation whatsoever
like this-http://codebase.mql4.com/ru/5775 nobody knows what it is (and where it came from)
it had tried it but it repaints :P
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #310 (permalink)  
Old 07-28-2009, 04:36 AM
Member
 
Join Date: May 2008
Posts: 36
demons19 is on a distinguished road
Stochastic alert

Not sure if this is somewhere on the site but I'm hoping someone could help me with an alert.
I am using the normal stochastic indicator (14,3,3) and what I would like is to have an alert when both lines are in OB/OS (20/80) at the close of 3 consecutive bars.

Would anyone be able to help?
Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
Reply

Bookmarks

Tags
"Premier Stochastic Oscillator", All Stochastic, All Stochastic.mq4, allstochastics, Color Stochastic, forex, forex stochastic oscillator, histogram, mq4 stochastic indicator, mtf stoc, mtf stoch, mtf stochastic, mtf stochastic alert, mtf stochastic indicator, mtf stochastics, on chart stochastic, Oscillator, premier stochastic, Premier Stochastic Oscillator, search, sexy stochastic, slope indicator, Slope Indicator forex, slow stochastic, slow stochastic mq4, stoch histogram, Stoch mtf, stochastic, stochastic alert, STOCHASTIC EA, stochastic forex, stochastic histogram, stochastic histogram mq4, stochastic in forex, stochastic indicator, stochastic indicators, STOCHASTIC MQ4, stochastic mtf, stochastic on chart, Stochastic Oscillator, Stochastic Oscillator EA, stochastic oscillator mq4, stochastic rsi oscillator, stochastic slope, Stochastic with alert, StochasticRSI, stochastics, stochastics alert, stochhistogram, ttm stochastic


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
I need Stochastic Oscillator with alert/signal 200 Indicators - Metatrader 4 2 04-12-2009 09:19 AM
Stochastic swall Indicators - Metatrader 4 10 09-09-2007 09:58 PM
Alert For Stochastic Oscillator Please!! forexdude Indicators - Metatrader 4 2 10-29-2006 04:06 PM
GC Oscillator forexts Questions 4 07-21-2006 02:03 PM
Oscillator 006 Expert Advisors - Metatrader 4 2 01-28-2006 05:49 PM


All times are GMT. The time now is 11:24 PM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.