previous bar OHLC
1 2 3

thread: previous bar OHLC

  1. #1
    Junior Member Carroaupk's Avatar
    27

    previous bar OHLC

    Hello,

    Is there some possibility to generate MT4 to display OHLC data of the prior bar/candle instead of the currently developing one in the upper left corner?
    Or maybe there is an indior posted somewhere, but I could not find it.

    cheers

  2. #2
    Put up a screenshot Using a chart that has the EA attached

  3. #3
    THAT'S A Indiion OF Terrible PROGRAMMING!
    Are you suggesting that individuals should use the assistance of a spammer instead?

    https://www.cliqforex.com/trading-sy...-question.html

  4. #4
    Junior Member Carroaupk's Avatar
    27
    This one is easy. It might be a piece of code like:

    Inserted Code Comment(Open#91;1#93;,High#91;1#93;,Low#91;1#93;,C lose#91;1#93;-RRB-; also it would display right beneath the current OHLC
    thank you very much,
    but could you place it into code if it's no problem for you?
    I've been trying for a while- it compiles well but nothing comes up the screen after applying. I am totally unfamiliar with mql structure and probably messed something up.

  5. #5
    Why dont you post the code that you have now and that I might help fix it.

    You article code at no cost, not the other way around

  6. #6
    Junior Member Carroaupk's Avatar
    27
    Why dont you post the code you have now and I might help correct it.

    You post code at no cost, not the other way around
    Really there is nothing to show, I only tried to manipulate code of some other indior, which can be MT4 included, just deleted that code and added the line you suggested. Apparently there is some init() function and start () but I don't have any clue what to do with it. It is only a matter of trial and error for me.
    I thought that it is as straightforward as in the example of C language for instance: main() and coutlt;... but it isn't. Or maybe it is but it's black magic for me.
    I asked on the forum since I don't wish to waste 2 days just to work out some very simple line that I can live without.

  7. #7
    Try this:

    Inserted Code //P ------------------------------------------------------------------ //| GoHan OHLC.mq4 | //| Copyright © 2008, gohanforex.com | //| http://www.gohanforex.com | //P ------------------------------------------------------------------ #property copyright Copyright © 2008, gohanforex.com #property Hyperlink http://www.gohanforex.com //P ------------------------------------------------------------------ //| expert initialization Serve | //P ------------------------------------------------------------------ int init() //-- managelowerstatus(http://www.gohanforex.com); //-- return(0); //P ------------------------------------------------------------------ //| expert deinitialization function | // ------------------------------------------------------------------ int deinit() //-- //-- return(0); //P ------------------------------------------------------------------ //| expert start Operate | // ------------------------------------------------------------------ int Begin () //-- Opinion (Open#91;1#93;,High#91;1#93;,Low Cost #91;1#93;,Close#91;1#93;-RRB-; //-- return(0); // ------------------------------------------------------------------ // ------------------------------------------------------------------ //| Manage lower Standing | // ------------------------------------------------------------------ void managelowerstatus(string addstatus) ObjectDelete(Lower_Status); Should (addstatus! ) =-RRB- ObjectCreate(Lower_Status, OBJ_LABEL, 0, 0, 0);// Establishing obj. ObjectSet(Lower_Status, OBJPROP_CORNER,3); // Reference corner ObjectSet(Lower_Status, OBJPROP_XDISTANCE, 2);// X coordinate ObjectSet(Lower_Status, OBJPROP_YDISTANCE, 1);// Y coordinate ObjectSetText(Lower_Status, addstatus, 9, Verdana, Yellow);

  8. #8
    Junior Member Carroaupk's Avatar
    27
    Try this:
    not Functioning:[

  9. #9
    That is your whole article?

    At least put an error message or something

  10. #10
    Junior Member Carroaupk's Avatar
    27
    that is your entire post?

    At least put up an error message or something
    There isn't any.
    It compiles without any warning, but nothing happens after I use it to a chart.

  •