Forum

Get Economic calendar

Hi I want to create EA to get news times. I get history with: CalendarValueHistory (newsHistory,startDate,endDate, NULL , "USD" )) and i get event info with: CalendarEventById (newsHistory[ 0 ].event_id, event); but event.name and time of news in history that i get is not match with calendar in

Gap between Bid prices

Hi It's part of my code: Print ( " Open:" , OrderOpenPrice (), " Bid:" , Bid ); if ( Bid - OrderOpenPrice ()>=( 30 * Point )) { // Send Order } Output in journal of strategy tester: Why Bid price jump from 0.87801 to 0.87822? In this situation my expert goes wrong(30Pip distance in

why 'OrderSelect' function return true to closed orders too?

Hi I have this code and i select order # 12345, OrderSelect function always return true even when order closed with takeprofit Why? Print ( OrderSelect ( 12345 , SELECT_BY_TICKET , MODE_TRADES ));