MyLanguage ডকুমেন্ট

লেখক:ভাল, তৈরিঃ 2018-12-14 17:33:09, আপডেটঃ 2019-04-10 09:11:27

[TOC]

  • মৌলিক বর্ণনা

    • চুক্তি

      পণ্যের ফিউচার চুক্তি, ক্রিপ্টোকারেন্সি চুক্তি

      কমোডিটি ফিউচার/ক্রিপ্টোকারেন্সি চুক্তি

      this_week   OKEX futures contract for current week
      next_week   OKEX futures contract for next week
      quarter     OKEX futures contract for quarter
      
      XBTUSD      BITMEX Perpetual Contract
      
      rb888       Rebar main contract
      MA000       Methanol Index Contract
      rb1901      Rebar contract
      …and so on.
      

      img

      চুক্তি সেট করার সময়, আপনি rb1901/rb1905 নির্বাচন করতে পারেন বাজার তথ্য rb1901, অর্ডার ট্রেডিং চুক্তি rb1905

    • ভেরিয়েবল

      একটি ভেরিয়েবল হল কম্পিউটারের মেমরিতে তথ্য সংরক্ষণের জন্য খোলা একটি স্থান। সহজ কথায়, এটি তথ্য সংরক্ষণের জন্য ব্যবহৃত হয়।

      প্রথম ভেরিয়েবল ঘোষণা করুন

      // Assign 1 to the variable a
      a:=1;
      

      এম ল্যাঙ্গুয়েজে, ডাটা ভলিউম থেকে একটি সহজ পার্থক্য করা হয়ঃ

      1. একক মানের তথ্যঃ শুধুমাত্র একটি মান, যেমন 0, 1, 'abc
      2. ধারাবাহিক তথ্যঃ একক মানের তথ্যের একটি একক সেট সমন্বয়ে গঠিত তথ্যের একটি ধারাবাহিকতা, যেমন ক্লোজ (ক্লোজ মূল্য), যেখানে ক্লোজ n চক্রের বন্ধের মূল্য ধারণ করে [ 10.1, 10.2, 10.3, 10.4, 10.5... ]

      ভেরিয়েবল টাইপ থেকে আলাদা করুন

      1. স্ট্রিং টাইপঃ অবশ্যই প্যাসেজ ব্যবহার করতে হবে, স্ট্রিং টাইপ সরাসরি ব্যবহার করা অনুমোদিত নয়, আপনি ফাংশন আউটপুট ভিউ মেলে প্রয়োজন
      INFO(CLSOE>OPEN,'OK!');
      
      1. মানের ধরনঃ পূর্ণসংখ্যা, ভাসমান বিন্দু সংখ্যা (দশমিক) সহ
      // integer
      int:=2;
      
      // decimal
      float:=3.1;
      
      1. বুলিয়ান টাইপ, 1 (সত্য) বা 0 (মিথ্যা) ব্যবহার করেঃ 1, 0, সত্য বা মিথ্যা, উদাহরণস্বরূপঃ A:=1>0; এই কোডটি কার্যকর করার পরে, A এর মান 1
      // The current period closing price is greater than -999, you will find that the return value of each cycle is 1, representing true, because the closing price is almost impossible to be negative
      Is_true:=Close>-999;
      
      1. গ্লোবাল ভেরিয়েবল
      VARIABLE:VALUE1:10;     // Declare a global variable with a value of 10 and execute only once.
      
      • নামকরণের নিয়ম

        বেশিরভাগ সিস্টেমে, ভেরিয়েবল নামকরণ সিস্টেম সংরক্ষিত শব্দ (বিল্ট-ইন ভেরিয়েবল নাম, ফাংশন নাম), যেমন সুপরিচিত ক্লোজ, সি এর ব্যবহারের অনুমতি দেয় না। উপরন্তু, খাঁটি সংখ্যাগুলি অনুমোদিত নয়, বা সংখ্যাগুলি শুরু হয়, এবং খুব দীর্ঘ হতে পারে না, বিভিন্ন সিস্টেম, এবং বিভিন্ন দৈর্ঘ্যের সীমা ভিন্ন। আসলে, ইংরেজি বিশ্লেষণের জন্য আপনাকে মূলধারার সিস্টেমের দক্ষতার সাথে জড়িত হতে হবে না। আমি বিশ্বাস করি যে এম ল্যাঙ্গুয়েজ ইংরেজি ভাষাভাষীদের জন্য খুব বন্ধুত্বপূর্ণ। আমি আপনাকে নিম্নলিখিত নামকরণ কনভেনশন ব্যবহার করার পরামর্শ দিচ্ছিঃ

        ইংরেজি + আন্ডারলাইন

        // output
        Move_avg_5:=MA(C,5);
        

        আপনি যদি ইংরেজি পছন্দ করেন তবে দয়া করে আপনার ভেরিয়েবলগুলির অর্থ যতটা সম্ভব মানুষকে বুঝতে দিন। নামকরণ পদ্ধতি যেমনঃ এ 1, এএএ, বিবিবি ব্যবহার করবেন না... আমাকে বিশ্বাস করুন, কয়েক দিন পরে, আপনি যখন আপনার সূচক কোডটি আবার পর্যালোচনা করবেন, তখন আপনি মেমরির অভাবের কারণে খুব ব্যথা বোধ করবেন। একইভাবে, যখন আপনি অন্যদের কাছে কোড এক্সপোর্ট করবেন, পাঠকের মানসিকতা অবশ্যই ভেঙে পড়েছে।

        তাহলে, এখন থেকে, M Languageকে যতটা সম্ভব গ্রহণ করুন! আমি আশা করি এটি আপনার বিশ্লেষণ এবং সিদ্ধান্ত গ্রহণের জন্য একটি শক্তিশালী হাতিয়ার হবে।

    • তথ্যের ধরন

      ডেটা টাইপ একটি মৌলিক ধারণা। প্রোগ্রামিংয়ে, যখন আমরা একটি ভেরিয়েবলের কাছে একটি স্পষ্ট ডেটা বরাদ্দ করি, তখন ভেরিয়েবল নিজেই ডেটার টাইপ হয়ে যায়।

        1. মানের ধরনঃ
        1、2、3、1.1234、2.23456 ……
        
        1. স্ট্রিং টাইপ (str):
        '1' 、'2' 、'3' ,string type must be wrapped with ''
        
        1. সিকোয়েন্স ডেটাঃ
        a collection of data consisting of a series of single-valued data
        
        1. বুলিয়ান টাইপ (বুলিয়ান):

        সত্যের জন্য 1 এবং মিথ্যার জন্য 0 ব্যবহার করুন

        উদাহরণ

        // Declare a variable of a numeric type
        var_int := 1;
        // Declare a variable of sequence data
        var_arr := Close;
        // String type can not be declared separately, you need to combine functions
        INFO(C>O, 'rising line');
        
    • অপারেটার

      অংশগ্রহণমূলক ক্রিয়াকলাপের প্রতীক হিসাবে ব্যবহৃত সূচক কোডটি কার্যকর করার জন্য ব্যবহৃত অপারেশন এবং গণনা।

      • নিয়োগ অপারেটর

        একটি ভেরিয়েবলের মান নির্ধারণ করতে ব্যবহৃত হয়

          1. :

          একটি ডোলন, অ্যাসাইনমেন্ট প্রতিনিধিত্ব করে এবং ডায়াগ্রামের আউটপুট (সাবস্ক্রাইব ডায়াগ্রাম)

          Close1:Close;      // Assign Close to the variable Close1 and output it to the diagram
          
          1. :=

          কোলন সমান, যা অ্যাসাইনমেন্টের প্রতিনিধিত্ব করে, কিন্তু ডায়াগ্রাম (প্রধান ডায়াগ্রাম, উপগ্রাফ...) এ আউটপুট হয় না এবং স্থিতি বার টেবিলে প্রদর্শিত হয় না।

          Close2:=Close;     // Assign Close to the variable Close2
          
          1. ^^

          ^^, দুটি ^ চিহ্নগুলি অ্যাসাইনমেন্টগুলি উপস্থাপন করে, ভেরিয়েবলগুলির মান নির্ধারণ করে এবং সেগুলি ডায়াগ্রাম (প্রধান ডায়াগ্রাম) এ আউটপুট করে।

          lastPrice^^C;
          
          1. ..

          ...,দুটি বিন্দু, প্রতীক বরাদ্দকে উপস্থাপন করে, ভেরিয়েবলকে একটি মান বরাদ্দ করে এবং এটি অবস্থা বার টেবিলে প্রদর্শন করে, কিন্তু এটি ডায়াগ্রামে আউটপুট করে না (প্রধান ডায়াগ্রাম, উপ-ডায়াগ্রাম...) ।

          openPrice..O
          
      • সম্পর্কিত অপারেটর

        রিলেশনাল অপারেটরগুলি বাইনোকুলার অপারেটর যা শর্তাধীন অভিব্যক্তিতে ব্যবহৃত হয়। দুটি ডেটার মধ্যে সম্পর্ক নির্ধারণ করতে ব্যবহৃত হয়

        রিটার্ন মানঃ বুলিয়ান টাইপ, true নয় (1), অবশ্যই false হবে (0)

          1. > এর চেয়ে বড়
          // Assign the result of 2 > 1 to the rv1 variable, at this time rv1=1
          Rv1:=2>1;
          
          1. < থেকে কম
          // returns false, which is 0, because 2 is greater than 1. :-)
          rv3:=2<1;
          
          1. এর চেয়ে বড় বা সমান >=
          x:=Close;
          // Assign the result of the operation with a closing price greater than or equal to ¥ 10 to the variable rv2
          // Note that since “close” is a sequence of data, when the close>=10 operation is performed, the essence is that each cycle is performed, so each cycle will have a return value of 1, 0.
          rv2:=Close>=10;
          
          1. <= এর চেয়ে কম বা সমান
          Omitted here
          
          1. সমান =
          A:=O=C;     // Determine if the opening price is equal to the closing price.
          
          1. <= নয়
          1<>2       // Judgment weather 1 is equal to 2 or not, the return value is 1 (true)
          
      • লজিক্যাল অপারেটর

        Return value: Boolean type, not true (1), must be false (0)
        
        1. লজিক এবং && এর পরিবর্তে and ব্যবহার করা যেতে পারে, এবং সংযোগের বাম এবং ডান দিক একই সময়ে সত্য হতে হবে।
        // determine whether cond_a, cond_b, cond_c is true at the same time,
        cond_a:=2>1;
        cond_b:=4>3;
        cond_c:=6>5;
        cond_a && cond_b and cond_c;    // return value 1, true
        
        1. লজিকের ক্ষেত্রে, এর পরিবর্তে or ব্যবহার করা যেতে পারে, or বাম এবং ডান দিকের সংযোগ স্থাপন করে, যতক্ষণ এক দিকটি সত্য, পুরোটা সত্য (true return)
        cond_a:=1>2;
        cond_b:=4>3;
        cond_c:=5>6;
        cond_a || cond_b or cond_c;    // return value 1, true
        
      • গাণিতিক অপারেটর

        Return value: numeric type
        

        এটি মৌলিক গাণিতিক অপারেটর চিহ্নের সমাপ্তি, যা চারটি গাণিতিক ক্রিয়াকলাপ প্রক্রিয়া করার জন্য ব্যবহৃত চিহ্ন।

        • প্লাস +

          A:=1+1;      // return 2
          
        • বিয়োগ করুন -

          A:=2-1;      // return 1
          
        • গুণ করুন *

          A:=2*2;      // return 4
          
        • ভাগ করুন /

          A:=4/2;      // return 2
          
    • ফাংশন

      • ফাংশন

        প্রোগ্রামিংয়ের জগতে, একটি function আসলে কোডের একটি টুকরা যা একটি নির্দিষ্ট ফাংশন বাস্তবায়ন করে এবং অন্য কোড দ্বারা কল করা যেতে পারে। সাধারণ ফর্মটি নিম্নরূপঃ

        function(param1,param2,……)
        
        • রচনাঃ

          ফাংশন নাম (প্যারামিটার 1, প্যারামিটার 2,...), কোন প্যারামিটার থাকতে পারে না, একাধিক প্যারামিটার থাকতে পারে, যেমন MA ((x, n); অভ্যন্তরীণ x এর একটি সহজ চলমান গড় প্রতিনিধিত্ব করে n চক্র ফেরত, যেখানে MA ((() একটি ফাংশন, x এবং n ফাংশনের পরামিতি।

          একটি ফাংশন ব্যবহার করার সময়, আমাদের ফাংশনের মৌলিক সংজ্ঞা বুঝতে হবে, অর্থাৎ ফাংশনটি কল করে কী ডেটা পাওয়া যায়। সাধারণভাবে, ফাংশনগুলির পরামিতি রয়েছে। যখন আমরা পরামিতিগুলি পাস করি, তখন আমাদের নিশ্চিত করতে হবে যে পাস করা ডেটা টাইপটি সামঞ্জস্যপূর্ণ। বর্তমান পর্যায়ে, বেশিরভাগ আইডিইগুলির কোড ইঙ্গিত ফাংশনটি খুব অসম্পূর্ণ। তারা প্রদত্ত পরামিতিগুলির জন্য নির্দিষ্ট ডেটা প্রকারগুলি দেখায় না, যা আমাদের কিছু সমস্যা দেয়। MA(x,n এর ব্যাখ্যাটি হলঃ

          Return a simple moving average
          usage:
          AVG:=MA(X,N): N's simple moving average of X, algorithm (X1+X2+X3+...+Xn)/N,N supports variables
          

          এটি নতুনদের জন্য খুবই বিরক্তিকর ব্যাখ্যা। পরবর্তী, আমরা সম্পূর্ণরূপে ফাংশন বিশ্লেষণ এবং দ্রুত শিখতে এবং ফাংশন ব্যবহার করার একটি উপায় খুঁজে বের করার চেষ্টা করুন।

      • রিটার্ন মান

        ফাংশনটি দ্রুত শিখতে, আমাদের প্রথমে return value নামে একটি ধারণা বুঝতে হবে। নাম অনুসারে, রিটার্ন return, মানটি concrete value এর প্রতিনিধিত্ব করে, যা প্রাপ্ত করা যায়।

        // Because it will be used in the following code, use the variable return_value to receive and save the return value of function()
        // retrun_value := function(param1,param2);
        // for example:
        AVG:=MA(C,10); // AVG is retrun_value , “function” function is: MA function, param1 parameter: C is the closing price sequence data, param2 parameter: 10.
        
      • প্যারামিটার

        দ্বিতীয়ত, ফাংশনের দ্বিতীয় গুরুত্বপূর্ণ ধারণা হল প্যারামিটার, বিভিন্ন প্যারামিটার দিয়ে, আপনি বিভিন্ন রিটার্ন মান পেতে পারেন।

        // variable ma5 receives 5 day closing price moving average
        ma5:=MA(C,5);
        // variable ma10 receives 10 day closing price moving average
        ma10:=MA(C,10);
        

        উপরের ভেরিয়েবল ma5, ma10 এর প্রথম প্যারামিটার X হল C (বন্ধের মূল্য), আসলে Cও একটি ফাংশন (খোলার পর থেকে বন্ধের মূল্য ক্রম ফেরত), কিন্তু এর কোন প্যারামিটার নেই। দ্বিতীয় প্যারামিটার 5, 10,এটি MA () ফাংশনকে বলতে ব্যবহৃত হয়, আমরা কত দিনের জন্য বন্ধের মূল্যের চলমান গড় পেতে চাই, প্যারামিটারগুলির মাধ্যমে ফাংশনটি আরও নমনীয় হয়ে ওঠে।

      • কিভাবে শিখবেন

          1. প্রথমত, আপনাকে function এর ফাংশন বুঝতে হবে, যা এই ফাংশন আমাদের কি তথ্য দিতে পারে।
          1. রিটার্ন ভ্যালুর ধরন বুঝার পর, আমরা ফাংশনটি রিটার্ন ভ্যালু পেতে ব্যবহার করি।
          1. আমাদের প্যারামিটারের ডেটা টাইপ, MA (x, n) বুঝতে হবে, যদি আপনি প্যারামিটার x, n এর ডেটা টাইপ না জানেন, তাহলে আপনি সঠিকভাবে রিটার্ন ভ্যালু পেতে পারবেন না।

        নিম্নলিখিত ফাংশন ভূমিকা, ব্যবহার, উপরে তিনটি নীতি অনুসরণ করুন।

    • ভাষার উন্নতি

      • এম ভাষা এবং জাভাস্ক্রিপ্ট ভাষার মধ্যে মিশ্র প্রোগ্রামিং

        %%
        // here you can call any API function of FMZ Quant.
        scope.TEST = function(obj) {
            return obj.val * 100;
        }
        %% 
        

      বন্ধের মূল্যঃ C; বন্ধের মূল্য 100 গুণ বড় করা হয়: টেস্ট©; পূর্ববর্তী ক্লোজিং মূল্য 100 গুণ বড় করা হয়ঃ টেস্ট ((REF ((C, 1)); // মাউস backtest K লাইন সরানো হয় এবং পরিবর্তনশীল মান প্রদর্শিত হয়.

      
      - scope object
      
        scope object, you can add attributes and assign anonymous functions to attributes. An anonymous function referenced by this attributes can be called in the M language code section.
      
      - scope.getRefs(obj) function
      
        In the JavaScript code block, call the scope.getRefs(obj) function, which returns the data of the incoming obj object.
      
       The following %%%% of the symbolic package's JavaScript code will get the incoming C closing price when the TEST(C) function is called in the M language code.
        The scope.getRefs function returns all closing prices for this K-line data. Since the throw "stop" interrupt routine is used, the variable “arr” contains only the closing price of the first Bar of k-line. You can try to delete throw "stop" and it will execute the last return of the JavaScript code, returning all the closing price data.
        ```
        %%
        scope.TEST = function(obj){
            var arr = scope.getRefs(obj)
            Log("arr:", arr)
            throw "stop"
            return
        }
        %%
        TEST(C);
        ```
      
      - scope.bars
      
        In the JavaScript code block, access all K line bars.
      
        The TEST function returns a value, 1 is the falling k-line and 0 is the rising line.
        
        ```
        %%
        scope.TEST = function(){
            var bars = scope.bars
            return bars[bars.length - 1].Open > bars[bars.length - 1].Close ? 1 : 0    // can only return values
        }
        %%
        arr:TEST;                                                                      
        ```
      
        ```
        # Note:
        # TEST Received anonymous function, the return value must be a numeric value
        # If the anonymous function has no parameters, write VAR:=TEST directly when calling TEST; write VAR:=TEST(); will report an error.
        # TEST in #scope.TEST must be uppercase.
        ```
      
      - scope.bar
      
        In the JavaScript code block, access the current bar.
      
        Calculate the average of “opening high but closing low” of k-line’s prices.
      
        ```
        %%
        scope.TEST = function(){
            var bar = scope.bar
            var ret = (bar.Open + bar.Close + bar.High + bar.Low) / 4
            return ret
        }
        %%
        avg^^TEST;
        ```
      
      - scope.depth
      
        Access the market depth data (order book)
      
        ```
        %%
        scope.TEST = function(){
            Log(scope.depth)
            throw "stop"             // Throw an exception after printing the depth data, pause.
        }
        %%
        TEST;
        ```
      
      - scope.symbol
      
        Get the current trading pair name string
      
        ```
        %%
        scope.TEST = function(){
            Log(scope.symbol)
            throw "stop"
        }
        %%
        TEST;
        ```
      
      - scope.barPos
      
        Get the K line Bar location.
      
        ```
        %%
        scope.TEST = function(){
            Log(scope.barPos)
            throw "stop"
        }
        %%
        TEST;
        ```
      
      - scope.get\_locals('name')
      
        This function is used to get the variables in the M language code part
      
        ```
        V:10;
        %%
        scope.TEST = function(obj){
            return scope.get_locals('V')
        }
        %%
        GET_V:TEST(C);
        ```
      
        ```
        # Note:
        # If a variable does not calculate data when the period is insufficient, this time the scope.get_locals function is called in the JavaScript code.
        # When get this variable, it will give an error: line:XX - undefined locals a variable name undefined
        ```
      
      
    • মাল্টি-সাইকেল রেফারেন্স

      • ব্যবহার করুনঃ # এক্সপোর্ট সূত্র নাম... # END একটি সূত্র তৈরি করতে. আপনি যদি শুধুমাত্র বিভিন্ন সময়ের জন্য তথ্য পেতে চান, আপনি সূত্র গণনা ছাড়া একটি খালি সূত্র লিখতে পারেন.

        খালি সূত্র হল:

        #EXPORT TEST 
        NOP;
        #END           // End
        
      • ব্যবহারঃ #IMPORT [MIN, সময়কাল, সূত্রের নাম] AS ভেরিয়েবল মান, রেফারেন্স সূত্র, সেট সময়ের তথ্য (বন্ধ মূল্য, খোলার মূল্য, ইত্যাদি, ভেরিয়েবল মান দ্বারা প্রাপ্ত) পান।

        কোডের উদাহরণঃ

        // this code demonstrates how to reference formulas of different cycles in the same code
        // #EXPORT extends the syntax, ending with #END as a formula, you can declare multiple
        #EXPORT TEST 
        Mean 1:EMA(C, 20);
        Mean 2:EMA(C, 10);
        #END // End
        
        #IMPORT [MIN,15,TEST] AS VAR15 // Reference formula, K line cycle is 15 minutes
        #IMPORT [MIN,30,TEST] AS VAR30 // Reference formula, K line cycle is 30 minutes
        CROSSUP(VAR15.Mean1, VAR30.Mean1),BPK;
        CROSSDOWN(VAR15.Mean2, VAR30.Mean2),SPK;
        The highest price of 15 mins:VAR15.HIGH;
        The highest price of 30 mins:VAR30.HIGH;
        AUTOFILTER;
        
    • মোড বর্ণনা

      • ১,একটি খোলার অবস্থান এবং একটি বন্ধের অবস্থানের সংকেত ফিল্টারিং মডেল

        মডেলটিতে, একটি খোলার এবং এক বন্ধের সংকেত ফিল্টারিং নিয়ন্ত্রণ এবং উপলব্ধি করতে AUTOFILTER ফাংশনটি লিখে। যখন একাধিক খোলার অবস্থান সংকেত শর্তটি পূরণ করে, প্রথম সংকেতটি কার্যকর সংকেত হিসাবে নেওয়া হয় এবং পরবর্তী কে লাইনে একই সংকেত ফিল্টার করা হবে।

        ফিল্টারিং মডেল সমর্থিত কমান্ডঃ BK, BP, BPK, SK, SP, SPK, CLOSEOUT, BK (5) এবং লটের সাথে অন্যান্য নির্দেশাবলী সমর্থন করে না

        E.g:

        MA1:MA(CLOSE,5);
        MA2:MA(CLOSE,10);
        CROSSUP(C,MA1),BK;
        CROSSUP(MA1,MA2),BK;
        C>BKPRICE+10||C<BKPRICE-5,SP;
        AUTOFILTER;
        
      • 2、সংযোগ বা বিয়োগ অবস্থান মডেল

        অটোফিল্টার ফাংশনটি মডেলটিতে লেখা নেই, যা ক্রমাগত খোলা অবস্থান সংকেত বা ক্রমাগত বন্ধ অবস্থান সংকেত দেয়, যা অবস্থান বাড়াতে বা হ্রাস করতে ব্যবহার করা যেতে পারে।

        সমর্থিত কমান্ডঃ BK ((N), BP ((N), SK ((N), SP ((N), CLOSEOUT, BPK ((N), SPK ((N), লট ছাড়া খোলা এবং বন্ধ অবস্থান সমর্থন করে না। (১) সহায়ক নির্দেশাবলীর গ্রুপিং। (২) যখন একই সময়ে একাধিক নির্দেশের শর্ত পূরণ করা হয়, তখন সিগন্যালগুলি শর্তাধীন বিবৃতিগুলি লেখার ক্রম অনুসারে কার্যকর করা হয়। উদাহরণস্বরূপঃ

        MA1:MA(CLOSE,5);
        MA2:MA(CLOSE,10);
        CROSSUP(C,MA1),BK(1);
        CROSSUP(MA1,MA2),BK(1);
        C>BKPRICE+10||C<BKPRICE-5,SP(BKVOL);
        
      • ৩,একটি সিগন্যাল মডেল সহ একটি কে-লাইন

        একটি সিগন্যাল মডেলের সাথে একটি কে-লাইন একটি ক্লোজিং মূল্য মডেল এবং একটি নির্দেশ মূল্য মডেল বিভক্ত করা যেতে পারে।

        ১) বন্ধ মূল্য মডেল

        একটি অর্ডার দেওয়ার জন্য কে লাইনটি গণনার সংকেতের মধ্য দিয়ে যায় (গণনাটি একটি কে লাইন গঠনের সময়ও করা হয়। এই সময়ে, সংকেতটি অনিশ্চিত হবে এবং কে লাইনটি শেষ না হলে প্রদর্শিত সংকেতটি উপেক্ষা করা হবে এবং কোনও অর্ডার স্থাপন করা হবে না)

        সিগন্যালের দিকটি হোল্ডিং পজিশনের দিকের সাথে সামঞ্জস্যপূর্ণ এবং কোনও সিগন্যাল অদৃশ্য হওয়ার অবস্থা নেই।

        E.g:
        MA1:MA(CLOSE,5);
        MA2:MA(CLOSE,10);
        CROSSUP(MA1,MA2),BPK;//5 cycle moving average line up cross 10 cycle moving average line to buy long.
        CROSSDOWN(MA1,MA2),SPK;//5 cycle moving average line down cross 10 cycle moving average line to sell short.
        AUTOFILTER;
        

        ২) নির্দেশ মূল্য মডেল

        k-লাইন শেষ হয়েছে কিনা তা নির্বিশেষে, সিগন্যালটি গণনা করা হয় এবং অর্ডারটি রিয়েল টাইমে স্থাপন করা হয়, অর্থাৎ, K-লাইন শেষ হওয়ার আগে অর্ডারটি স্থাপন করা হয়;

        যখন K লাইন শেষ হয়, এটি চেক করা হবে. যদি অবস্থান দিক k লাইন শেষে সংকেত দিক মিলে না, অবস্থান স্বয়ংক্রিয়ভাবে সিঙ্ক্রোনাইজ করা হবে।

        E.g:

        MA1:MA(CLOSE,5);
        MA2:MA(CLOSE,10);
        CROSSUP(MA1,MA2),BPK;//5 cycle moving average line up cross 10 cycle moving average line to buy long.
        CROSSDOWN(MA1,MA2),SPK;//5 cycle moving average line down cross 10 cycle moving average line to sell short.
        AUTOFILTER;
        
      • ৪, একাধিক সংকেত মডেল সহ একটি কে-লাইন

        মডেলটি একটি একক কে-লাইন থেকে একাধিক সংকেত নিয়ন্ত্রণ এবং বাস্তবায়নের জন্য একটি multsig বা multsig_min ব্যবহার করে।

        k লাইন শেষ হয়েছে কিনা তা নির্বিশেষে, সিগন্যাল গণনা করুন এবং রিয়েল টাইমে অর্ডার দিন।

        সিগন্যালটি পর্যালোচনা করা হবে না, কোন সিগন্যাল অদৃশ্য অবস্থা নেই, এবং সিগন্যাল দিক অবস্থান দিক সঙ্গে সামঞ্জস্যপূর্ণ।

        একাধিক সিগন্যাল শর্ত পূরণ হলে একটি K লাইনে একাধিক এক্সিকিউশন

        E.g:
        MA1:MA(CLOSE,5);
        MA2:MA(CLOSE,10);
        CROSSUP(MA1,MA2),BK;
        C>BKPRICE+10||C<BKPRICE-5,SP;
        AUTOFILTER;
        MULTSIG(0,0,2,0);
        

        পরিপূরকঃ ১、পজিশন মডেল যোগ এবং বিয়োগ, এক কে-লাইন সিগন্যালের দুটি পদ্ধতিঃ ক্লোজিং প্রাইস প্লেসমেন্ট অর্ডার এবং ইনস্ট্রাক্টিং প্রাইস প্লেসমেন্ট অর্ডার সবই সমর্থিত।

        ২、অর্ডার দেওয়ার জন্য একক কে-লাইন সিগন্যালও সমর্থন করে।

        যোগ এবং বিয়োগ অবস্থান মডেল, multsig বা multsig_min ফাংশন লিখুন, এক k লাইনে যোগ এবং বিয়োগ অবস্থান একাধিক বার উপলব্ধি, বা অবস্থান একাধিক বার হ্রাস।

    • চার্ট প্রদর্শন

      • প্রধান চিত্র অতিরিক্ত সূচক

        ভেরিয়েবলের মান নির্ধারণ করার সময় প্রধান ছবিতে প্রদর্শিত হবে এমন সূচকটি সেট করতে ^^ অপারেটর ব্যবহার করুন।

        MA60^^MA(C, 60);  // Calculate the moving average indicator with a parameter of 60
        

        img

      • উপ-চিত্রের অতিরিক্ত সূচক

        অপারেটর : ব্যবহার করুন ভেরিয়েবলের মান নির্ধারণ করার সময় সেকেন্ডারি ডায়াগ্রামের উপর প্রদর্শিত হবে এমন সূচকটি সেট করতে।

        ATR:MA(MAX(MAX((HIGH-LOW),ABS(REF(CLOSE,1)-HIGH)),ABS(REF(CLOSE,1)-LOW)),26);    // Assign a value to the ATR variable, The ":" symbol is followed by the formula for calculating the ATR
        

        যদি আপনি প্রধান বা উপ-চিত্র প্রদর্শন করতে চান না ... অপারেটর ব্যবহার করুন

        MA60..MA(C, 60);  // Calculate the moving average indicator with a parameter of 60
        

        আপনি ডট এবং রঙিন ব্যবহার করে লাইন টাইপ, রঙ ইত্যাদি সেট করতে পারেন যারা এম ভাষা জানেন তাদের অভ্যাস অনুযায়ী।

    • সাধারণ সমস্যা

      সূচক প্রস্তুত করার সময় সাধারণভাবে দেখা যায় এমন সমস্যাগুলি, সাধারণত সূচকগুলি লেখার সময় যে বিষয়গুলির দিকে মনোযোগ দেওয়া প্রয়োজন তা পরিচয় করিয়ে দিন। (এটি অব্যাহত থাকবে)

      • ; এর শেষে মনোযোগ দিন।

      • মনে রাখবেন যে সিস্টেম কীওয়ার্ডগুলি ভেরিয়েবল হিসাবে ঘোষণা করা যাবে না।

      • লক্ষ্য করুন যে স্ট্রিংটি একক কোট ব্যবহার করে, উদাহরণস্বরূপঃ opening শুধুমাত্র একটি কোট।

      • মন্তব্য

        সংক্ষিপ্তসার

        • // The content of the comment(ইনপুট পদ্ধতি ইংরেজি এবং চীনা উভয় টাইপ করা যেতে পারে), যার মানে হল যে কোডটি এক্সিকিউশন প্রক্রিয়া চলাকালীন কম্পাইল করা হয় না, অর্থাৎ এটি এর পিছনে থাকা সামগ্রীটি চালায় না। সাধারণত আমরা কোড পর্যালোচনা সহজ করার জন্য কোডের অর্থ ব্যবহার করি। বোঝা, মনে করিয়ে দিন

        • { Comment content }মন্তব্য ব্লক করুন।

          A:=MA(C,10);
          {The previous line of code is the calculation of the moving average.}
          
        • (* Comment content *)মন্তব্য ব্লক করুন।

          A:=MA(C,10);
          (*The previous line of code is the calculation of the moving average.*)
          
      • ইনপুট পদ্ধতি

        কোড লেখার সময়, এটি প্রায়শই একটি প্রতীক ত্রুটির কারণ হয় কারণ ইনপুট পদ্ধতিটি চীনা এবং ইংরেজি মধ্যে স্যুইচ করে। সাধারণ প্রকারগুলি নিম্নরূপঃ colon:, terminator; comma, parenthesis (), ইত্যাদি, চীনা এবং ইংরেজিতে এই বিভিন্ন অক্ষরগুলিতে মনোযোগ দিতে হবে।

      • ত্রুটি-প্রবণতা যুক্তিবিজ্ঞান

        1. কমপক্ষে ঊর্ধ্বতন কমপক্ষে ঊর্ধ্বতন কমপক্ষে ঊর্ধ্বতন কমপক্ষে ঊর্ধ্বতন কমপক্ষে ঊর্ধ্বতন>=
        2. সর্বাধিক সর্বাধিক নাঃ সংশ্লিষ্ট সম্পর্ক অপারেটর<=
  • K লাইন ডেটা রেফারেন্স

    • খোলা

      কে-লাইন চার্টের উদ্বোধনী মূল্য পান

      প্রারম্ভিক মূল্য

      ফাংশনঃ ওপেন, সংক্ষিপ্ত O

      প্যারামিটারঃ কোনটিই নেই

      ব্যাখ্যাঃ চক্রের প্রারম্ভিক মূল্য ফেরত দিন

      সিকোয়েন্স ডেটা

      OPEN obtained the opening price of the K-line chart.
      
      Note:
      1、can be shorthand as O.
      
      example 1:
      OO:=O;           //Define OO as the opening price; pay attention to the difference between O and 0.
      example 2:
      NN:=BARSLAST(DATE<>REF(DATE,1));
      OO:=REF(O,NN);   //Get the opening price of the day
      example 3:
      MA5:=MA(O,5);    //Define the 5-period moving average of the opening price (O is OPEN shorthand).
      
    • উচ্চ

      কে-লাইন চার্টের সর্বোচ্চ মূল্য পান

      সর্বোচ্চ মূল্য

      ফাংশনঃHIGH,H হিসাবে সংক্ষিপ্ত

      প্যারামিটারঃ কোনটিই নেই

      ব্যাখ্যাঃ চক্রের সর্বোচ্চ মূল্য ফেরত দিন

      সিকোয়েন্স ডেটা

      HIGH Get the highest price of the K-line chart.
      
      Note:
      1、can be shorthand as H.
      
      example 1:
      HH:=H;         //Define HH as the highest price.
      example 2:
      HH:=HHV(H,5);  //Take the maximum value of the highest price within 5 cycles.
      example 3:
      REF(H,1);      //Take the highest price of the previous K line
      
    • কম

      কে-লাইন চার্টের সর্বনিম্ন মূল্য পান

      সর্বনিম্ন মূল্য

      ফাংশনঃ LOW, L হিসাবে সংক্ষিপ্ত

      প্যারামিটারঃ কোনটিই নেই

      ব্যাখ্যাঃ চক্রের সর্বনিম্ন মূল্য ফেরত দিন।

      সিকোয়েন্স ডেটা

      LOW gets the lowest price of the K-line chart.
      
      Note:
      1、can be shorthand as L.
      
      example 1:
      LL:=L;            //Define LL as the lowest price.
      example 2:
      LL:=LLV(L,5);     //Get the minimum value of the lowest price in 5 cycles.
      example 3:
      REF(L,1);         //Get the lowest price of the previous K line
      
    • বন্ধ

      কে-লাইন চার্টের বন্ধের মূল্য পান

      বন্ধের মূল্য

      ফাংশনঃ CLOSE, C এর সংক্ষিপ্ত রূপ

      প্যারামিটারঃ কোনটিই নেই

      ব্যাখ্যাঃ চক্রের বন্ধের মূল্য ফেরত দিন

      সিকোয়েন্স ডেটা

      CLOSE Get the closing price of the K-line chart.
      
      Note:
      1、When the k-line in the market is not finished, get the latest price.
      2、Can be shorthand as C.
      
      example 1:
      A:=CLOSE;          //Define the variable A as the closing price (A is the latest price when the k line is not finished).
      example 2:
      MA5:=MA(C,5);      //Define the 5-period moving average of the closing price (C is short for CLOSE).
      example 3:
      A:=REF(C,1);       //Get the closing price of the previous k line.
      
    • ভিওএল

      K-লাইন চার্টের ভলিউম পান

      লেনদেনের পরিমাণ

      ফাংশনঃ VOL, V এর সংক্ষিপ্ত রূপ

      প্যারামিটারঃ কোনটিই নেই

      ব্যাখ্যাঃ এই চক্রের ভলিউম ফেরত দিন।

      সিকোয়েন্স ডেটা

      VOL gets the volume of the K-line chart.
      
      Note:
      Can be shorthand as V.
      The return value of this function on the root TICK is the cumulative value of all TICK transactions for the day.
      
      example 1:
      VV:=V;       //Define VV as volume
      example 2:
      REF(V,1);    //indicates the volume of the previous cycle
      example 3:
      V>=REF(V,1); //The volume is greater than the volume of the previous cycle, indicating that the volume increases (V is short for VOL).
      
    • রিফ

      পূর্ববর্তী উল্লেখ

      Reference the value of X before N cycles.
      
      Note:
      1、When N is a valid value, but the current number of k lines is less than N, a null value is returned;
      2、When N is 0, the current X value is returned;
      3、When N is null, it returns a null value.
      4、N can be a variable
      
      example 1:
      REF(CLOSE,5); indicates the closing price of the 5th cycle before the current cycle
      example 2:
      AA:=IFELSE(BARSBK>=1,REF(C,BARSBK),C);//Take the closing price of the K line of latest buying long of the open position signal
      //1) When the k-line BARSBK of the BK signal returns a null value, the k-line REF(C, BARSBK) of the BK signal is returned.
      Null value;
      //2)When the BK signal is sent, the k-line BARSBK returns a null value, and if the BARSBK>=1 is not satisfied, then send the closing price of the k-line.
      //3)The k-line BARSBK after the BK signal is sent returns the number of cycles of the K-line of the open position from the current K-line, REF(C, BARSBK)
      Returns the closing price of the opening k line.
      //4)Example: 1, 2, 3 three k lines, 1 K line is the opening position signal K line, then return the closing price of this k line, 2, 3
      K line returns the closing price of the 1 K line.
      
    • ইউনিট

      তথ্য চুক্তির লেনদেন ইউনিট নিন

      Take the trading unit of the data contract.
      usage:
      UNIT takes the trading unit of the data loading contract.
      

      পণ্যের ভবিষ্যৎ

      ইউনিট মান চুক্তির সাথে সম্পর্কিত

      rb contract - 1 hand, 10 (tons)
      

      ক্রিপ্টোকারেন্সি স্পট

      UNIT মান হল 1

      ক্রিপ্টোকারেন্সি ফিউচার ইউনিট মান চুক্তির মুদ্রার সাথে সম্পর্কিত

      OKEX Futures: 1 BTC contract represents $100, and 1 contract in other currencies represents $10
      
    • MINPRICE

      ডেটা চুক্তির জন্য সর্বনিম্ন মূল্য পরিবর্তন

      Take the minimum price change of the data contract.
      usage:
      MINPRICE; Take the minimum price change for loading data contracts.
      
    • MINPRICE1

      ট্রেডিং চুক্তির ন্যূনতম পরিবর্তন

      Take the minimum price change of the trading contract.
      usage:
      MINPRICE1; Take the minimum price change of the trading contract.
      
  • সময় ফাংশন

    • বারপোস

      Take the position of the K line
      
      BARPOS,returns the number of cycles from the first K line to the current cycle.
      
      Note:
      1、BARPOS returns the number of existing K lines in the local area, starting from the data existing on the local machine.
      2、The return value of the first K line already on the local machine is 1.
      
      example 1:LLV(L,BARPOS);//Find the minimum value of the local existing data.
      
      example 2:IFELSE(BARPOS=1,H,0);//The current K line is the highest value of the first K line already in the local machine, otherwise it is 0.
      
    • সময়কাল

      সময়ের মান হল মিনিটের সংখ্যা।

      1, 3, 5, 15, 30, 60, 1440
      
    • তারিখ

      তারিখ

      ফাংশনঃ তারিখ

      প্যারামিটারঃ কোনটিই নেই

      ব্যাখ্যাঃ ১৯০০ সাল থেকে চক্রের তারিখ বের করুন

      সিকোয়েন্স ডেটা

    • সময়

      কে লাইনের সময় নিন

      TIME,take the K line time.
      
      Note:
      1、The function returns in real time on the real-market, and returns the start time of the K line after the K line is finished.
      2、The function returns the exchange data reception time, which is the exchange time.
      3、The TIME function returns a six-digit form when used in the second period, ie: HHMMSS, which is displayed in four-digit form on other periods, namely: HHMM.
      4、The TIME function can only be loaded in the period below the daily period. The return value of the function is always 1500 in the period above the daily period (Included the daily period).
      5、use the TIME function to close the position of the tail operation needs attention
      (1) The time set by the end of the closing position is recommended to be set to the actual time that can be taken in the K line return value (eg, the RB index is 5 minutes, the last K line return time is 1455, and the tail closing position is set to TIME> =1458, CLOSEOUT; the signal that the tail is closed can not appear in the effect test)
      (2)	Using the TIME function as the condition for closing the position at the end of the market, it is recommended to open position condition also to make the corresponding time limit (such as setting the closing condition of the tail to TIME>=1458, CLOSEOUT; then the corresponding opening conditions are required Add condition TIME<1458; avoid opening the position again after closing the position)
      
      example 1:
      C>O&&TIME<1450,BK;
      C<O&&TIME<1450,SK;
      TIME>=1450,SP;
      TIME>=1450,BP;
      AUTOFILTER;
      //Close the position after 14:50.
      example 2:
      ISLASTSK=0&&C>O&&TIME>=0915,SK;
      
    • বছর

      বছর

      YEAR,the year is obtained.
      
      Note:
      YEAR ranges from 1970—2033。
      
      example 1:
      N:=BARSLAST(YEAR<>REF(YEAR,1))+1;
      HH:=REF(HHV(H,N),N);
      LL:=REF(LLV(L,N),N);
      OO:=REF(VALUEWHEN(N=1,O),N);
      CC:=REF(C,N);//take the highest price, the lowest price, the opening price, and the closing price of the previous year.
      example 2:
      NN:=IFELSE(YEAR>=2000 AND MONTH>=1,0,1);
      
    • মাস

      একটি চক্রের মাস ফেরত দেয়

      MONTH, returns the month of a cycle.
      
      Note:
      MONTH has a value range of 1-12.
      
      example 1:
      VALUEWHEN(MONTH=3&&DAY=1,C);//The closing price is taken when the K-line date is March 1.
      example 2:
      C>=VALUEWHEN(MONTH<REF(MONTH,1),O),SP;
      
    • দিন

      একটি চক্রের দিন সংখ্যা পান

      DAY, returns the number of days in a cycle.
      
      Note:
      The DAY value ranges from 1-31.
      
      example 1:
      DAY=3&&TIME=0915,BK;//From the date of 3 days, the time is 9:15, buy long.
      example 2:
      N:=BARSLAST(DATE<>REF(DATE,1))+1;
      CC:=IFELSE(DAY=1,VALUEWHEN(N=1,O),0);//When the date is 1, the opening price is taken, otherwise the value is 0.
      
    • ঘন্টা

      ঘন্টা

      HOUR,Returns the number of hours in a cycle.
      
      Note:
      HOUR ranges from 0 to 23
      
      example 1:
      NX:=BARSLAST(CROSS(HOUR=9,0.5));
      DRAWLINE3(CROSSDOWN(HOUR=14,0.5),REF(H,NX),NX,CROSSDOWN(HOUR=14,0.5),REF(H,1),1,0),COLORGREEN;
      //Connect 9:00 to the latest k-line high point before the market close.
      example 2:
      HOUR=10;//The return value is 1 on the K line at 10:00, and the return value on the remaining K lines is 0.
      
    • মিনিট

      মিনিট

      MINUTE, Returns the number of minutes in a cycle.
      
      Note:
      1:MINUTE has a value range of 0-59
      2:This function can only be loaded on the minute period, returning the number of minutes since the current K line.
      example 1:
      MINUTE=0;//The return value on the minute K line at the beginning of an hour is 1, and the remaining K lines return a value of 0.
      example 2:
      TIME>1400&&MINUTE=50,SP;//close position at 14:50.
      
    • সপ্তাহের দিন

      সপ্তাহের সংখ্যা পান

      WEEKDAY, get the number of weeks.
      
      Note:
      1:WEEKDAY has a value range of 0-6.
      2:The value displayed by the function on the weekly cycle is always 5, and the number of weeks on the day of the end of the K line is returned on the monthly cycle.
      
      example 1:
      N:=BARSLAST(MONTH<>REF(MONTH,1))+1;
      COUNT(WEEKDAY=5,N)=3&&TIME>=1450,BP;
      COUNT(WEEKDAY=5,N)=3&&TIME>=1450,SP;
      AUTOFILTER;//each month delivery date is automatically closed all position at the end of that day.
      example 2:
      C>VALUEWHEN(WEEKDAY<REF(WEEKDAY,1),O)+10,BK;
      AUTOFILTER;
      
  • যৌক্তিক বিচার কার্যকারিতা

    • বারস্ট্যাটাস

      বর্তমান চক্রের অবস্থান অবস্থা প্রদান করে

      BARSTATUS returns the position status of the current cycle.
      
      Note:
      The function returns 1 to indicate that the current cycle is the first cycle, return 2 to indicate the last cycle, and return 0 to indicate that the current cycle is in the middle position.
      
      example:
      A:=IFELSE(BARSTATUS=1,H,0); //If the current K line is the first cycle, the variable A returns the highest value of the K line, otherwise it takes 0.
      
    • মাঝখানে

      এর মধ্যে

      BETWEEN(X,Y,Z) indicates whether X is between Y and Z, and returns 1 (Yes), otherwise returns 0 (No).
      
      Note:
      1、If X=Y, X=Z, or X=Y and Y=Z, the function returns a value of 1 (Yse).
      
      example 1:
      BETWEEN(CLOSE,MA5,MA10); //indicates that the closing price is between the 5-day moving average and the 10-day moving average.
      
    • ক্রস

      ক্রস ফাংশন

      CROSS(A,B) means that A passes B from the bottom to up, and returns 1 (Yes), otherwise it returns 0 (No).
      
      Note:
      1、The conditions for crossing must satisfy A<=B of pervious k line, and it is confirmed as crossing when the current k-line satisfies A>B.
      
      example 1:
      CROSS(CLOSE,MA(CLOSE,5)); //means the crossing line from below through the 5-period moving average
      
    • ক্রসডাউন

      নেমে আসছে

      CROSSDOWN(A,B):indicates that when A down crossing B from above, it returns 1 (Yes), otherwise it returns 0 (No).
      
      Note:
      1、CROSSDOWN (A, B) is equivalent to CROSS (B, A), CROSSDOWN (A, B) is written to better understand
      
      example 1:
      MA5:=MA(C,5);
      MA10:=MA(C,10);
      CROSSDOWN(MA5,MA10),SK; //MA5 down cross MA10, sell short
      //CROSSDOWN(MA5,MA10),SK; and CROSSDOWN(MA5,MA10)=1, SK; express the same meaning
      
    • ক্রসপ

      ক্রসিং

      CROSSUP(A,B) When A passes up from bottom to B, it returns 1 (Yes), otherwise it returns 0 (No)
      
      Note:
      1、CROSSUP (A, B) is equivalent to CROSS (A, B), CROSSUP (A, B) is written to better understand.
      
      example 1:
      MA5:=MA(C,5);
      MA10:=MA(C,10);
      CROSSUP(MA5,MA10),BK;//MA5 cross up MA10, buy long.
      //CROSSUP(MA5,MA10),BK; and CROSSUP(MA5,MA10)=1, BK; express the same meaning
      
    • সবাই

      এটি এখনও প্রয়োজনীয়তা পূরণ করে কিনা তা নির্ধারণ করুন

      EVERY(COND,N),judge whether the COND condition is always satisfied in the N period. If it is, the function returns a value of 1; if it is not, the function returns a value of 0;
      
      Note:
      1、N contains the current k line.
      2、If N is a valid value, but there are not many K lines in front of it, or N is a null value, the condition is not satisfied, and the function returns 0.
      3、N can be a variable
      
      example 1:
      EVERY(CLOSE>OPEN,5);//indicates that it has been a positive line for 5 cycles.
      example 2:
      MA5:=MA(C,5);//Define a 5-cycle moving average
      MA10:=MA(C,10);//Define the 10-cycle moving average
      EVERY(MA5>MA10,4),BK;//MA5 is greater than MA10 in 4 cycles, then buy long.
      //EVERY(MA5>MA10,4),BK; and EVERY(MA5>MA10,4)=1, BK; express the same meaning
      
    • বিদ্যমান

      সন্তুষ্টি আছে কিনা তা নির্ধারণ করুন

      EXIST(COND,N) determines whether there are conditions for satisfying COND in N cycles
      
      Note:
      1、N contains the current k line.
      2、N can be a variable.
      3、If N is a valid value, but there are not many K lines in front of it, calculate according to the actual number of cycles.
      
      example 1:
      EXIST(CLOSE>REF(HIGH,1),10);indicates whether there is a maximum price in the 10 cycles that is greater than the previous period, if it exist, return 1, and if it does not exist, returns 0.
      example 2:
      N:=BARSLAST(DATE<>REF(DATE,1))+1;
      EXIST(C>MA(C,5),N);//Indicates whether there is a k line that meets the closing price greater than the 5-period moving average. If it exist, return 1, and if it does not exist, return 0.
      
    • যদি

      শর্তাধীন ফাংশন

      IF(COND,A,B) Returns A if the COND condition is true, otherwise returns B
      
      Note:
      1、COND is a judgment condition; A and B can be conditions or numerical values.
      2、the function supports the variable loop to reference the previous period of its own variable, that is, support the following writing method Y: IF (CON, X, REF (Y, 1));
      example 1:
      IF(ISUP,H,L);// k line is the rising line, take the highest price, otherwise take the lowest price
      example 2:
      A:=IF(MA5>MA10,CROSS(DIFF,DEA),IF(CROSS(D,K),2,0));//When MA5>MA10, take whether DIFF is cross up the DEA, otherwise (MA5 Not greater than MA10), when K, D is down crossing, let A be assigned a value of 2. If the above conditions are not met, A is assigned a value of 0.
      A=1,BPK;//When MA5>MA10, use DIFF cross up DEA as the buying long condition
      A=2,SPK;//When MA5 is not greater than MA10, K D down crossing are used as selling short conditions
      
    • আইফেলস

      শর্তাধীন ফাংশন

      IFELSE(COND,A,B) Returns A if the COND condition is true, otherwise returns B
      
      Note:
      1、COND is a judgment condition; A and B can be conditions or numerical values.
      2、the function supports the variable loop to refer to the previous period of its own variable, that is, supports the following writing method Y: IFELSE (CON, X, REF (Y, 1));
      example 1:
      IFELSE(ISUP,H,L);//k line is the rising line, take the highest price, otherwise take the lowest price
      example 2:
      A:=IFELSE(MA5>MA10,CROSS(DIFF,DEA),IFELSE(CROSS(D,K),2,0)); //When MA5>MA10, whether DIFF up cross DEA, otherwise (MA5 Not greater than MA10), when K, D down cross, let A be assigned a value of 2. If the above conditions are not met, A is assigned a value of 0.
      A=1,BPK;//When MA5>MA10, use DIFF up cross DEA as the buying long condition
      A=2,SPK;//When MA5 is not greater than MA10, K, D down cross are used as selling short conditions
      
    • চুক্তি

      আবহাওয়া বর্তমানে চুক্তি একটি মনোনীত চুক্তি

      weather ISCONTRACT(CODE) is currently the specified contract.
      
      Usage:ISCONTRACT(CODE); is the current contract returns 1, not the current contract returns 0.
      
      Note:
      1、When judging whether it is a specified contract, CODE can be the transaction code of the contract.
      
      example:
      ISCONTRACT('MA888');
      ISCONTRACT('rb1901');
      ISCONTRACT('this_week');    // cryptocurrency OKEX Futures Contract
      ISCONTRACT('XBTUSD');       // cryptocurrency BITMEX Futures Contract
      

      নিয়মিত অভিব্যক্তিগুলির জন্য সমর্থন

      চুক্তি নির্ধারণ

      ISCONTRACT('this_week');                     // Determine if the current contract is OKEX futures this_week (week) contract
      

      এক্সচেঞ্জের নাম বিচার করা

      ISCONTRACT('@Futures_(CTP|BitMEX)');         // Determine whether the current exchange object is a commodity futures or a cryptocurrency BITMEX futures exchange
      ISCONTRACT('@(OKEX|Bitfinex|Futures_CTP)');  // To determine the exchange, you need to add @ character at the beginning
      
    • আইসডাউন

      পতনশীল কে লাইন

      ISDOWN determines whether the cycle is falling
      
      Note:
      1、ISDOWN is equivalent to C<O
      
      example:
      ISDOWN=1&&C<REF(C,1),SK;//When the current k line is finished and the closing price is lower than the closing price of the previous period, then selling short
      //ISDOWN=1&&C<REF(C,1),SK; is equivalent to ISDOWN&&C<REF(C,1),SK;
      
    • আইএসইকেএল

      খোলার মূল্য বন্ধের মূল্যের সমান

      ISEQUAL determines if the cycle is "The opening price equal to closing price"
      
      Note:
      1、ISEQUAL is equivalent to C=O
      
      example 1:
      EVERY(ISEQUAL=1,2),CLOSEOUT; //continue for 2 k lines are “The opening price equal to closing price
      

, তারপর সব অবস্থান বন্ধ.

```
  • আইসলেস্টবার

    নির্ধারণ করুন যদি চক্র শেষ K লাইন হয়

    ISLASTBAR determines if the cycle is the last k line
    
    example 1:
    VALUEWHEN(ISLASTBAR=1,REF(H,1));//The current k-line is the last k-line, taking the highest price of the previous cycle.
    
  • আইএসএনএলএল

    শূন্য নির্ধারণ করুন

    ISNULL determine whether it is null or not
    
    Usage:ISNULL(N);if N is null, the function returns 1; if N is non-null, the function returns 0.
    
    Example: MA5:=IFELSE(ISNULL(MA(C,5))=1, C,MA(C,5));//Define a five-period moving average. When the number of K-lines is less than five, return the current K-line closing price.
    
  • আইএসইউপি

    ক্রমবর্ধমান লাইন

    ISUP determines whether the cycle is rising
    
    Note:
    1、ISUP is equivalent to C>O
    
    example:
    ISUP=1&&C>REF(C,1),BK;   //If the current k line is a rising k line and the closing price is greater than the closing price of the previous period, then buying long.
                             //ISUP=1&&C>REF(C,1),BK; and ISUP&&C>REF(C,1),BK;
                             //Express the same meaning
    
  • সর্বশেষ

    ফাংশন নির্ধারণ করুন

    LAST(COND,N1,N2) Determines whether the COND condition has been met for the past N1 to N2 cycles.
    
    Note:
    1、If N1 and N2 differ by only one cycle (eg, N1=3, N2=2), the function judges whether the condition is satisfied on the cycle closest to the current K line (ie, whether the K line in the past N2 cycles is meeting the conditions)
    2、When N1/N2 is a valid value, but the current k-line number is less than N1/N2, or N1/N2 null, means is not true, and the function returns 0.
    3、N1 and N2 cannot be variables.
    
    example 1:
    LAST(CLOSE>OPEN,10,5); // indicates that it has been a rising line from the 10th cycle to the 5th cycle in the past.
    example 2:
    MA5:=MA(C,5);
    LAST(C>MA5,4,3);//determine whether the K line from the current k-line 3 cycles satisfies “C greater than MA5”.
    
  • লংক্রস

    ক্রস ফাংশন বজায় রাখুন

    LONGCROSS(A,B,N) indicates that A is less than B in N cycles, and this cycle A up cross B from bottom to top.
    
    Note:
    1、When N is a valid value, but the current k-line number is less than N, the LONGCROSS function returns a null value.
    2、N does not support variables.
    
    example 1:
    LONGCROSS(CLOSE,MA(CLOSE,10),20); //indicates that the closing price continues below the 10-day moving average for 20 cycles and then up cross the 10-day moving average from bottom to top.
    
  • না

    অ-

    NOT(X):Take a non. Returns 1 when X=0, otherwise returns 0.
    example 1:
    NOT(ISLASTBK); If the previous signal is not a BK signal, the NOT (ISLASTBK) returns a value of 1; the previous signal is a BK signal, and the NOT (ISLASTBK) returns a value of 0.
    example 2:
    NOT(BARSBK>=1)=1;//The BK signal is sent to the current K line to satisfy the condition.
    //NOT(BARSBK>=1)=1 is equivalent to NOT (BARSBK>=1).
    
  • শূন্য

    শূন্য ফেরত দিন

    Return null
    usage:
    MA5:=MA(C,5);
    MA10:=MA(C,10);
    A:=IFELSE(MA5>MA10,MA5,NULL),COLORRED;//When MA5>MA10, draw the five-day moving average MA5, when MA5>MA10 is not satisfied, return null value, no drawing line.
    
  • VALUEWHEN

    মূল্য

    VALUEWHEN(COND,X) Takes the current value of X when the COND condition is true. If the COND condition is not true, take the value of X when the COND condition is established last time.
    
    Note:
    X can be either a numerical value or a condition.
    
    example 1
    VALUEWHEN(HIGH>REF(HHV(HIGH,5),1),HIGH);indicates that the current highest price is greater than the maximum value of the highest price of the first five cycles and returns the current highest price.
    example 2:
    VALUEWHEN(DATE<>REF(DATE,1),O);indicates the opening price of the first k-line of the day
    example 3:
    VALUEWHEN(DATE<>REF(DATE,1),L>REF(H,1));//indicates whether the current lowest price on the first k line of the day is greater than the highest price of the last K line yesterday. Returns 1, indicating that there is a price gap on that day. Returns 0, indicating that there are no price gap on that day.
    
  • লুপ এক্সিকিউশন ফাংশন

    • LOOP2

      লুপ শর্ত ফাংশন

      LOOP2(COND,A,B); loop condition function Returns A if the COND condition is true, otherwise returns B
      
      Note:
      1、COND is a judgment condition; A and B can be conditions or numerical values.
      2、the function supports variable loop reference to the previous period of its own variable, that is, support the following writing method Y: = LOOP2 (CON, X, REF (Y, 1));
      
      example 1:
      X:=LOOP2(ISUP,H,REF(X,1));//k line is the rising line, take the highest price of the current K line, otherwise take the highest price of the pervious K line that is a rising k line; if it has not appeared before, X returns null
      
      example 2:
      BB:=LOOP2(BARSBK=1,LOOP2(L>LV(L,4),L,LV(L,4)),LOOP2(L>REF(BB,1),L,REF(BB,1)));//When holding long position, the lowest price in the first 4 cycles of opening position k line is the starting stop loss point BB, if the lowest price of the subsequent K line is higher than the previous lowest price, taking the current lowest price as stop loss point, otherwise take the previous lowest point to be the stop loss point.
      SS:=LOOP2(BARSSK=1,LOOP2(H<HV(H,4),H,HV(H,4)),LOOP2(H<REF(SS,1),H,REF(SS,1)));// When holding short position, the highest price in the first 4 cycles of opening position k line is the starting stop loss point SS, if the highest price is lower than the previous highest price, taking the current highest price as stop loss point, Otherwise take the previous high point as stop lose points
      H>HV(H,20),BK;
      L<LV(L,20),SK;
      C<BB,SP;
      C>SS,BP;
      AUTOFILTER;
      
      
  • আর্থিক পরিসংখ্যান ফাংশন

    • বারসকাউন্ট

      প্রথম বৈধ সময়কাল থেকে বর্তমান এক থেকে চক্র সংখ্যা

      BARSCOUNT(COND) The number of cycles that the first valid period to the current one
      
      Note:
      1、The return value is the number of cycles from which the COND is calculated from the first valid period and up to now.
      2、The return value of BARSCOUNT(COND) on the current k line on the condition that the condition is first established is 0.
      
      example:
      BARSCOUNT(MA(C,4));//The calculation MA(C,4) has the first return value to the current number of cycles.
      
    • বার্সলাস্ট

      সর্বশেষ শর্ত সত্য বলে প্রমাণিত

      BARSLAST(COND):The last condition COND was established to the current number of cycles
      
      Note:
      1、The return value of BARSLAST(COND) on the current k line is 0.
      
      example 1:
      BARSLAST(OPEN>CLOSE); //The number of cycles from the previous falling k line to the present
      Example 2:
      N:=BARSLAST(DATE<>REF(DATE,1))+1;//minute period, the number of k line on the current day.
      //Because the condition is established, the return value of BARSLAST(COND) on the current k line is 0, so "+1" is the k-line number of current day.
      
    • বারসিন্স

      প্রথম শর্ত বর্তমান চক্র সংখ্যা নির্ধারণ করা হয়

      BARSSINCE(COND) The first condition is established to the current number of cycles.
      
      Note:
      1、the return value is the first time the COND is established to the current number of cycles
      2、The return value of BARSSINCE (COND) on the current k-line of the condition established for the first time is 0.
      
      example :
      BARSSINCE(CLOSE>OPEN);
      //Statistics of the number of cycles from the K line that satisfies the condition of the first line to the present.
      
    • বার্সিনসেন

      পরিসংখ্যান N সময়ের প্রথম শর্ত হল প্রতিষ্ঠা


আরো