Forum

rolling window with linear decreasing weights

good day to you all! attached code is of a 10 period rolling window with linear descreasing weights. this is my first and very rudimentary step towards implementing an adaptive feature into EAs so that parameter values adapt to changing market conditions with weight on more recent data. however, it

need help with logic for trading log

good day to you all :) following code is of a trading log function i have written, which writes a number of variables to a file. its all working good besides it writes each order over and over again by each new run of the loop. now i was kind of suspecting this to happen and wanted to come up with a

is it possible to retrieve the ininitial stoploss value after modifying the stoploss?

i am currently coding a trading log which executes everytime a trade is closed. one of the values for my log is the stoploss. however, i want to use the original stoploss when my trade opened, but since i modify the stoploss during the trade, calling OrderStopLoss(), does not give me correct value

Some periods of my data not recognized by strategy tester? Can I trust my results?

hi all, I had planned a backtest this morning when found that the mt4 strategy tester returned no significant results. i couldn't understand this as my initial test was a direct duplicate of a test i did recently which yielded plenty of significant results. i decided to uptick ‘skip useless results‘

Question about setting up a VPS at home

dear fellow traders! I am in the process of setting up a VPS at home. Something along the lines of what this guy is describing: http://www.tradingheroes.com/how-to-build-your-own-low-cost-metatrader-virtual-private-server-vps/ However, I am not completely sure as of what I will need in terms of

directory problem - tester is not updating files in /experts

hey guys, any of you had this problem with metatrader strategy tester ? it is not updating the /experts directory. in the tester dropdown menu i still see files i have deleted and it inconsistently updates changes in code...? that is, sometimes i make a change in code and it will not be available

Anybody has the code mt4 strategy tester uses to draw arrows and lines on trades?

I would like to include a similar type of object drawing on my charts for my EA so I can visually track when and where it opened and exited trades... anybody has or know where to find the code strategy tester is using

What soft/hardware are you using for back/forward-testing?

Dear fellow traders, Two questions about what soft/hardware you are using for back/forward-testing. 1) In the process of purchasing a new computer but not sure just what I should look for in terms of CPU,RAM and diskspace etc? I plan to use the computer for backtesting and also be testing several

Question about data quality in backtesting

I have almost finished coding my first EA and exited about doing a proper backtesting soon. At first I thought I would use the data available in history center, but then this thread (link below) suggested to download data from dukascopy instead? What are you guys' opinion on this? Is the data in

Entries are distorted 5pips too high?

Anybody can help me with this? I have made my first very basic EA and in strategy tester was working fine. However, now when applying to live chart both my buy and sell entries are about 5pips too high. EA code is attached and picture shows the basic idea of strategy. based on a 13 pip distance from