galdar

My StrategyICHI

216 1 31
Remove from Favorite Scripts Add to Favorite Scripts
//@version=2
strategy("My StrategyICHI", overlay=true)
middleDonchian(Length) =>
    lower = lowest(Length)
    upper = highest(Length)
    avg(upper, lower)
conversionPeriods= input (7,minval=1)
tenkan= middleDonchian (conversionPeriods)
longCondition = close > tenkan
shortCondition= close < tenkan
if (longCondition)
    strategy.entry("My Long Entry Id", strategy.long)

if (shortCondition)
    strategy.entry("My Short Entry Id", strategy.short)
LIke with some other strategies it wont start up...Looks like a bug in Trading View...you see it compiling and then it disappears
Reply
United States
United Kingdom
India
Deutschland
España
France
Italia
Polska
Brasil
Россия
Türkiye
Indonesia
Malaysia
日本
한국
中国
Home Stock Screener Forex Signal Finder Economic Calendar How It Works Chart Features House Rules Moderators Website & Broker Solutions Widgets Stock Charting Library Priority Support Feature Request Blog & News FAQ Help & Wiki Twitter
Profile Profile Settings Account and Billing Priority Support Ideas Published Followers Following Private Messages Chat Sign Out