It's about amonth or so, since I introduced this problem on a different thread. Thank you for the earlier constructive criticsand advise. It has finally come together and here it is, open for further critic. The code does perform trailing stop
Hi to All Before I disclose the problem, I wish to thank WHRoeder for the help with this problem earkier in the, but the problem has not been solved. A disclosure: A code I have been working on, does work. It is for experimenting so please, use it as
Hi You All Been working on a code where the Trailing Stop is not working. The code is built so that it will SELL only. The liquidation of positions is by trailing stop, or by a Moving Average cross, which ever occurs first. But the Traing Stop
Hi you all The code liquidates well with if (Open[ 1 ]>ma && Close[ 1 ]<ma) And also with if (dAsk < ma) But if I request a SELL order or BUY order to liquidate when Highest High or Lowest Low condition, the liquidation does not
Hello to all I have redone the code so as that it will only BUY. No sell actions except to liquidate the BUY positions. Sounded easy enough. Everything was going well until I got down to the iSignalClose(). The code is attached and if there is anyone
Hello to All, Here I am with a code that works fine, but it is not closing properly. The closing strategy started with an idea for all positions to close if the price reached, 1*iATR, a signal for a profitable close. And if the price moved agaisnt
Hello to all I have eliminated all errors and warnings : ) with exception of the " function definition unexpected" grrrrrr Have a look at the code and see if you can resolve. The problem is where the code shows the 'int deinit ()' Thanks
Hello to all A code is backtested on two separate accounts. Both accounts are with the same broker. The history in the tools were updated on both accounts. The only diference between the two accounts is that one account is LIVE, the other is a DEMO
Hello to all No programs will optimize. Even the default MACD Sample or the Moving Average will not optimize. When any program is backtested , the results appear not to come close to how they were backtested earlier. Prior to this problem, meaning
Hello The program that I have backtests , forward tests, and now I wish to set it to go LIVE Automation. How is this done please? Thank you in advance. Huckleberry
Hello to all The existing code does work. I will post the code in the next message within this thread. Yes, this code does work, not that it is profitable, but it is a great learning tool. The system at this time trades one position at a time (enters
Hello to All Thank you in the past for all your help. The help I have received is of course a learning experience for me, but in hopes that others will benefit from my mistakes. In this problem, an error occurs ' Function definition unexpected'
Hello to All It is to my discovery, optimization has procedures that I was not aware of. Such as the many passes with different variables. Such an improvement over how I have attempted to backtest. My problem is that I went to the thread 'Automated
Hello to All There are actually two problems but I believe one is affecting the other. I will post the code in an attachment because of error message 'Text is to long'. The problem areas are indicated with ??????????????? at the end of the lines
Hello everyone, Problem with liquidateing positions when the price moves against the position by two times the ATR. The following portion of code describes the situation. //+------------------------------------------------------------------+ //|
Hello to all Well once again I must turn to you gurus out there. I posted a problem earlier. The original code worked. Not just compiled. I attempted to add an additional stop. I can get the code to compile, but the second stop is not acknowledged. I
Hello to everyone, The complete code was working. Compiled with buys/sells. Not that it was profitable. Just adding more steps. When I attempted to add on TakeProfitBuy = 50; the Buy trade will now not close. Could I have some input please. void
Hello to all and thanks for the help in the past A couple of questions to understand the MACD Sample 1). MODE_MAIN = the base indicator line. This is the explanation inside the documentation stated here. This base indicator line is the cutoff point
Hi to All I have been down this route before, and this weekend I want to have it fixed for sure. I have reloaded the MetaTrader4 platform and activated it with new Login, Password. I have checked the Expoert Advisor button and have clicked Tools >
Hello to all, I have found a EA which closely covers a system which I have been kicking around. By no means do I wish to copy without permission. But if this EA is listed in the Code Base on this site, is it permisible to do so? I have worked with it