前のバーOHLC
Results 1 to 5 of 5

Thread: 前のバーOHLC

  1. #1
    こんにちは、

    私は左上隅に前のバーのOHLCを表示する別のスレッドでいくつかのコードを見つけました。


    // ----------------------------------------------- -------------------
    //| GoHan OHLC.mq4 |
    //|著作権©2008、gohanforex.com |
    //|
    http://www.gohanforex.com|
    // ----------------------------------------------- -------------------
    #property copyright著作権©2008、gohanforex.com
    #property link
    http://www.gohanforex.com

    #property indior_chart_window

    // ----------------------------------------------- -------------------
    //|エキスパート初期化関数|
    // ----------------------------------------------- -------------------
    int init()
    {
    //----
    managelowerstatus( - );

    //----
    return(0);
    }
    // ----------------------------------------------- -------------------
    //|エキスパート初期化機能|
    // ----------------------------------------------- -------------------
    int deinit()
    {
    //----

    //----
    return(0);
    }
    // ----------------------------------------------- -------------------
    //|エキスパートスタート機能|
    // ----------------------------------------------- -------------------
    int start()
    {
    //----
    コメント(Open [1]、High [1]、Low [1]、Close [1]);

    //----
    return(0);
    }
    // ----------------------------------------------- -------------------
    // ----------------------------------------------- -------------------
    //|低いステータスを管理する|
    // ----------------------------------------------- -------------------
    void managelowerstatus(string addstatus)
    {
    ObjectDelete(Lower_Status);
    if(addstatus!=)
    {
    ObjectCreate(Lower_Status、OBJ_LABEL、0、0、0);/objを作成します。
    ObjectSet(Lower_Status、OBJPROP_CORNER、3);/基準コーナー
    ObjectSet(Lower_Status、OBJPROP_XDISTANCE、2);/X座標
    ObjectSet(Lower_Status、OBJPROP_YDISTANCE、1);/Y座標
    ObjectSetText(Lower_Status、addstatus、9、Verdana、Yellow);
    }
    }

    これは完璧に動作しますが、私の視力は私のiPhoneで最高の読書ではなく、私は各価格と1.4344 1.4352 1.4345 1.4345の間にスペースを持っていたいと思います。

    誰でも私を助けて、私がコードで変更する必要があることを示すことができます。
    ありがとう
    Gemmabug

  2. #2
    ObjectSet(Lower_Status、OBJPROP_XDISTANCE、2);/X座標のObjectSet(Lower_Status、OBJPROP_YDISTANCE * 2、1);/Y座標ObjectSetText(Lower_Status、addstatus、9、Verdana、黄);助けてくれるかもしれませんが、コード全体を見ずに言うことはできません。コメントからのものであれば... Comment(Open [1]、nn、High [1]、nn、Low [1]、nn、Close [1]);役立つかもしれません。 **編集:追加された 'n'( '\ n \ n')の前にバックスラッシュがあるべきです...何らかの理由でそれが上に出てこない、 、High [1]、Low [1]、、Close [1]);

  3. #3

    Quote Originally Posted by ;
    追加された 'n'( 'nn')のそれぞれの前にバックスラッシュがあるべきです...何らかの理由でそれが上に出てこない、
    投稿のテキストは消されます。 2つのバックスラッシュはあなたに1つを与えるはずです。タグにコードを入れて、それをそのままレンダリングします:
    Code:
     Comment(my code \ n);
    または
    PHP Code:
    コメント(my code n)

  4. #4

  5. #5
    完璧。ありがとう、ガイのこと。それが仕事です。とても有難い

投稿権限

  • Youma新しいスレッドを投稿しない
  • Youmaは返信しない
  • あなたは添付ファイルを投稿しないかもしれない
  • Youma Notedityourposts
  •  
  • スマイリーはオンです
  • スマイリーはオンです
  • [IMG]コードがオンです
  • [VIDEO]コードがオンです
  • HTMLコードがオフです
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.