Algokid

AK_ TREND ID AS A STRATEGY : FOR EDUCATIONAL PURPOSES ONLY

Just converted the AK_ TREND ID into a strategy , to show the efficiency of this simple indicator. I used SPX in this example, to display that the indicator has been accurate for a long time.

オープンソーススクリプト

TradingViewの精神に則り、このスクリプトの作者は、トレーダーが理解し検証できるようにオープンソースで公開しています。作者に敬意を表します!無料で使用することができますが、このコードを投稿で再利用するには、ハウスルールに準拠する必要があります。 お気に入りに登録してチャート上でご利用頂けます。

免責事項

これらの情報および投稿は、TradingViewが提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。

チャートでこのスクリプトを利用したいですか?
//@version=2
// by algokid , 10/2015
strategy("AK_ TREND ID Monthtly Strategy Version:Basic", overlay=true)

// inputs
input1 = 3, input2 = 8 , 

fastmaa = ema(close,input1)
fastmab = ema(close,input2)

bspread = (fastmaa-fastmab)*1.001

// exeution

longCondition = bspread > 0 
if (longCondition)
    strategy.entry("Risk on", strategy.long)
strategy.close_all(when = bspread < 0 )