thomas2004
thomas2004
thomas2004
Added topic Is it better to use the shift0 and shift1, or the shift1 and shift2 to build the cross over?
Hi all, Assumed the stratergy is simple. It is based on the RSI cross over. If crosses over 70 -> go short. If crosses under 30 -> go long. My question: In this case will you use the shift1 for previous and shift0 for the current, or use the
thomas2004
Added topic What does WMA with period = 1 mean?
Hi all, I happen to read an article where it tells to use a WMA indicator with period = 1. Is this a nonsence? This means no smoothing and it is the same as the price itself. Right? Thomas
thomas2004
Added topic What does "standard 50 period stochastic oscillator with a 3 period slowing" mean?
Hi all, Normally the stoch has 5 input parameters: fastk_period, slowk_period, slowk_matype, slowd_period, slowd_matype. I understood it should be fastk_period=50 and slowk_period=3. Right
thomas2004
Added topic Has someone hearn XAverage indicator?
I guess it is the same as EMA, right
thomas2004
Added topic My simple MACD EA seems not works correctly. But why?
Hi, I am new by EA. I try to build a very simple EA such as using the MACD to check if there is a golden cross (MACD crosses over the signal). If there is golden cross, go long. If there is a dead cross, close the long position. My EA is attached. By
thomas2004
Added topic Does "Volume[0]>1" means this is not a new bar?
Hi, I see from an EA followings: ... //--- go trading only for first tiks of new bar    if ( Volume [ 0 ]> 1 ) return ; ... It seems only when the Volume[0] = 1. it is a new bar, right
thomas2004
Added topic I get error by using the indicator StochRSI in some time frame
Hi, In the attachment is an indicator which does similar to StochRSI. There are two input paras: RSI and K and D. When I chose RSI=14, K=2 and D=2, I get error message as follow: ... 2017.07.09 21:03:30.843 StochRSI EURUSD,H1: zero divide in
thomas2004
Added topic Why I can't close the last order by using OrderClose()?
Hi, I first open 3 orders manually. Then I start the EA which does nothing but close all the opened orders if I delte it from the chart. My code look as follow: ... //+------------------------------------------------------------------+ //| Expert
thomas2004
Added topic Who can tell me if this backtesting result good or not so good?
I make a back testing on my algo and the repor looks as follow. It makes positive return. But the period is fro m2016.06.01 to 2017.06.23. Isn't too less
thomas2004
Added topic What is the difference between Close[0] and Ask/Bid?
I think they are the same, right
thomas2004
Added topic How to present price crosses over/under the SMA?
Hi, In my algo I just want to check if the close price crosses over or under the SMA. My code look as follow: ...    double MAkurz = iMA ( NULL , 0 ,MA_kurz, 0 , MODE_SMA , PRICE_CLOSE , 1 ); ... ...    if (NeuePeriodeBegonnen ==
thomas2004
Added topic What's wrong in my program?
Hi, I wrote a small algo which use the indicator of KDJ. This could be download from  https://www.mql5.com/de/code/9173. My algo in the program is simple as follow: if K crosses over D -> Long if K crosses under D -> Close Long and go
thomas2004
Added topic Has someone used this KDJ indicator?
I've fund it under: https://www.mql5.com/de/code/9173 I use this in my program as follow: ... double KDJCurrent = iCustom(NULL,0,"KDJ",9,0.6666666,0.3333333, 0); ... But I wonder how to get the values of K, D and J? Cheers
thomas2004
Added topic A question about MACD...
Hi all, I will use in my algo the so called MACD golden cross or dead cross. This means I need considering the signal line and the macd line. But it seems the indicator in MT4 iMACD just have the MODE_MAIN (Histogramm) and MODE_SIGNAL. Where can I
thomas2004
Added topic How to debug in MetaEditor?
Hi all, I want to debug my prgram. I use the method described in this article and set debug on historial data. But it doesn't work, i.e. the menu item "Start to History Data" is still disable
thomas2004
Added topic Does someone know a good EA Builder (Tool)?
Hi, Surly we can write program in MQL4/5. But I know one can also the tool such as EA Builder etc to accelerate programming time and even better for someone who has little programming skill. Who knows any good one
thomas2004
Added topic Why the downloaded historical datas are not compltet?
Hi, I want to do a back testing and before I do this I download first the historical datas of USD/EUR of 15min. But as I run the back testing I got error that "...TestGenerator: no history data 'EURUSD15' from 2017.06.01 to 2017.06.08". In fact, as I
thomas2004
Added topic Has someone tried the example EA "tradingexpert.mq4" in the Tutorial?
Hi, I am new by MQL4. These days I read the tutorial from " https://book.mql4.com/samples/expert ". On this side at the end there is an EA called "tradingexpert.mq4". But as I try this in MT4 for automated trading , I doesn't work. The EA seems can
thomas2004
Registered at MQL5.community
12