助けて! - 既に開かれた価格にあまりにも新しい注文をしないようにするには?
Results 1 to 2 of 2

Thread: 助けて! - 既に開かれた価格にあまりにも新しい注文をしないようにするには?

  1. #1
    すでに開かれているすべての価格を確認するにはどうすればよいですか?
    私は以下を試みたが、うまくいかなかった。



    if(条件).....



    for(bcnt = btotal-1; bcnt gt; = 0; bcnt--)
    {
    OrderSelect(bcnt、SELECT_BY_POS、MODE_TRADES);
    if(OrderType()lt; = OP_SELL OrderSymbol()== Symbol())
    {
    if(OrderType()== OP_BUY)
    {
    if(OrderOpenPrice() (Point * OrderDist))||(AskO; OrderOpenPrice() - (Point * OrderDist)))
    {
    購入();


    ......



    //------------------------------

  2. #2

    Quote Originally Posted by ;
    すでに開かれているすべての価格を確認するにはどうすればよいですか?私は以下を試みたが、うまくいかなかった。 if(条件)..... for(bcnt = btotal-1; bcnt gt; = 0; bcnt--){OrderSelect(bcnt、SELECT_BY_POS、MODE_TRADES); if(OrderType()lt = = OP_SELL OrderSymbol()== Symbol())if(OrderType()== OP_BUY){if((OrderWindowPrice() (Point * OrderDist))|| ; OrderOpenPrice() - (Point * OrderDist))){Buy(); ....../------------------------------
    あなたはループの中で買い機能を持っていますか?ループを繰り返し繰り返し、すべてのオーダーをチェックして、ANYが近すぎるかどうかを確認します。ループの外側にあるすべての良いものがあるかどうかをテストしてから、ループの外側にあるものを買います。bool tooclose = false; for(bcnt = btotal-1; bcnt gt; = 0; bcnt--){OrderSelect(bcnt、SELECT_BY_POS、MODE_TRADES); if(OrderType()lt = OP_SELL OrderSymbol()== Symbol())if(OrderType()== OP_BUY){if((OrderOpenPrice() (Point * OrderDist) () - (Point * OrderDist)))tooclose = true; }}}/ループの外側if(!tooclose)Buy();そうでなければ警告(買うにはあまりにも近すぎる);

投稿権限

  • 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.