Alon D / Profile
Freelancer programmer
at
Alon D
Added topic Question about margin
Hello, I opened a demo account with a 1:1 leverage with a certain broker. I am trading Gold (XAUUSD), so contract size is 100 I have 50,000 EUR in the account. And I opened a BUY with trade size of 0.1 The current price was 1870.00 on MT5 I see that
Alon D
Added topic onTradeTransaction not triggered
Calling positionClose from the CTrade class doesn't trigger the onTradeTransaction event. Is there a different way I should close a position
Alon D
Added topic Subtracting 2 doubles
I have this code: double previousBar_open = ( double ) iOpen ( _Symbol , PERIOD_CURRENT , 1 ); double previousBar_close = ( double ) iClose ( _Symbol , PERIOD_CURRENT , 1 ); double previousBarDifference =
Alon D
Added topic Problems back-testing my bot
Hello, I wrote a simple bot with MQL5. It only has 2 input parameters (SL and TP distance) When I run strategy tester I get no results. It just shows as if it's working forever. Any other bot I'm testing has no problems. Do I need to do something