I wrote an analytic script, want to take it a step further.. code included.. - page 2

 
ubzen:

Doesn't it cause you to use wrong values when the BarShift returns -1? I mean this is for personal use and probably not a big_deal as you get a comment and just dis_reguard the report.

But yeah, I was also thinking about missing bars in_between the OrderOpenTime() and OrderCloseTime(). I don't think there's any legit_methods of handling these except just Printing a Warning. Reason I feel this way is because there's not of telling if the missing bar is due to {No_Ticks that Minute} || {Bad_Data}.

So in the end, we can only perform these with the assumption || acceptance that the data we have is enough.

Do you plan on using dlls or were you hoping to use mql only?

Was your only question about getting the data?

ubzen, ur da man, thanks for taking the time:)


yeah it is just for personal for now so not a huge deal.. if candles are missing, there isnt much i can do right? This part just gives me the highest and lowest price between the entry and exit. I use it to tweak my stoplosses and targets..

prob just using mlq cuz i have not yet learned how to write dlls.. (would like to tho)

so this script seems ok.. i just need to write the script that will extract certain details from the new csv's.. to a master csv.. shouldnt be too difficult using the File functions.. just wondering if there is an easy way to access other mt4 accounts. (prob not possible in mql4, can we access other folders via mql4?) so will prob just write the script and manually compile all mt4 accts to one experts->files folder.

 
ubzen:

That one is used to automatically force the history to allow all History. Example: should the date range be set for Last_Month instead of All_History, then trades 3_Months earlier wouldn't be within Mode_History. It doesn't help give you more history from your broker.

Its also using a .dll instead of pure mql.


ok thanks for clarifying..

as far as dlls.. i can import existing ones no prob.. I just do not know how to write them (i know they provide advantages for security additional functions etc.. right?)

 
sammy515: so this script seems ok.. i just need to write the script that will extract certain details from the new csv's.. to a master csv.. shouldnt be too difficult using the File functions.. just wondering if there is an easy way to access other mt4 accounts. (prob not possible in mql4, can we access other folders via mql4?) so will prob just write the script and manually compile all mt4 accts to one experts->files folder.

The two folder that a script would be able to access are the { terminal_directory\experts\files via fileOpen() } and { terminal_directory\history\server_name via FileOpenHistory() }. Anything else, I believe you'll need a dll. Dlls can be save || unsafe depending on their intend or bugs.

As far as different accounts, I don't have much experience there. If we're talking about 1_terminal than all files should be within the \files folder. If we're talking about different or 2_terminals then you'll need a dll. Mql cannot access files outside her default folders for security reasons.

 
ubzen:

The two folder that a script would be able to access are the { terminal_directory\tester\files via fileOpen() } and { terminal_directory\history\server_name via FileOpenHistory() }. Anything else, I believe you'll need a dll. Dlls can be save || unsafe depending on their intend or bugs.

As far as different accounts, I don't have much experience there. If we're talking about 1_terminal than all files should be within the \files folder. If we're talking about different or 2_terminals then you'll need a dll. Mql cannot access files outside her default folders for security reasons.


yeah thats what i thought.. thanks again.. i will post what i come up with..
 
sammy515: yeah thats what i thought.. thanks again.. i will post what i come up with..

You're welcome.

<edit> terminal_directory\experts\files for fileOpen.