可能吗?
Results 1 to 4 of 4

Thread: 可能吗?

  1. #1
    嗨,大家好!!

    我试图编写一个指标,但每次它从低点扣除当天的最高点,它会从4分钟结果。我想知道是否有某种工作,所以它会接近数字,所以它会有一个字符串是最终的。

    例如; 1.29795 - 1.28067 = 1728我正在寻找的方法是使其近似为173,因此从4位数到3位数

    谢谢 !!!!!!!

  2. #2

  3. #3
    Hi pinchapip, Here is a solution I use. PHP Code: <code><span style=”color: #000000”> <span style=”color: #0000BB”>intDQ_ADJUST</span><span style=”color: #007700”>#91;#93;=</span><span style=”color: #0000BB”>0</span><span style=”color: #007700”>,</span><span style=”color: #0000BB”>0</span><span style=”color: #007700”>,</span><span style=”color: #0000BB”>1</span><span style=”color: #007700”>,</span><span style=”color: #0000BB”>10</span><span style=”color: #007700”>,</span><span style=”color: #0000BB”>1</span><span style=”color: #007700”>,</span><span style=”color: #0000BB”>10</span><span style=”color: #007700”>,</span><span style=”color: #0000BB”>100</span><span style=”color: #007700”>; </span><span style=”color: #0000BB”>intDQADJ</span><span style=”color: #007700”>; </span><span style=”color: #FF8000”>/ ------------------------------------------------------------------ /|init/ ------------------------------------------------------------------ </span><span style=”color: #0000BB”>intinit</span><span style=”color: #007700”>() </span><span style=”color: #0000BB”>DQADJ</span><span style=”color: #007700”>=</span><span style=”color: #0000BB”>DQ_ADJUST</span><span style=”color: #007700”>Number91;</span><span style=”color: #0000BB”>Digits</span><span style=”color: #007700”>Number93;; return(</span><span style=”color: #0000BB”>0</span><span style=”color: #007700”>); </span><span style=”color: #FF8000”>// ------------------------------------------------------------------ /|start/ ------------------------------------------------------------------ </span><span style=”color: #0000BB”>intstart</span><span style=”color: #007700”>() </span><span style=”color: #FF8000”>//Returnsusualpipsbasevalueregardlessofthenumberofdigits /example1 </span><span style=”color: #0000BB”>doubledVal</span><span style=”color: #007700”>=-LRB-(</span><span style=”color: #0000BB”>1.29795</span><span style=”color: #007700”>-</span><span style=”color: #0000BB”>1.28067</span><span style=”color: #007700”>)/</span><span style=”color: #0000BB”>Point</span><span style=”color: #007700”>)/</span><span style=”color: #0000BB”>DQADJ</span><span style=”color: #007700”>; </span><span style=”color: #0000BB”>intVal</span><span style=”color: #007700”>=</span><span style=”color: #0000BB”>dVal</span><span style=”color: #007700”>;</span><span style=”color: #FF8000”>//=173 /example2 </span><span style=”color: #0000BB”>doubledVal</span><span style=”color: #007700”>=-LRB-(</span><span style=”color: #0000BB”>129.795</span><span style=”color: #007700”>-</span><span style=”color: #0000BB”>128.067</span><span style=”color: #007700”>)/</span><span style=”color: #0000BB”>Point</span><span style=”color: #007700”>)/</span><span style=”color: #0000BB”>DQADJ</span><span style=”color: #007700”>; </span><span style=”color: #0000BB”>intVal</span><span style=”color: #007700”>=</span><span style=”color: #0000BB”>dVal</span><span style=”color: #007700”>;</span><span style=”color: #FF8000”>//=173 /example3--DQADJ(deci-quotesadjustment)canbeusedlikethisalso. </span><span style=”color: #0000BB”>doubleStoploss</span><span style=”color: #007700”>=</span><span style=”color: #0000BB”>Ask</span><span style=”color: #007700”>-</span><span style=”color: #0000BB”>SL</span><span style=”color: #007700”>*</span><span style=”color: #0000BB”>DQADJ</span><span style=”color: #007700”>*</span><span style=”color: #0000BB”>Point</span><span style=”color: #007700”>; .... return(</span><span style=”color: #0000BB”>0</span><span style=”color: #007700”>); </span><span style=”color: #0000BB”></span> </span> </code>

  4. #4
    完善!!!!!多谢你们 !!!!!!!!!

發布權限

  • 您不可發布新主題
  • 您不可回复
  • 您不可發布附件
  • 您不可編輯您的帖子
  •  
  • BB代碼是打開的
  • 表情符號是打開的
  • [IMG]代碼是打開的
  • [視頻]代碼是打開的
  • HTML代碼是關閉的
forexidol網站使用cookie 文字跟蹤
forexidol網站使用cookie 文字跟蹤,某些設定已經固定。您可以點擊此處閱讀我們的Cookie使用說明。 請點擊右鍵接受我們的cookies。如果您選擇繼續使用forexidol網站,我們將認為您接受我們的cookies。