Type/to search
1
Follow
1
Followers
RSI اشارے کیسے لکھیں (رہنمائی کی تلاش)
Help
Created 2019-10-28 18:27:20  
 2
 2177

ایک RSI اشارے کا حساب کتاب لکھیں، جس میں اوور بائی اور اوور سیل کی حد ہوتی ہے۔

اس کے بعد ، آپ کو ایک بار پھر پریشانی کا سامنا کرنا پڑتا ہے ، اور آپ کو ایک بار پھر پریشانی کا سامنا کرنا پڑتا ہے ، اور آپ کو ایک بار پھر پریشانی کا سامنا کرنا پڑتا ہے۔

function RSI_Signal(){
var records = exchange.GetRecords();
while(!records || records < 50){
records = exchange.GetRecords();
Sleep(Interval);
}
var rsi = TA.ATR(records,14);
var len = records.length;
if ( rsi[len-1] < rsi[len-2] && rsi[len-1] < 30 && rsi[len-2] >= 30 ){
return 1;
}
if ( rsi[len-1] > rsi[len-2] && rsi[len-1] > 70 && rsi[len-2] <= 70 ) {
return 2
}
return 0;

Related Recommendations
Comment
All comments (2)

    好滴,抄了帖子里面的一个带止损的代码,然后想加个指标进去做出场,实盘上跑结果发现条件达到了不触发。

    7 years ago

    多Log调试吧,很难看出问题

    7 years ago
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)