molanis.com/forum - Tools for MetaTrader : The place to ask about the best expert advisor builder, expert advisor downloads, and expert advisor programming

AFTER YOU REGISTER SEND US AN EMAIL TO ACTIVATE YOUR ACCOUNT - Before posting:-1- Please read the user guide -2- Try the examples -3- Search in the forum
It is currently Fri May 03, 2024 5:08 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Definition of price field in TA options
PostPosted: Fri Jul 01, 2011 9:26 am 
Offline

Joined: Sun Jan 16, 2011 12:06 pm
Posts: 58
Please define price field. I did search in forum to see if I could find the answer in some of the previous posts by anyone but could not find it.

Thanks a lot


Top
 Profile  
 
 Post subject: Re: Definition of price field in TA options
PostPosted: Fri Jul 01, 2011 9:52 am 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
Currently in version 3.14 you can manage the following prices:
Open
Close
High
Low
iOpen
iClose
iHigh
iLow
Ask
Bid


Top
 Profile  
 
 Post subject: Re: Definition of price field in TA options
PostPosted: Tue Jul 03, 2012 3:37 pm 
Offline

Joined: Tue Nov 22, 2011 3:28 pm
Posts: 83
I am also this question: What is Price Field, which is within TA?


Top
 Profile  
 
 Post subject: Re: Definition of price field in TA options
PostPosted: Tue Jul 03, 2012 4:56 pm 
Offline

Joined: Sun Jun 19, 2011 9:38 pm
Posts: 270
It depends what you mean by Price Field...

If you select Moving Average, then you choose from:
Close
Open
High
Low
Median
Typical
Weighted
(as to the latter 3, see http://blog.nobletrading.com/2009/12/median-price-typical-price-weighted.html for general definitions)

Or you can select a particular price directly to use as your indicator:
Close
Open
Low
High
Bid
Ask
(see http://book.mql4.com/variables/predefined)

If you select User Defined Price, then it's whatever you type (0.00000 for example).

(v3.15)

_________________
I'm not a programmer, but I play one on TV.


Top
 Profile  
 
 Post subject: Re: Definition of price field in TA options
PostPosted: Tue Jul 03, 2012 5:17 pm 
Offline

Joined: Tue Nov 22, 2011 3:28 pm
Posts: 83
RJO Thanks for the help, but what I mean is that simple! This is the Stochastic indicator:


Attachments:
Price field.jpg
Price field.jpg [ 222.28 KiB | Viewed 10180 times ]
Top
 Profile  
 
 Post subject: Re: Definition of price field in TA options
PostPosted: Tue Jul 03, 2012 11:16 pm 
Offline

Joined: Tue Dec 22, 2009 12:22 am
Posts: 1761
See http://docs.mql4.com/indicators/iStochastic
Quote:
price_field - Price field parameter. Can be one of this values: 0 - Low/High or 1 - Close/Close.


Some indicators can be calculated based on different price inputs, i.e. ma can use any bar price and more, Stochastic can be calculated using 0 - Low/High or 1 - Close/Close.


Top
 Profile  
 
 Post subject: Re: Definition of price field in TA options
PostPosted: Tue Jul 03, 2012 11:57 pm 
Offline

Joined: Tue Nov 22, 2011 3:28 pm
Posts: 83
Could you please give examples of how to use it as little understood!

I'm waiting!

See you soon!


Top
 Profile  
 
 Post subject: Re: Definition of price field in TA options
PostPosted: Wed Jul 04, 2012 9:42 am 
Offline

Joined: Sun Jun 19, 2011 9:38 pm
Posts: 270
From http://www.forexfactory.com/showthread.php?p=1481562:

"As far as I can tell, High/Low uses the following formula to calc %K:
100 x (Recent Close - Lowest Low*) / (Highest High* - Lowest Low*)
[* for the last N periods, where N is the %K parameter]

whereas Close/Close uses the following formula to calc %K:
100 x (Recent Close - Lowest Close*) / (Highest Close* - Lowest Close*)"

So, changing the Price Field setting changes the price used in calculating the %K line. The stochastic indi has 2 lines: %K (fast) and %D (slow). The %D line is a slowed version of the %K line. So if you change the price used in the calculation of the %K line, you are thereby changing the calculation of the %D line as well--you are changing the entire indi.

For the entire stochastic calculation, visit the link at the top of this post. If you want more reading, visit the link at the top of that post. To watch the indi in action, go to your standard Indicators folder in MT4 (not Custom Indicators), attach the Stochastic Oscillator, and change the Price Field setting. For a working EA example, simply build the mol in SB and select 0's or 1's.

_________________
I'm not a programmer, but I play one on TV.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by Molanis © 2009