TraderTogami
TraderTogami
Friends 1
TraderTogami
Added topic Are Built-In Indicators Pre-computed in Strategy Tester?
As the title says, are built-in indicators pre-computed in the strategy tester ? I was wondering if the only overhead for theses indicator functions (i.e iMA) is just extracting the values from the buffer? I couldn't find anything the documentation
TraderTogami
Added topic Is there static cast in MQL4?
I was looking in the documentation and I only find run-time casting (<dynamic_cast>) but I was wondering if static_cast is available in MQL4? If not, is there a workaround to implement static polymorphism in MQL4? 
TraderTogami
Added topic What Makes Indicators So Fast
I am curious, MT4 indicators seem to use slow algorithms. For example, Ichimoku computes the maxes and mins by just looking back at the given input look back period as opposed to having an efficient data structure do it. It also keeps many buffers
TraderTogami
Added topic Finding Performance Bottlenecks in EAs
My question is when developing an EA in MQL4, what are the best ways to finding the things in your code that are slowing backtesting the most? For example, can I see which lines are causing the CPU the most problem (I know something so literal might
TraderTogami
Added topic How to Clean up Static Pointer Attributes
So I am trying to implement a class (whose incomplete code can be seen below). In its implementation, I want to use a static pointer to help with static operations. However, I don't know what would be the best way to delete that pointer's memory upon
TraderTogami
Added topic Declaring Template Class Variables
Hey, I have implemented this Queue that takes any type. I want to use like this since I don't know the max size at time of initialization:  Queue< double > q; // Work q = Queue< double >( 20 ); // Where 20 is the max size of the
TraderTogami
Added topic Sequential Backtest Optimization
To my knowledge MT4 runs on a single-thread. Is this assumption correct with respect to the strategy tester , that it does not start another combination of parameters until the current one is finished running? 
TraderTogami
Added topic Memory Management With Created Classes
Background I am current trying to use MQL4's AlgLib library made by MetaQuotes, albeit with some slight edits. I am making some changes to the CMatrixDouble Class to in the matrix.mqh file to make the CMatrixDouble class easier to use.  Current
TraderTogami
Added topic Ongoing Indicator Calculations vs Using Indicator Functions
I have been asking myself if I could really save run time with a current project I am working on. This project utilizing many indicators, and I was wondering if I really should be utilizing the the in-built functions and the custom indicator
TraderTogami
Added topic Recursive Functions
I am trying to use Merge Sort to manually sort an array variable. The reason, I am not using the ArraySort() function is because I am going to edit the code so that I can sort a few other arrays based on the first array. However, I want to make sure
TraderTogami
Added topic Cannot Import Data into MT4
Currently, I am trying to import some csv M1 data via the import function in history center, but for some reason the file doesn't register.  First thing that came to my mind is it must be a formatting issue, so I have a sample of the data. Can
TraderTogami
Added topic OrderOpenTime() Returns Order Closing Time
I am currently using the strategy tester , and I couldn't help but notice the OrderOpenTime() function returns the OrderCloseTime() value after the order has been closed . Meaning, while the order is open the OrderOpenTime() produces the right
TraderTogami
Added topic Where is the MetaQuotes Server Located?
I just wanted to know the timezone of the MetaQuotes Server (i.e When you downloading MetaQuotes Data from the History Center, what timezone are you collecting from?)
TraderTogami
Added topic MQL4 History Center DayLightSaving Adjustment
I was once again thinking about the data that I collect from the History Center for my specific platform, and I was wondering if daylight savings times were automatically adjusted.  For example, if the data I get is in GMT, does the summer time
TraderTogami
Added topic Existence of a Shortcut MQL4 Optimization?
After you are done doing your optimization on your algo's parameters. Is there a shortcut to run the list of results over a new date range or do you just have to do it manually? 
TraderTogami
Added topic Weird RSIOnArray Behavior
Can someone explain why this print statement would produce different values if I set Size to any Value any bigger than 256? Shouldn't the values be the same for all prints with Size >= 256.   It is my understanding that iRSIOnArray uses
TraderTogami
Added topic Question about MQL4 If-statements
If I have a statement like this:  if(Bool1() || Bool2()){...} where Bool1 returns True and Bool2 produces an error; does this if-statement produce an error or does Bool2() get ignored. In other words, are if-statements eagerly evaluated in the
TraderTogami
Added topic Possible Solutions to Runtime Error: 4025
I was trying some code in the MQL4 backtesting application. This code will not   be ran outside of this "backtesting." Within this code I am using several ArrayResize calls with a large 'new_size' values. I am not using multiple ArrayResize
TraderTogami
Added topic Dynamic Arrays in Expert Advisor
I know when you are creating a custom indicator , you can create a truly dynamic array to operate as a buffer where you are don't ever have to state its size.  I was wondering if the same this is possible when creating EAs, currently I get the
TraderTogami
Added topic Splitting up Large CSV FileWrites
I am trying to build a CSV file where the columns exceed the max number parameters that can be taken into FileWrite (which according to the documentation is 63).  Is there a way to to split up the FileWrite so that I can write to more than 63
12