Download MetaTrader 5
To add comments, please log in or register
Thousands of developers have already published their products in the Market. Join them!
tao zemin.
402
tao zemin. 2013.12.21 10:12 

Dear all,

May I know where to get the document on the outputs in the chart during strategy backtest? for example, I want to know the meaning of the graphical objects in the attached image... Many thanks for your time and consideration, and Merry Christmas to you nice gentlemen, for your proficiency, your effective and prompt reply throughout the past year.

Sincerely,

taozemin

chart output during backtest.

4x4ever
440
4x4ever 2013.12.21 12:05  

BLUE Arrow : open BUY

RED Arrow : open SELL

YELLOW Triangle : order CLOSE

BLUE Dashed Line : connects BUY (BLUE arw) with its CLOSE (YELL triang)

RED Dashed Line : connects SELL (RED arw) with its CLOSE (YELL triang)

= = =

I also see there are BLACK Arrows... not sure what these are, probably stop loss or take profit levels... or may be BUYLIMIT/STOP or SELLLIMIT/STOP?

Or better yet - you can just test it and see for yourself what everything means. Write an EA which opens sequentially several trades of diff type, and then examine the tester chart. Something like:

int curr_tr_idx = 0;
int arr_op[] = { OP_BUY, OP_BUYLIMIT, ... OP_SELLSTOP };
datetime arr_t_opn[] = { D'2013.12.19 10:00', D'2013.12.20 10:00', ..., 0 };
datetime arr_t_cls[] = { D'2013.12.19 22:15', D'2013.12.21 01:00', ... 0 };
double   arr_tp[] = { 30, 40, ... };
double   arr_sl[] = { 25, 55, ... };
int arr_tickets[] = { -1, -1,  ... -1 };

int start()
{
    if( 0 == arr_t_opn[curr_tr_idx] ) return 0; // past last test date...

    if( TimeCurrent() >= arr_t_cls[curr_tr_idx] ) OrderClose();
     
    if( arr_t_opn[curr_tr_idx] >= TimeCurrent() )
    {
        arr_tickets[curr_tr_idx] = OrderSend( Symbol(), arr_op[curr_tr_idx]... );
        curr_tr_idx++;
    }
}

Please treat the above as pseudo-code - I am just giving you direction, it will not work as-is, (actually won't not even compile), but you get the idea... I hope.

/
To add comments, please log in or register