#property strict
#property script_show_inputs
#include <stdlib.mqh>
sinput int check_select_no;
void OnStart(){
bool Select_bool;
int orderhistory_num;
int err_code;
orderhistory_num = OrdersHistoryTotal();
if ( orderhistory_num > 0 && check_select_no < orderhistory_num ) {
Select_bool = OrderSelect( check_select_no , SELECT_BY_POS , MODE_HISTORY);
if ( Select_bool == true ) {
OrderPrint();
} else {
err_code = GetLastError();
printf("注文選択エラー:エラーコード[%d]、詳細:%s",err_code, ErrorDescription(err_code) );
}
} else {
Print( "アカウント履歴に決済済み注文データがありません" );
}
}
#15192325 2015.05.01 21:55:17 sell 0.02 USDJPY 120.278 120.488 120.228 2015.05.01 22:10:52 120.222 0.00 0.00 112.00 スキャル1st(EA):3[
tp] 9900