- Credits
- 11
Hi, I fixed it. Now looks good.Dear Tanaka San, thank you so much for the kind support and for every time correction.
I tested this revised version, same issue found. Your red dotted line is not EMA10, it is SMA10 and that is the reason EMA and SMA crosses are not happening on right time.
I have made small video for you in which you will see that order has even picked on without cross because it is reading values of SMA10 + SMA50. I changed the settings to check if your dotted lines are correct or not and found red dots are default values of SMA only and all orders are as per SMA + SMA, not by the settings from EA (SMA + EMA).
When I stopped BT of EA, it draws additional thin red line also which I check, it was SMA10 drew by the EA, so I think you need to remove that SMA default value from the coding as even if you change values in EA settings, it keep working only as per SMA + SMA.
Your yellow dots are correct, I changed value from SMA50 to SMA100 and SMA200, it draws correctly. Red dots are wrong, you can simply move your mouse cursor on it or when you stop BT, you will see it gives SMA values, not EMA and that is the reason orders are delay and more martingale are happening and DD increased.
https://streamable.com/h35g7 <<< This video you can see wrong order picked before cross as it is reading coding of SMA + SMA, should be EMA + SMA or any value.
https://streamable.com/gjse2 <<< This video you will see red dots are as per SMA values however should be EMA, I think issue from coding as I changed value in EA but still same, you will see the difference as I also attached MA manually to see the difference. You can see in the end of the video.
This is the only error needs to be adjusted, rest all fine. Please also add tiny white arrows on candle when order picked.
Arigato.![]()
