You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
This is the complete code, I have tried learning from multiple sources, many like to use While(true) loop, but, it always goes into infinite loops. I still have the problem where it will not always trade at every cross. If I do not do it the way as shown it will go into infinite orders. I want it to do every cross in strategy tester so I can study things because I plan to add a RSI filter later then also a add a pull back, but, even though I now have it to where it can open and close only once per cross, it does not have the same precision as if (EMA_1 > EMA_3) and if (EMA_1 < EMA_3) does.
Once I can get past this barrier, then I add in the RSI filter where it will enter trades if below or above a certain RSI level. Then after that, if the option to do pull backs is enabled it will go off 26 or 50. Of course, I plan to have two exit strategies, that is use moving average to stop loss or do a ordercloseby function. Still my biggest obstacle is just having my ea not placing an order immediately upon being placd onto a chart, to do only one trend trade per cross and to recognize each cross.
My code is not complete because I discovered that Traders Way is a ECN broke with 3 ans 5 digits.
I did forget to mention that I rarely just copy and past codes from another source, I do test, which is why I have so many Print and Comment commands. So, for me, I am probably taking the harder way around things but I am learning how to do this without having to completely copy things.
Pointless piece of code. Total can never be smaller than 1 as you have just increased it by 1
Pointless piece of code. Total can never be smaller than 1 as you have just increased it by 1
Yea, I noticed that. Because when the A is running, it is going to rely on the ticket and orders total, then the remaining filters comes from things like magic number, symbol name, if additional string is added, the type of order and so on. I really do not need to explain much detail because I am the noob and you guys have the experience.
I noticed the default tutorial provided to us is useless as some things will not trigger and others causes infinite loops.