Forex Forum - EarnForex
Serving Traders Since 2005
 

Go Back   Forex Forum - EarnForex > MetaTrader > MetaTrader 5

MetaTrader 5 MT5 is already out of its beta stage, but the development is ongoing. Some brokers already offer real accounts and the interest of traders is growing. You can discuss anything related to MetaTrader 5 in this forum.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 5th November 2011, 21:16
Default Avatar
Senior Member
 
Join Date: Aug 2011
Posts: 115
Thanks: 0
Thanked 0 Times in 0 Posts
Default thread "clinching"

Hi

in the Mql5 doc.
Example of a Script for Adding History
we read:
Quote:
The next important check is checking the type of the program, from which the function is called. Note, sending request to update the timeseries with the same period as that of the indicator, that calls the update, is undesirable. The undesirability of requesting data on the same symbol-period as that of the indicator is conditioned by the fact that update of history data is performed in the same thread where the indicator operates. So the possibility of clinch occurrence is high. To check this use the MQL5InfoInteger() function with the MQL5_PROGRAM_TYPE modifier.
what is clinch?
Is it something the writer is trying to avoid or achieve?

from the code that follows
MQL5 Code:
   if(MQL5InfoInteger(MQL5_PROGRAM_TYPE)==PROGRAM_INDICATOR && Period()==period && Symbol()==symbol)
      return(-4);
It seams to me the writer is trying to avoid the scenario he describe.

if so, isn't the sentence he wrote should be corrected;
from
So the possibility of clinch occurrence is high.
to
So the possibility of clinch occurrence is low.
???
thx
Reply With Quote
  #2 (permalink)  
Old 5th November 2011, 22:05
Enivid's Avatar
Administrator
 
Join Date: Nov 2008
Posts: 1,548
Thanks: 18
Thanked 20 Times in 16 Posts
Default

He's trying to avoid clinch. And the probability of clinch is high in the described situation (indicator is adding history data to the period it's working on).
__________________
Please, read the Forum Rules and the Signature Rules to avoid termination of your account.
Reply With Quote
Reply

Bookmarks


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 On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Profiforex launches "King of the Hill" contest, Prize $1000 Profiforex.com Advertisements 7 18th October 2011 15:31
24Option offers intraday "One Touch" and "Boundary" binary options Binary Trading General Forex Discussion 1 14th October 2011 12:02
Ikon forex "EUR,AUD mildly reversed the gains in the previous night" laura Forex News 0 25th January 2011 03:33
Ikon forex "USD index left low and might got a rebound to 79.00-10 in short term" laura Forex News 0 20th January 2011 03:01
Ikon forex "Consumers confidence slumped, AUD/USD tested 0.9950 again" laura Forex News 0 19th January 2011 03:25


All times are GMT. The time now is 11:33.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Inactive Reminders By Icora Web Design

SEO by vBSEO 3.3.2