indiTraders - Forum for the Active Indian Trader  

Go Back   indiTraders - Forum for the Active Indian Trader > Tools > Software > MetaTrader

GFDL
Reply
 
Bookmark and Share LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 27-01-2014, 12:29 AM
stf stf is offline
Regular
 
Join Date: Oct 2009
Posts: 38
Thanks: 0
Thanked 14 Times in 11 Posts
stf is on a distinguished road
Default problem filter some record actual array by data

Hi guys,

i have a problem ,i don't know Mql4 of metatrader so the key words of the array ..

i have this simple for next cycle , and i want filter every record o the current ticker (for example EURUSD) the current array, by the data (year/month/day)...not time.

exately i need do some works only if the data of the bar array(that's daily), during the for next cycle is > of a fixed data ... i need only the part of test of data ...

for(int i=0; i<iBars(ccy,tf); i++){

if data array[i] (year+mont+day) > my fixed data(example 28/05/2013) {

do any operation
}

could you please say me the correct form ? Thanks !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to stf For This Useful Post:
  #2 (permalink)  
Old 29-01-2014, 11:56 AM
stf stf is offline
Regular
 
Join Date: Oct 2009
Posts: 38
Thanks: 0
Thanked 14 Times in 11 Posts
stf is on a distinguished road
Default

sorry guys, i did a mistake, i intend not data but date...

for(int i=0; i<iBars(ccy,tf); i++){

if date array[i] (year+mont+day) > my fixed date(example 28/05/2013) {

write to TXT

}

if i'm export to a file some records, only the records upper 28/5/2013 how i can filter considering the date ?

i need only to know what are the right functions (if it's better use strings or number to compare) , then i can search it to apply ...
thanks ...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-02-2014, 07:30 PM
stf stf is offline
Regular
 
Join Date: Oct 2009
Posts: 38
Thanks: 0
Thanked 14 Times in 11 Posts
stf is on a distinguished road
nope

there is nobody who can help me? are 1 or 2 lines of code ..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

indiTraders - Forum for the Active Indian Trader > Tools > Software > MetaTrader


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 Off
Pingbacks are On
Refbacks are On


GFDL

All times are GMT +5.5. The time now is 10:34 PM.


vBulletin Copyright by vBulletin

Content Relevant URLs by vBSEO 3.3.2