Show trades indicator not working (qShowTrades)

 

Hi,

How can see displayed on the chart the trades I've done? I tried the qShowTrades custom indicator but nothing happened. (I changed the colors and width)

Is there any other way to see on the chart the entry and exit points of previous trades?

Thanks

 
mike_flag:

Hi,

How can see displayed on the chart the trades I've done? I tried the qShowTrades custom indicator but nothing happened. (I changed the colors and width)

Is there any other way to see on the chart the entry and exit points of previous trades?

Thanks


take the closed trade from history and drop in the chart window
 
EADeveloper:

take the closed trade from history and drop in the chart window

Thanks...big help!

Isn't it possible this to be automatic? So I don't have to dragging all the trades from history to the charts.


Thanks

 
mike_flag:

Hi,

How can see displayed on the chart the trades I've done? I tried the qShowTrades custom indicator but nothing happened. (I changed the colors and width)

Is there any other way to see on the chart the entry and exit points of previous trades?

Thanks

https://www.mql5.com/en/code/10551 Learn to read code and you'd see the problem
    if (gTimeDemo)
    {
        int t,m,y;
        t = TimeDay(Time[0]);
        m = TimeMonth(Time[0]);
        y = TimeYear(Time[0]);
        if (y >= gDemoYear &&
            m >= gDemoMonth &&
            t >= gDemoDate)
               return(0);
    }
 
WHRoeder:
https://www.mql5.com/en/code/10551 Learn to read code and you'd see the problem

What I don't understand is why somebody would post code to the codebase with such a time limit in it.

It has to be said that anybody who can't see the problem has evidently never done any sort of computer programming in any language. Maybe that's the point, to eliminate the hopeless or just plain lazy cases.

Reason: