Forum

Can't send a sell order. 4756 10004

Hello everyone. My EA successfully sends buy orders but for some reason cannot send sell orders. When I try to send a sell order OrderSend function fails with 4756 error code and MqlTradeResult retcode is 10004. The following is a part of my code that sends orders. void openPosition( string

Custom indicator does not plot anything

Hello everyone! I am coding a simple indicator that plots the slope of the moving average with given period. The code compiles without any errors and warnings. However it does not plot anything on the window. Can you point out my mistakes

How to set indicator colors for Strategy Tester

Hello! I am coding an EA that uses 3 moving average indicators. The indicators are visible on Strategy tester but they are all the same color. I created a template with the same name as my EA and set colors but this created problems of its own. problem 1: The old red indicator lines are still