thomas2004
thomas2004
thomas2004
Added topic Is it possible to import the indicator onto the price chart window?
Take the Stochastic indicator as example. I want to import it not onto a indicator window but direct onto the price chart. Possible
thomas2004
Added topic Why there is no email sent though the email setting and testing is successful?
I've set the email sending correctly and the testing is also successful. But in fact when an alert comes, I haven't got any email. In the Journal there is no record as well. What could be the problem? Thansk
thomas2004
Added topic Why this indicator doesn't work by timeframe smaller than 4H (German DAX)?
Hi all, I happened to see an indicator here: https://www.best-metatrader-indicators.com/dss-bressert-colored/. The source code is as below: //+------------------------------------------------------------------+ //| Robby DSS Bressert Colored.mq4
thomas2004
Added topic Automated Trading - MT4 or MT5?
Hi all, I use MT4 for automated trading since a time. Very often I heard that the MT5 is better. Has someone experience by MT5
thomas2004
Added topic What's the optimal time period for backtesting?
By backtesting I will ask myself quite often: How long should I trace back to do the backtesting? If I backtest the 15M timeframe, a three years historical data should be long enough? Surely many people will say the longer the better. I doubt this
thomas2004
Added topic A better way to do the optimation back testing?
Hi all, Quite often I will do the optimation backtesting. Since this is quite time costly expecially when you use the model of "Every tick...", I will use the model of " Open price only ..". But I find if I use the optimated parameters to do the
thomas2004
Added topic My EA template
Since a time I've been thinking about to build an EA template sothat I don't need to write the whole codes but just the business logic. Here is my code: //+------------------------------------------------------------------+
thomas2004
Added topic How to open 4 timeframe at the same time?
Hi, Assumed I will trade EURUSD. And I want to open the 15m, 1h, 4h and 1d chart Tilled at the same time. Surely I can do this one after the other. But what  I want is same this as a template and when I open this template next time, it will open
thomas2004
Added topic EventSetTimer(n) can not be backtesting?
Hi, My EA uses a Timer. It should print out "Hello World" every minute. I run this on demo live and it does as what I want. But as I back testing it, it will not print out any thing. I wonder if the EvenSetTimer() could be back tested
thomas2004
Added topic How to set a timer ?
Hi, I use normally the 5-min, 10-min charts in the EA. But I want to update or modify the StopLoss or the TakeProfit every minute. How to? Here are codes in my EA but this is for Bar-Begin. This means, if I use the 15-min chart, it will update/modify
thomas2004
Added topic [tickstory] What's the sense to use the historical data from TickStory for back testing?
Since many of the MT4 brokers provide very short historical data, so I download the historical datas from tickstory.com. After I do the optimazation backtesting and have chosen the optimal parameter set, I use this to run a back testing by using the
thomas2004
Added topic Why define the MAGIC_NUMBER as an integer, not string?
I understand little bit why define the MAFIC_NUMBER as an integer, not a string? I think define it as a string is much better than as an integer since you can transform an integer to a string but nit vise verse, right? Besides a string can tell much
thomas2004
Added topic [trailing stop] Problem by trailing stop
Hi, In my EA I use the trailing stop as follow: ... extern double SL_prozent = 1.0 ; double dStopLoss, dUpdatedPrice; ... void OnTick(){    // some businessLogic here    if ( OrdersTotal () > 0 ){
thomas2004
Added topic A question about modify StopLoss and TakeProfit order ...
Hi all, In my EA it will open a buy or sell order according to the conditon. If an order is opened, then I will add the SL and TP order by using the ModifyOrder as follow ( here is a buy order for example): ... extern double SL_prozent = 0.5 ; extern
thomas2004
Added topic modify order failed [Invalid S/L or T/P]
Hi, After successful backtesting I launch my EA to live trading. If a long or short condition is TRUE, it will go long or short first and then set the ST and TP by using the OrderModify(). My code look as follow: ... extern double SL_prozent = 0.5 ;
thomas2004
Added topic [back testing] Why the result is so different by using 'open prices...' and 'Every tick...'?
Hi all, I do the optimization first and get the optimized parameter sets as follow: 69        260.06    6        11.79    43.34    191.98    14.30
thomas2004
Added topic [Backtesting] A question about the difference between "Control points ..." and "Open prices only ...)
Hi all, My tes EA looks as follow. I just want to trade in the defined time interval since in different interval the spead is different. //+------------------------------------------------------------------+
thomas2004
Added topic [Backtesting] Why using the "Open prices only ...) doesn't show any result?
Hi all, As I use the " Open prices only ...) to backtest my EA, it ends just in a second and there is no any result. But if I use the other two 'Every Tick' and 'Control points ...', it takes much longer and I can see the results. Why
thomas2004
Added topic Why the optimization results are different from time to time?
Hi all, I found that if I run the optimization prozess this moment, the results are quite different when I run it again though all the parameters are not changed
thomas2004
Added topic How to read the "Optimization Graph" to filter out the overfitting?
Hi all, One can do the optimization in MT4. This is good. But one has to pay attention to not having the Overfitting. I wonder how to filter out the overfittung result according to the " Optimization Graph "? And, the "Optimization Graph" has 2D
12