- Search Crypto Craft
- 1,325 Results (54 Threads, 1,271 Replies)
- M_j replied Sep 12, 2011
No, I'm not sure. I thought it will work easier. I was mainly interested: I actually do not use huge files from MT4: so I limited all file actions to: 2147483646 bytes (2.1 GB). But thanks a lot for all your kind help: especially the GetFileSizeEx ...
MT4: WinApi GetFileSizeEx
- M_j replied Sep 12, 2011
cpm: Thanks a lot for posting. I'm definitely interested. I will be checking this out. Seems you just registered for this
So you are warmly welcomed. THANKS MT4: Create Variables on the fly
- M_j replied Sep 12, 2011
hi CockeyedCowboy; Thanks a lot. It's very kind of you. I had something along this lines in mind: but there are always some other good helpful points I might not have thought of. Like the tip about the bool values. I also had a look at hanover's ...
MT4: Create Variables on the fly
- M_j replied Sep 10, 2011
SetFilePointerEx PRoblem — Anyone spots were I made my mistake with: SetFilePointerEx http://msdn.microsoft.com/en-us/library/aa365542%28v=vs.85%29.aspx Attached: Script: ProblemExample.mq4 Somewhere I messed it up with: SetFilePointerEx
MT4: WinApi GetFileSizeEx
- M_j replied Sep 10, 2011
Xaphod just a small question. You write: // For positive integers only! // For positive integers only! void DoubleToLargeInt(double dIn, int& iaLargeInt[]) { double dHigh,dLow; is the comment correct. I looks like that it does the negative too: at ...
MT4: WinApi GetFileSizeEx
- M_j replied Sep 10, 2011
. I was not sure about this. Do you use this index files only for precalculated past data or do you also update them with live data on the fly and use them in a similar manner as arrays?
MT4: Create Variables on the fly
- M_j replied Sep 10, 2011
if I understood you correctly my next Example is what you mentioned above. int iOwnCalLive[103]; int iOwnCalLive2[103]; Could be replaced with an index file you mentioned above? or did I misunderstand you. I'm out for tonight - thanks. Attached: ...
MT4: Create Variables on the fly
- M_j replied Sep 10, 2011
I have a difficalt time with english In case you speak German, I do. you can NOT change the file with a text editor Ok I see.
MT4: Create Variables on the fly
- M_j replied Sep 10, 2011
I will upload for test purpose a very simple example. Very small script. //+------------------------------------------------------------------+ //| EXAMPLE1.mq4 | //| Copyright
2011, MetaQuotes Software Corp. | //| http://www.metaquotes.net | ...MT4: Create Variables on the fly
- M_j replied Sep 10, 2011
CockeyedCowboy, Thanks a lot. Do you have any more infos of how I would go about if I wanted to try to implement something you suggested for my own needs?
MT4: Create Variables on the fly
- M_j replied Sep 10, 2011
hi Xaphod, I was wondering if you have a ready function which does the opposite: DOUBLE to LARGE_INT e.g. one could use for SetFilePointerEx: liDistanceToMove http://msdn.microsoft.com/en-us/library/aa365542%28v=VS.85%29.aspx Syntax BOOL WINAPI ...
MT4: WinApi GetFileSizeEx
- M_j replied Sep 10, 2011
CockeyedCowboy, thanks for the feedback. I'm a bit unsure if I understand you correctly so if you don't mind just a couple of questions to clarify. One... works like a regular data file like MT's price data files You mean the History files? that ...
MT4: Create Variables on the fly
- M_j replied Sep 10, 2011
nubcake:yeah about that.... no such thing as multi-dimensional arrays in mql, just as there are no structs or typedef's etc. I think they have 4 dimensional support: url Arrays are allowed to be maximum four-dimensional. But I guess only with one ...
MT4: Create Variables on the fly
- M_j replied Sep 10, 2011
No, I guess I follow you. I have to think this over a bit.
MT4: Create Variables on the fly
- M_j replied Sep 10, 2011
And probably read it into a 4 dim string array or something like that IndicatorName | ResourceName | ResourceVariableName | Value opSMA_0.00.ex4 | DEFAULT | sConfigFileName | strategy1__opSMA_0.00__1 opSMA_0.00.ex4 | DEFAULT | bExtStartDelay | true ...
MT4: Create Variables on the fly
- M_j replied Sep 10, 2011
For the config file I'm thinking along something like this: still in procress and I might end up with something completely different. #===opSMA 1 sIndicatorName = opSMA_0.00.ex4 # To support multiple config files for the same indicator a own name ...
MT4: Create Variables on the fly
- M_j replied Sep 10, 2011
I don't really mind too much about the config file and reading in values. I have started some pre-work like the file write/read stuff and I hope the parsing is not to bad in MT4. But I'm wondering more how to best implement the other stuffs.
MT4: Create Variables on the fly
- M_j replied Sep 10, 2011
Not sure. Maybe I'm also not expressing myself to clearly English being not my mother tongue. But even if I use something like you wrote: me... i'd probably just have a blank string extern in your indicator. manually populate this with something ...
MT4: Create Variables on the fly