Forum

Issue with CHIKOUSPAN_LINE

ichiHandle= iIchimoku ( NULL , 0 ,tenkan_sen,kijun_sen,senkou_span_b); ///////////////////////////////////// double GetIchi( const int buffer, const int index) { double Ichimoku[ 1 ]; ResetLastError (); if ( CopyBuffer (ichiHandle,buffer,index, 1 ,Ichimoku)< 0 ) { return ( 0.0 );

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 ));