Hello,
I made an EA that takes trades in the direction of the supertrend. The problem is that when I run it through the strategy tester it is only taking short positions. I am using eabuilder.com to make the code for this ea, I don't know how to code them but If I have someone diagnose the potential error in the code i'm sure I could figure it out.
I have tried parameters from several different supertrend indicators on both MT4 and MT5 and am always getting the same result. I will attach the source code for a simple supertrend bot (9/20 ema cross in the direction of the supertrend) as well as the code for the supertrend indicator that the bot is made with. I am wondering if this in an error with the actual code, the Metatrader Stradegy tester, or a problem with eabuilder.com with generating the code. Any solution or advice for this issue would be greatly appreciated!
I made an EA that takes trades in the direction of the supertrend. The problem is that when I run it through the strategy tester it is only taking short positions. I am using eabuilder.com to make the code for this ea, I don't know how to code them but If I have someone diagnose the potential error in the code i'm sure I could figure it out.
I have tried parameters from several different supertrend indicators on both MT4 and MT5 and am always getting the same result. I will attach the source code for a simple supertrend bot (9/20 ema cross in the direction of the supertrend) as well as the code for the supertrend indicator that the bot is made with. I am wondering if this in an error with the actual code, the Metatrader Stradegy tester, or a problem with eabuilder.com with generating the code. Any solution or advice for this issue would be greatly appreciated!